diff options
author | Thomas Haller <thaller@redhat.com> | 2023-09-20 16:26:03 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-09-20 18:15:38 +0200 |
commit | ded675121cac6877938148dc07e1653b58441864 (patch) | |
tree | 00cfdab44ac56d8c41ba82d861e0eba2e8d26dc2 /include/headers.h | |
parent | 8172814e4cd5e1f08d4d2e8b7303fbe2ea929e8e (diff) |
include: fix missing definitions in <cache.h>/<headers.h>
The headers should be self-contained so they can be included in any
order. With exception of <nft.h>, which any internal header can rely on.
Some fixes for <cache.h>/<headers.h>.
In case of <cache.h>, forward declare some of the structs instead of
including the headers. <headers.h> uses struct in6_addr.
Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/headers.h')
-rw-r--r-- | include/headers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/headers.h b/include/headers.h index 759f93bf..13324c72 100644 --- a/include/headers.h +++ b/include/headers.h @@ -1,6 +1,8 @@ #ifndef NFTABLES_HEADERS_H #define NFTABLES_HEADERS_H +#include <netinet/in.h> + #ifndef IPPROTO_UDPLITE # define IPPROTO_UDPLITE 136 #endif |