summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-12-17 15:37:59 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2010-12-17 15:37:59 +0100
commit3c0ec5370fd824f43acbf0b337c037a1e8b15cab (patch)
treefb3a3bf1e12025677fbf830248d92f575cff510e
parentd21626ae9de7ec6bd459dc8687c77be9766d74a4 (diff)
downloadlibmnl-3c0ec5370fd824f43acbf0b337c037a1e8b15cab.tar.gz
libmnl-3c0ec5370fd824f43acbf0b337c037a1e8b15cab.zip
examples: fix wrong group mask number in nfct-event
This patch replaces event group numbers NFNLGRP_CONNTRACK_* by the event group mask NF_NETLINK_CONNTRACK_* Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--examples/netfilter/nfct-event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/netfilter/nfct-event.c b/examples/netfilter/nfct-event.c
index 660d443..f86f9ad 100644
--- a/examples/netfilter/nfct-event.c
+++ b/examples/netfilter/nfct-event.c
@@ -217,9 +217,9 @@ int main(void)
exit(EXIT_FAILURE);
}
- if (mnl_socket_bind(nl, NFNLGRP_CONNTRACK_NEW |
- NFNLGRP_CONNTRACK_UPDATE |
- NFNLGRP_CONNTRACK_DESTROY,
+ if (mnl_socket_bind(nl, NF_NETLINK_CONNTRACK_NEW |
+ NF_NETLINK_CONNTRACK_UPDATE |
+ NF_NETLINK_CONNTRACK_DESTROY,
MNL_SOCKET_AUTOPID) < 0) {
perror("mnl_socket_bind");
exit(EXIT_FAILURE);