diff options
author | dzwdz | 2022-08-20 11:11:57 +0200 |
---|---|---|
committer | dzwdz | 2022-08-20 11:11:57 +0200 |
commit | f22f019aeba00ccb3cc35fe763c3e87bf5690040 (patch) | |
tree | 6f7338b526dca6eebc865096dbdbd3af90cda335 /src/user/app/ethdump/proto.h | |
parent | 2a16c1f6f9118e7127d532421ae19b959b3f1d87 (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.h | 9 |
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); |