From fb29cf4bf1c66b9ee76dd1644dfe473308b0e092 Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" Date: Fri, 23 Sep 2005 19:40:46 +0000 Subject: - make ctnl_test compile again (but it still needs to be ported) - document new 3parameter open function --- utils/ctnl_test.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'utils/ctnl_test.c') 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); } -- cgit v1.2.3