diff options
author | Ken-ichirou MATSUZAWA <chamaken@gmail.com> | 2015-09-11 12:14:25 +0900 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-10-12 17:17:38 +0200 |
commit | ac35f78f7a13d3464009f4d8d1576d308e3d17c8 (patch) | |
tree | 3182c425b9a4d2fae27f049d4bdbcb7841fd0e81 /src/nlmsg.c | |
parent | 721ea5ec049e12afdd7c182f2899ab6d92914e68 (diff) |
nlmsg: Add NFULA_CT and NFULA_CT_INFO attributes support
This patch validate NFULA_CT and NFULA_CT_INFO attributes,
Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/nlmsg.c')
-rw-r--r-- | src/nlmsg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nlmsg.c b/src/nlmsg.c index 0aa21a0..3ebb364 100644 --- a/src/nlmsg.c +++ b/src/nlmsg.c @@ -7,7 +7,6 @@ * (at your option) any later version. */ #include <arpa/inet.h> -#include <linux/netfilter/nfnetlink_log.h> #include <libmnl/libmnl.h> #include <libnetfilter_log/libnetfilter_log.h> #include <errno.h> @@ -112,6 +111,7 @@ static int nflog_parse_attr_cb(const struct nlattr *attr, void *data) case NFULA_SEQ: /* instance-local sequence number */ case NFULA_SEQ_GLOBAL: /* global sequence number */ case NFULA_GID: /* group id of socket */ + case NFULA_CT_INFO: /* enum ip_conntrack_info */ if (mnl_attr_validate(attr, MNL_TYPE_U32) < 0) return MNL_CB_ERROR; break; @@ -139,6 +139,7 @@ static int nflog_parse_attr_cb(const struct nlattr *attr, void *data) break; case NFULA_HWHEADER: /* hardware header */ case NFULA_PAYLOAD: /* opaque data payload */ + case NFULA_CT: /* nf_conntrack_netlink.h */ break; } tb[type] = attr; |