arp: queue packets for sending while pending resolution

This commit is contained in:
Mark
2020-03-20 17:04:11 +02:00
parent 1ef3a5d248
commit f01a5c79ed
4 changed files with 120 additions and 37 deletions
+1
View File
@@ -23,4 +23,5 @@ struct arp_frame {
struct packet;
void arp_handle_frame(struct packet *packet, void *data, size_t len);
int arp_send(struct netdev *dev, uint32_t inaddr, uint16_t etype, void *data, size_t len);
const uint8_t *arp_resolve(struct netdev *dev, uint32_t inaddr);
+2
View File
@@ -11,6 +11,8 @@ struct eth_frame {
uint16_t ethertype;
} __attribute__((packed));
static const uint8_t ETH_A_BROADCAST[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
struct netdev;
struct packet;
void eth_handle_frame(struct packet *p);