diff options
author | Pablo Neira <pablo@eurodev.net> | 2005-02-14 13:13:04 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2005-02-14 13:13:04 +0000 |
commit | 8115e5425721cd610b6390c3d4c24540773b0520 (patch) | |
tree | 9939fb1f9e341e07e12d3904813e1b1a4e795854 /extensions/libip6t_icmpv6.c | |
parent | 69558bf5d1acbc9112b7568d9db6aec2efa0fd7a (diff) |
Kill NFC_* stuff in iptables (Pablo Neira <pablo@eurodev.net>)
Fixes build with conntrack event patch for 2.6
Diffstat (limited to 'extensions/libip6t_icmpv6.c')
-rw-r--r-- | extensions/libip6t_icmpv6.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/extensions/libip6t_icmpv6.c b/extensions/libip6t_icmpv6.c index 62ee90f5..a29bb389 100644 --- a/extensions/libip6t_icmpv6.c +++ b/extensions/libip6t_icmpv6.c @@ -90,7 +90,7 @@ static struct option opts[] = { {0} }; -static unsigned int +static void parse_icmpv6(const char *icmpv6type, u_int8_t *type, u_int8_t code[]) { unsigned int limit = sizeof(icmpv6_codes)/sizeof(struct icmpv6_names); @@ -141,10 +141,6 @@ parse_icmpv6(const char *icmpv6type, u_int8_t *type, u_int8_t code[]) code[1] = 0xFF; } } - - if (code[0] == 0 && code[1] == 0xFF) - return NFC_IP6_SRC_PT; - else return NFC_IP6_SRC_PT | NFC_IP6_DST_PT; } /* Initialize the match. */ @@ -169,9 +165,8 @@ parse(int c, char **argv, int invert, unsigned int *flags, switch (c) { case '1': check_inverse(optarg, &invert, &optind, 0); - *nfcache |= parse_icmpv6(argv[optind-1], - &icmpv6info->type, - icmpv6info->code); + parse_icmpv6(argv[optind-1], &icmpv6info->type, + icmpv6info->code); if (invert) icmpv6info->invflags |= IP6T_ICMP_INV; break; |