path: root/utils
diff options
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/ </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/>2005-10-28 00:28:35 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/ </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/>2005-10-28 00:28:35 +0000
commitc7c7bbb573e310ca6fa6040e11f86440c9380ad7 (patch)
tree14450cc33f89583d32622e11886ac74233f90e4e /utils
parent38d44b9935a3001ce7872bcb22c481dcfe504925 (diff)
o Renamed nfct_[set|unset]_callback to nfct_[register|unregister]_callback
o Added some very brief comments to libnetfilter_conntrack.h o Implemented the conntrack printers API nfct_sprintf_* o Now nfct_default_conntrack_display display the classical /proc output, and nfct_default_conntrack_display the classical + conntrack ids o Use nfnl_talk if there's no data expected from kernel space to be processed, that is the case of nfct_[get|delete]_conntrack o Added some missing memset's zeroing o Code simplification: killed some char *buf where struct nfnlhdr is enough o Killed protocol handler destructors (fini) and nfct_unregister_proto: The library is unloaded if something goes wrong (different library versions), the modules never gets inserted in the proto_list. Fixes a segfault. o Bumped version to 0.2.0
Diffstat (limited to 'utils')
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/ctnl_test.c b/utils/ctnl_test.c
index fccadbe..360e118 100644
--- a/utils/ctnl_test.c
+++ b/utils/ctnl_test.c
@@ -90,7 +90,7 @@ int main(int argc, char **argv)
if (ret < 0 && ret != -EEXIST)
- nfct_set_callback(cth, nfct_default_conntrack_display);
+ nfct_register_callback(cth, nfct_default_conntrack_display);
ret = nfct_dump_conntrack_table_reset_counters(cth);
fprintf(stdout, "TEST 2: dump conntrack table and reset (%d)\n", ret);
if (ret < 0)
@@ -120,7 +120,7 @@ int main(int argc, char **argv)
fprintf(stdout, "TEST 7: Waiting for 10 conntrack events\n");
signal(SIGINT, event_sighandler);
- nfct_set_callback(cth, event_counter);
+ nfct_register_callback(cth, event_counter);
ret = nfct_event_conntrack(cth);
fprintf(stdout, "TEST 7: Received 10 conntrack events (%d)\n", ret);