From ad4a85c86056dbab773ba3e2823b51cf1d128245 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 21 May 2021 11:14:52 +0200 Subject: qrap: Connect to the first available instance of passt, probe via ARP request Signed-off-by: Stefano Brivio --- arp.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'arp.h') diff --git a/arp.h b/arp.h index 70188b3..e9b5adf 100644 --- a/arp.h +++ b/arp.h @@ -1 +1,15 @@ +/** + * struct arpmsg - 802.2 ARP IPv4 payload + * @sha: Sender hardware address + * @sip: Sender IP address + * @tha: Target hardware address + * @tip: Target IP address + */ +struct arpmsg { + unsigned char sha[ETH_ALEN]; + unsigned char sip[4]; + unsigned char tha[ETH_ALEN]; + unsigned char tip[4]; +} __attribute__((__packed__)); + int arp(struct ctx *c, struct ethhdr *eh, size_t len); -- cgit v1.2.3