From ddea86cb98ddc40f6dfb0ef7081891ea4f53f0c3 Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org" Date: Mon, 19 Dec 2005 20:31:12 +0000 Subject: More changes to prepare upcoming ipv4 support --- ChangeLog | 1 + src/conntrack.c | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index b6c0c93..f002815 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2005-12-19 o We only support ipv4 at the moment: set l3protonum to AF_INET + o Minor changes to prepare upcoming ipv6 support 2005-12-03 diff --git a/src/conntrack.c b/src/conntrack.c index 28328d7..145ef24 100644 --- a/src/conntrack.c +++ b/src/conntrack.c @@ -849,9 +849,9 @@ int main(int argc, char *argv[]) NULL); if (options & CT_OPT_ZERO) - res = nfct_dump_conntrack_table_reset_counters(cth); + res = nfct_dump_conntrack_table_reset_counters(cth, AF_INET); else - res = nfct_dump_conntrack_table(cth); + res = nfct_dump_conntrack_table(cth, AF_INET); nfct_close(cth); break; @@ -867,7 +867,7 @@ int main(int argc, char *argv[]) nfct_register_callback(cth, nfct_default_expect_display, NULL); - res = nfct_dump_expect_list(cth); + res = nfct_dump_expect_list(cth, AF_INET); nfct_close(cth); break; @@ -1009,7 +1009,7 @@ int main(int argc, char *argv[]) cth = nfct_open(CONNTRACK, 0); if (!cth) exit_error(OTHER_PROBLEM, "Can't open handler"); - res = nfct_flush_conntrack_table(cth); + res = nfct_flush_conntrack_table(cth, AF_INET); nfct_close(cth); break; @@ -1017,7 +1017,7 @@ int main(int argc, char *argv[]) cth = nfct_open(EXPECT, 0); if (!cth) exit_error(OTHER_PROBLEM, "Can't open handler"); - res = nfct_flush_expectation_table(cth); + res = nfct_flush_expectation_table(cth, AF_INET); nfct_close(cth); break; -- cgit v1.2.3