diff options
author | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org> | 2005-08-07 14:49:43 +0000 |
---|---|---|
committer | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org> | 2005-08-07 14:49:43 +0000 |
commit | 64921ff93e4a2f6ff32c854c347d2b234822d3c9 (patch) | |
tree | 15013e4524be55942add9bb474db8065fc8aa5b7 /include/libnfnetlink | |
parent | 6c358bb92f5ef7f1a2721e64681f9bd7d50e0402 (diff) |
add NFNL_HEADER_LEN macro
Diffstat (limited to 'include/libnfnetlink')
-rw-r--r-- | include/libnfnetlink/libnfnetlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libnfnetlink/libnfnetlink.h b/include/libnfnetlink/libnfnetlink.h index edd480d..acda88d 100644 --- a/include/libnfnetlink/libnfnetlink.h +++ b/include/libnfnetlink/libnfnetlink.h @@ -14,6 +14,9 @@ #define NLMSG_TAIL(nlh) \ (((void *) (nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)) +#define NFNL_HEADER_LEN (NLMSG_LENGTH(sizeof(struct nlmsghdr)) \ + +NLMSG_LENGTH(sizeof(struct nfgenmsg))) + #define NFNL_BUFFSIZE 8192 struct nfnl_callback { |