aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-10-06 13:23:07 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-10-14 17:38:28 +0200
commitf4e1e88e1dce3a25f3cdd8d52a1f097236911e70 (patch)
tree2f80d5cb12001bf1d0b9290de1288556304ea7b8
parent51fa9bfd7b19b1eec6ea30f5ea3406672276feca (diff)
downloadpasst-f4e1e88e1dce3a25f3cdd8d52a1f097236911e70.tar
passt-f4e1e88e1dce3a25f3cdd8d52a1f097236911e70.tar.gz
passt-f4e1e88e1dce3a25f3cdd8d52a1f097236911e70.tar.bz2
passt-f4e1e88e1dce3a25f3cdd8d52a1f097236911e70.tar.lz
passt-f4e1e88e1dce3a25f3cdd8d52a1f097236911e70.tar.xz
passt-f4e1e88e1dce3a25f3cdd8d52a1f097236911e70.tar.zst
passt-f4e1e88e1dce3a25f3cdd8d52a1f097236911e70.zip
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>
-rw-r--r--passt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/passt.h b/passt.h
index 48e1096..de79e7b 100644
--- a/passt.h
+++ b/passt.h
@@ -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