summaryrefslogtreecommitdiff
path: root/src/user/app/netstack/proto.h
diff options
context:
space:
mode:
authordzwdz2022-08-27 10:58:13 +0200
committerdzwdz2022-08-27 10:58:13 +0200
commit0f51f64e9bdaeed74981150a7b29726610d00504 (patch)
treeaec373ecef3db1f9ab061d31d488f929411a658e /src/user/app/netstack/proto.h
parent48e612a8c19ae1fd6aa1ab8fb48b03a0291110b4 (diff)
user/netstack: ARP requests
Diffstat (limited to 'src/user/app/netstack/proto.h')
-rw-r--r--src/user/app/netstack/proto.h2
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);