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.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'arp.c') diff --git a/arp.c b/arp.c index d1052ec..20f08b2 100644 --- a/arp.c +++ b/arp.c @@ -26,20 +26,7 @@ #include "dhcp.h" #include "util.h" #include "tap.h" - -/** - * 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__)); +#include "arp.h" /** * arp() - Check if this is an ARP message, reply as needed -- cgit v1.2.3