passt.h: Include netinet/if_ether.h before struct ctx declaration

This saves some hassle when including passt.h, as we need ETH_ALEN
there.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Stefano Brivio 2022-10-06 13:23:07 +02:00
parent 51fa9bfd7b
commit f4e1e88e1d

View file

@ -133,6 +133,8 @@ struct ip6_ctx {
struct in6_addr dns_fwd; struct in6_addr dns_fwd;
}; };
#include <netinet/if_ether.h>
/** /**
* struct ctx - Execution context * struct ctx - Execution context
* @mode: Operation mode, qemu/UNIX domain socket or namespace/tap * @mode: Operation mode, qemu/UNIX domain socket or namespace/tap