summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>2005-09-23 19:40:46 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>2005-09-23 19:40:46 +0000
commitfb29cf4bf1c66b9ee76dd1644dfe473308b0e092 (patch)
tree94def04117516eedacc4237049377d372e913562 /utils
parent234a44df5c4f1599c11ab4a43eb4845d2e471345 (diff)
- make ctnl_test compile again (but it still needs to be ported)
- document new 3parameter open function
Diffstat (limited to 'utils')
-rw-r--r--utils/ctnl_test.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/ctnl_test.c b/utils/ctnl_test.c
index 20693d0..c4baa7b 100644
--- a/utils/ctnl_test.c
+++ b/utils/ctnl_test.c
@@ -16,6 +16,7 @@
static struct ctnl_handle *cth;
+#if 0
char *display_tuple_flat(struct ip_conntrack_tuple *tuple)
{
static char buff[250];
@@ -65,6 +66,12 @@ char *display_tuple_flat(struct ip_conntrack_tuple *tuple)
return (buff);
}
+#else
+char *display_tuple_flat(void *foo)
+{
+ return "not implemented";
+}
+#endif
int ctnl_parse_attr(struct nfattr *tb[], int max, struct nfattr *cta, int len)
{
@@ -165,7 +172,7 @@ int main(int argc, char **argv)
int len;
cth = malloc(sizeof(*cth));
- if (ctnl_open(cth, 0) < 0) {
+ if (ctnl_open(cth, NFNL_SUBSYS_CTNETLINK, 0) < 0) {
exit(2);
}