diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-05-16 17:09:39 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-05-16 17:09:39 +0200 |
commit | 37b20035b4179e69ba162ea75b90d26e3740e229 (patch) | |
tree | ecf639f2ec0a31de9cee4b6e2adb3265cd2315b2 /include | |
parent | b7928d3d138f2210d49997113145050675052404 (diff) |
recover the nested bit as now it is fully supported in kernel space, this makes possible the generation of netlink-based network messages.
Diffstat (limited to 'include')
-rw-r--r-- | include/libnfnetlink/libnfnetlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libnfnetlink/libnfnetlink.h b/include/libnfnetlink/libnfnetlink.h index 5776da6..e54edc6 100644 --- a/include/libnfnetlink/libnfnetlink.h +++ b/include/libnfnetlink/libnfnetlink.h @@ -165,7 +165,7 @@ extern int nfnl_parse_attr(struct nfattr **, int, struct nfattr *, int); nfnl_parse_attr((tb), (max), NFA_DATA((nfa)), NFA_PAYLOAD((nfa))) #define nfnl_nest(nlh, bufsize, type) \ ({ struct nfattr *__start = NLMSG_TAIL(nlh); \ - nfnl_addattr_l(nlh, bufsize, type, NULL, 0); \ + nfnl_addattr_l(nlh, bufsize, (NLA_F_NESTED | type), NULL, 0); \ __start; }) #define nfnl_nest_end(nlh, tail) \ ({ (tail)->nfa_len = (void *) NLMSG_TAIL(nlh) - (void *) tail; }) |