From 0f51f64e9bdaeed74981150a7b29726610d00504 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 27 Aug 2022 10:58:13 +0200 Subject: user/netstack: ARP requests --- src/user/app/netstack/proto.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/user/app/netstack/proto.h') 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); -- cgit v1.2.3