arp: queue packets for sending while pending resolution
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user