Convert kernel to userspace types
PATCH 2/3 Convert kernel to userspace types
Signed-off-by Felix Janda <[email protected]>
--- include/libnfnetlink/linux_nfnetlink.h | 4 ++-- include/libnfnetlink/linux_nfnetlink_compat.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
include/libnfnetlink/linux_nfnetlink.h +2 -2
@@ -29,8 +29,8 @@ enum nfnetlink_groups {/* General form of address family dependent message. */ struct nfgenmsg { -__u8 nfgen_family;/* AF_xxx */ -__u8 version;/* nfnetlink version */ +uint8_t nfgen_family;/* AF_xxx */ +uint8_t version;/* nfnetlink version */ u_int16_t res_id;/* resource id */ };
include/libnfnetlink/linux_nfnetlink_compat.h +2 -2
@@ -21,8 +21,8 @@*/ struct nfattr { -__u16 nfa_len; -__u16 nfa_type;/* we use 15 bits for the type, and the highest +uint16_t nfa_len; +uint16_t nfa_type;/* we use 15 bits for the type, and the highest * bit to indicate whether the payload is nested */ };
Signature · 1 line
2.3.6