1
0
mirror of https://passt.top/passt synced 2024-12-22 13:45:32 +00:00

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;
};
#include <netinet/if_ether.h>
/**
* struct ctx - Execution context
* @mode: Operation mode, qemu/UNIX domain socket or namespace/tap