diff options
author | Felix Janda <felix.janda@posteo.de> | 2015-05-16 14:49:07 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-05-29 00:44:15 +0200 |
commit | 7a1a07c0028a1c88cd7716a058697c552a563b24 (patch) | |
tree | c9a55d4dbd698690afbdfd39a157d0ad1f156eca /include/libnfnetlink/linux_nfnetlink_compat.h | |
parent | 7633f0c1679988ad18e4de9afc8a277510298139 (diff) |
include: Sync with kernel headers
Signed-off-by: Felix Janda <felix.janda@posteo.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnfnetlink/linux_nfnetlink_compat.h')
-rw-r--r-- | include/libnfnetlink/linux_nfnetlink_compat.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/libnfnetlink/linux_nfnetlink_compat.h b/include/libnfnetlink/linux_nfnetlink_compat.h index e145176..74b9e55 100644 --- a/include/libnfnetlink/linux_nfnetlink_compat.h +++ b/include/libnfnetlink/linux_nfnetlink_compat.h @@ -1,6 +1,8 @@ #ifndef _NFNETLINK_COMPAT_H #define _NFNETLINK_COMPAT_H -#ifndef __KERNEL__ + +#include <linux/types.h> + /* Old nfnetlink macros for userspace */ /* nfnetlink groups: Up to 32 maximum */ @@ -18,10 +20,9 @@ * ! nfnetlink use the same attributes methods. - J. Schulist. */ -struct nfattr -{ - u_int16_t nfa_len; - u_int16_t nfa_type; /* we use 15 bits for the type, and the highest +struct nfattr { + __u16 nfa_len; + __u16 nfa_type; /* we use 15 bits for the type, and the highest * bit to indicate whether the payload is nested */ }; @@ -57,5 +58,4 @@ struct nfattr + NLMSG_ALIGN(sizeof(struct nfgenmsg)))) #define NFM_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct nfgenmsg)) -#endif /* ! __KERNEL__ */ #endif /* _NFNETLINK_COMPAT_H */ |