summaryrefslogtreecommitdiff
path: root/src/user/app/ethdump/proto.h
diff options
context:
space:
mode:
authordzwdz2022-08-20 11:11:57 +0200
committerdzwdz2022-08-20 11:11:57 +0200
commitf22f019aeba00ccb3cc35fe763c3e87bf5690040 (patch)
tree6f7338b526dca6eebc865096dbdbd3af90cda335 /src/user/app/ethdump/proto.h
parent2a16c1f6f9118e7127d532421ae19b959b3f1d87 (diff)
user/ethdump: turn into a file server
Diffstat (limited to 'src/user/app/ethdump/proto.h')
-rw-r--r--src/user/app/ethdump/proto.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/user/app/ethdump/proto.h b/src/user/app/ethdump/proto.h
index df2000e..21057a2 100644
--- a/src/user/app/ethdump/proto.h
+++ b/src/user/app/ethdump/proto.h
@@ -34,6 +34,15 @@ struct icmp {
};
+/* NOT THREADSAFE, YET USED FROM THREADS
+ * will break if i implement a scheduler*/
+struct queue_entry {
+ handle_t h;
+ struct queue_entry *next;
+};
+extern struct queue_entry *ether_queue;
+
+
void arp_parse(const uint8_t *buf, size_t len);
void icmp_parse(const uint8_t *buf, size_t len, struct ipv4 ip);