From f22f019aeba00ccb3cc35fe763c3e87bf5690040 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 20 Aug 2022 11:11:57 +0200 Subject: user/ethdump: turn into a file server --- src/user/app/ethdump/proto.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/user/app/ethdump/proto.h') 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); -- cgit v1.2.3