diff options
author | dzwdz | 2022-08-27 10:58:13 +0200 |
---|---|---|
committer | dzwdz | 2022-08-27 10:58:13 +0200 |
commit | 0f51f64e9bdaeed74981150a7b29726610d00504 (patch) | |
tree | aec373ecef3db1f9ab061d31d488f929411a658e /src/user/app/netstack/proto.h | |
parent | 48e612a8c19ae1fd6aa1ab8fb48b03a0291110b4 (diff) |
user/netstack: ARP requests
Diffstat (limited to 'src/user/app/netstack/proto.h')
-rw-r--r-- | src/user/app/netstack/proto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/user/app/netstack/proto.h b/src/user/app/netstack/proto.h index 30ff864..72a4fca 100644 --- a/src/user/app/netstack/proto.h +++ b/src/user/app/netstack/proto.h @@ -56,9 +56,11 @@ struct ethq { extern struct ethq *ether_queue; void arp_parse(const uint8_t *buf, size_t len); +void arp_request(uint32_t ip); /* 0 on success, -1 on failure */ int arpcache_get(uint32_t ip, mac_t *mac); void arp_fsread(handle_t h, long offset); +long arp_fswrite(const char *buf, long len, long offset); void icmp_parse(const uint8_t *buf, size_t len, struct ipv4 ip); void icmp_send(const void *payload, size_t len, struct icmp i); |