Jan Engelhardt | ddac6c5 | 2008-09-01 14:22:19 +0200 | [diff] [blame] | 1 | /* Shared library add-on to ip6tables to add ICMP support. */ |
Jan Engelhardt | 32b8e61 | 2010-07-23 21:16:14 +0200 | [diff] [blame] | 2 | #include <stdbool.h> |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 3 | #include <stdio.h> |
| 4 | #include <netdb.h> |
| 5 | #include <string.h> |
| 6 | #include <stdlib.h> |
| 7 | #include <getopt.h> |
Jan Engelhardt | 5d9678a | 2008-11-20 10:15:35 +0100 | [diff] [blame] | 8 | #include <xtables.h> |
Jan Engelhardt | 4e41854 | 2009-02-21 03:46:37 +0100 | [diff] [blame] | 9 | #include <limits.h> /* INT_MAX in ip6_tables.h */ |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 10 | #include <linux/netfilter_ipv6/ip6_tables.h> |
| 11 | |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 12 | struct icmpv6_names { |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 13 | const char *name; |
Jan Engelhardt | 7ac4052 | 2011-01-07 12:34:04 +0100 | [diff] [blame] | 14 | uint8_t type; |
| 15 | uint8_t code_min, code_max; |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 16 | }; |
| 17 | |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 18 | static const struct icmpv6_names icmpv6_codes[] = { |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 19 | { "destination-unreachable", 1, 0, 0xFF }, |
| 20 | { "no-route", 1, 0, 0 }, |
| 21 | { "communication-prohibited", 1, 1, 1 }, |
| 22 | { "address-unreachable", 1, 3, 3 }, |
| 23 | { "port-unreachable", 1, 4, 4 }, |
| 24 | |
| 25 | { "packet-too-big", 2, 0, 0xFF }, |
| 26 | |
| 27 | { "time-exceeded", 3, 0, 0xFF }, |
| 28 | /* Alias */ { "ttl-exceeded", 3, 0, 0xFF }, |
| 29 | { "ttl-zero-during-transit", 3, 0, 0 }, |
| 30 | { "ttl-zero-during-reassembly", 3, 1, 1 }, |
| 31 | |
| 32 | { "parameter-problem", 4, 0, 0xFF }, |
| 33 | { "bad-header", 4, 0, 0 }, |
| 34 | { "unknown-header-type", 4, 1, 1 }, |
| 35 | { "unknown-option", 4, 2, 2 }, |
| 36 | |
| 37 | { "echo-request", 128, 0, 0xFF }, |
| 38 | /* Alias */ { "ping", 128, 0, 0xFF }, |
| 39 | |
| 40 | { "echo-reply", 129, 0, 0xFF }, |
| 41 | /* Alias */ { "pong", 129, 0, 0xFF }, |
| 42 | |
| 43 | { "router-solicitation", 133, 0, 0xFF }, |
| 44 | |
| 45 | { "router-advertisement", 134, 0, 0xFF }, |
| 46 | |
| 47 | { "neighbour-solicitation", 135, 0, 0xFF }, |
| 48 | /* Alias */ { "neighbor-solicitation", 135, 0, 0xFF }, |
| 49 | |
| 50 | { "neighbour-advertisement", 136, 0, 0xFF }, |
| 51 | /* Alias */ { "neighbor-advertisement", 136, 0, 0xFF }, |
| 52 | |
| 53 | { "redirect", 137, 0, 0xFF }, |
| 54 | |
| 55 | }; |
| 56 | |
| 57 | static void |
Patrick McHardy | 500f483 | 2007-09-08 15:59:04 +0000 | [diff] [blame] | 58 | print_icmpv6types(void) |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 59 | { |
| 60 | unsigned int i; |
| 61 | printf("Valid ICMPv6 Types:"); |
| 62 | |
Jan Engelhardt | 2c69b55 | 2009-04-30 19:32:02 +0200 | [diff] [blame] | 63 | for (i = 0; i < ARRAY_SIZE(icmpv6_codes); ++i) { |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 64 | if (i && icmpv6_codes[i].type == icmpv6_codes[i-1].type) { |
| 65 | if (icmpv6_codes[i].code_min == icmpv6_codes[i-1].code_min |
| 66 | && (icmpv6_codes[i].code_max |
| 67 | == icmpv6_codes[i-1].code_max)) |
| 68 | printf(" (%s)", icmpv6_codes[i].name); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 69 | else |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 70 | printf("\n %s", icmpv6_codes[i].name); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 71 | } |
| 72 | else |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 73 | printf("\n%s", icmpv6_codes[i].name); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 74 | } |
| 75 | printf("\n"); |
| 76 | } |
| 77 | |
Jan Engelhardt | 997045f | 2007-10-04 16:29:21 +0000 | [diff] [blame] | 78 | static void icmp6_help(void) |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 79 | { |
| 80 | printf( |
Jan Engelhardt | 8b7c64d | 2008-04-15 11:48:25 +0200 | [diff] [blame] | 81 | "icmpv6 match options:\n" |
Jan Engelhardt | 9672792 | 2008-08-13 14:42:41 +0200 | [diff] [blame] | 82 | "[!] --icmpv6-type typename match icmpv6 type\n" |
Jan Engelhardt | 8b7c64d | 2008-04-15 11:48:25 +0200 | [diff] [blame] | 83 | " (or numeric type or type/code)\n"); |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 84 | print_icmpv6types(); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 85 | } |
| 86 | |
Jan Engelhardt | 997045f | 2007-10-04 16:29:21 +0000 | [diff] [blame] | 87 | static const struct option icmp6_opts[] = { |
Jan Engelhardt | 32b8e61 | 2010-07-23 21:16:14 +0200 | [diff] [blame] | 88 | {.name = "icmpv6-type", .has_arg = true, .val = '1'}, |
| 89 | XT_GETOPT_TABLEEND, |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 90 | }; |
| 91 | |
Pablo Neira | 8115e54 | 2005-02-14 13:13:04 +0000 | [diff] [blame] | 92 | static void |
Jan Engelhardt | 7ac4052 | 2011-01-07 12:34:04 +0100 | [diff] [blame] | 93 | parse_icmpv6(const char *icmpv6type, uint8_t *type, uint8_t code[]) |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 94 | { |
Jan Engelhardt | 2c69b55 | 2009-04-30 19:32:02 +0200 | [diff] [blame] | 95 | static const unsigned int limit = ARRAY_SIZE(icmpv6_codes); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 96 | unsigned int match = limit; |
| 97 | unsigned int i; |
| 98 | |
| 99 | for (i = 0; i < limit; i++) { |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 100 | if (strncasecmp(icmpv6_codes[i].name, icmpv6type, strlen(icmpv6type)) |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 101 | == 0) { |
| 102 | if (match != limit) |
Jan Engelhardt | 1829ed4 | 2009-02-21 03:29:44 +0100 | [diff] [blame] | 103 | xtables_error(PARAMETER_PROBLEM, |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 104 | "Ambiguous ICMPv6 type `%s':" |
| 105 | " `%s' or `%s'?", |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 106 | icmpv6type, |
| 107 | icmpv6_codes[match].name, |
| 108 | icmpv6_codes[i].name); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 109 | match = i; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | if (match != limit) { |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 114 | *type = icmpv6_codes[match].type; |
| 115 | code[0] = icmpv6_codes[match].code_min; |
| 116 | code[1] = icmpv6_codes[match].code_max; |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 117 | } else { |
| 118 | char *slash; |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 119 | char buffer[strlen(icmpv6type) + 1]; |
Harald Welte | b471976 | 2001-07-23 02:14:22 +0000 | [diff] [blame] | 120 | unsigned int number; |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 121 | |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 122 | strcpy(buffer, icmpv6type); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 123 | slash = strchr(buffer, '/'); |
| 124 | |
| 125 | if (slash) |
| 126 | *slash = '\0'; |
| 127 | |
Jan Engelhardt | 5f2922c | 2009-01-27 18:43:01 +0100 | [diff] [blame] | 128 | if (!xtables_strtoui(buffer, NULL, &number, 0, UINT8_MAX)) |
Jan Engelhardt | 1829ed4 | 2009-02-21 03:29:44 +0100 | [diff] [blame] | 129 | xtables_error(PARAMETER_PROBLEM, |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 130 | "Invalid ICMPv6 type `%s'\n", buffer); |
| 131 | *type = number; |
| 132 | if (slash) { |
Jan Engelhardt | 5f2922c | 2009-01-27 18:43:01 +0100 | [diff] [blame] | 133 | if (!xtables_strtoui(slash+1, NULL, &number, 0, UINT8_MAX)) |
Jan Engelhardt | 1829ed4 | 2009-02-21 03:29:44 +0100 | [diff] [blame] | 134 | xtables_error(PARAMETER_PROBLEM, |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 135 | "Invalid ICMPv6 code `%s'\n", |
| 136 | slash+1); |
| 137 | code[0] = code[1] = number; |
| 138 | } else { |
| 139 | code[0] = 0; |
| 140 | code[1] = 0xFF; |
| 141 | } |
| 142 | } |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 143 | } |
| 144 | |
Jan Engelhardt | 997045f | 2007-10-04 16:29:21 +0000 | [diff] [blame] | 145 | static void icmp6_init(struct xt_entry_match *m) |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 146 | { |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 147 | struct ip6t_icmp *icmpv6info = (struct ip6t_icmp *)m->data; |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 148 | |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 149 | icmpv6info->code[1] = 0xFF; |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 150 | } |
| 151 | |
Jan Engelhardt | 997045f | 2007-10-04 16:29:21 +0000 | [diff] [blame] | 152 | static int icmp6_parse(int c, char **argv, int invert, unsigned int *flags, |
| 153 | const void *entry, struct xt_entry_match **match) |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 154 | { |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 155 | struct ip6t_icmp *icmpv6info = (struct ip6t_icmp *)(*match)->data; |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 156 | |
| 157 | switch (c) { |
| 158 | case '1': |
Yasuyuki KOZAKAI | b1cda88 | 2006-07-04 10:23:26 +0000 | [diff] [blame] | 159 | if (*flags == 1) |
Jan Engelhardt | 1829ed4 | 2009-02-21 03:29:44 +0100 | [diff] [blame] | 160 | xtables_error(PARAMETER_PROBLEM, |
Yasuyuki KOZAKAI | b1cda88 | 2006-07-04 10:23:26 +0000 | [diff] [blame] | 161 | "icmpv6 match: only use --icmpv6-type once!"); |
Jan Engelhardt | bf97128 | 2009-11-03 19:55:11 +0100 | [diff] [blame] | 162 | xtables_check_inverse(optarg, &invert, &optind, 0, argv); |
Jan Engelhardt | bbe8386 | 2009-10-24 00:45:33 +0200 | [diff] [blame] | 163 | parse_icmpv6(optarg, &icmpv6info->type, |
Pablo Neira | 8115e54 | 2005-02-14 13:13:04 +0000 | [diff] [blame] | 164 | icmpv6info->code); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 165 | if (invert) |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 166 | icmpv6info->invflags |= IP6T_ICMP_INV; |
Yasuyuki KOZAKAI | b1cda88 | 2006-07-04 10:23:26 +0000 | [diff] [blame] | 167 | *flags = 1; |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 168 | break; |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 169 | } |
| 170 | |
| 171 | return 1; |
| 172 | } |
| 173 | |
Jan Engelhardt | 7ac4052 | 2011-01-07 12:34:04 +0100 | [diff] [blame] | 174 | static void print_icmpv6type(uint8_t type, |
| 175 | uint8_t code_min, uint8_t code_max, |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 176 | int invert, |
| 177 | int numeric) |
| 178 | { |
| 179 | if (!numeric) { |
| 180 | unsigned int i; |
| 181 | |
Jan Engelhardt | 2c69b55 | 2009-04-30 19:32:02 +0200 | [diff] [blame] | 182 | for (i = 0; i < ARRAY_SIZE(icmpv6_codes); ++i) |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 183 | if (icmpv6_codes[i].type == type |
| 184 | && icmpv6_codes[i].code_min == code_min |
| 185 | && icmpv6_codes[i].code_max == code_max) |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 186 | break; |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 187 | |
Jan Engelhardt | 2c69b55 | 2009-04-30 19:32:02 +0200 | [diff] [blame] | 188 | if (i != ARRAY_SIZE(icmpv6_codes)) { |
Jan Engelhardt | 7386635 | 2010-12-18 02:04:59 +0100 | [diff] [blame^] | 189 | printf(" %s%s", |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 190 | invert ? "!" : "", |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 191 | icmpv6_codes[i].name); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 192 | return; |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | if (invert) |
Jan Engelhardt | 7386635 | 2010-12-18 02:04:59 +0100 | [diff] [blame^] | 197 | printf(" !"); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 198 | |
| 199 | printf("type %u", type); |
Jan Engelhardt | 7386635 | 2010-12-18 02:04:59 +0100 | [diff] [blame^] | 200 | if (code_min == code_max) |
| 201 | printf(" code %u", code_min); |
| 202 | else if (code_min != 0 || code_max != 0xFF) |
| 203 | printf(" codes %u-%u", code_min, code_max); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 204 | } |
| 205 | |
Jan Engelhardt | 997045f | 2007-10-04 16:29:21 +0000 | [diff] [blame] | 206 | static void icmp6_print(const void *ip, const struct xt_entry_match *match, |
| 207 | int numeric) |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 208 | { |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 209 | const struct ip6t_icmp *icmpv6 = (struct ip6t_icmp *)match->data; |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 210 | |
Jan Engelhardt | 7386635 | 2010-12-18 02:04:59 +0100 | [diff] [blame^] | 211 | printf(" ipv6-icmp"); |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 212 | print_icmpv6type(icmpv6->type, icmpv6->code[0], icmpv6->code[1], |
| 213 | icmpv6->invflags & IP6T_ICMP_INV, |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 214 | numeric); |
| 215 | |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 216 | if (icmpv6->invflags & ~IP6T_ICMP_INV) |
Jan Engelhardt | 7386635 | 2010-12-18 02:04:59 +0100 | [diff] [blame^] | 217 | printf(" Unknown invflags: 0x%X", |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 218 | icmpv6->invflags & ~IP6T_ICMP_INV); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 219 | } |
| 220 | |
Jan Engelhardt | 997045f | 2007-10-04 16:29:21 +0000 | [diff] [blame] | 221 | static void icmp6_save(const void *ip, const struct xt_entry_match *match) |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 222 | { |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 223 | const struct ip6t_icmp *icmpv6 = (struct ip6t_icmp *)match->data; |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 224 | |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 225 | if (icmpv6->invflags & IP6T_ICMP_INV) |
Jan Engelhardt | 7386635 | 2010-12-18 02:04:59 +0100 | [diff] [blame^] | 226 | printf(" !"); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 227 | |
Jan Engelhardt | 7386635 | 2010-12-18 02:04:59 +0100 | [diff] [blame^] | 228 | printf(" --icmpv6-type %u", icmpv6->type); |
András Kis-Szabó | e0bc7a4 | 2001-07-14 20:21:46 +0000 | [diff] [blame] | 229 | if (icmpv6->code[0] != 0 || icmpv6->code[1] != 0xFF) |
| 230 | printf("/%u", icmpv6->code[0]); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 231 | } |
| 232 | |
Jan Engelhardt | 997045f | 2007-10-04 16:29:21 +0000 | [diff] [blame] | 233 | static void icmp6_check(unsigned int flags) |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 234 | { |
Yasuyuki KOZAKAI | b1cda88 | 2006-07-04 10:23:26 +0000 | [diff] [blame] | 235 | if (!flags) |
Jan Engelhardt | 1829ed4 | 2009-02-21 03:29:44 +0100 | [diff] [blame] | 236 | xtables_error(PARAMETER_PROBLEM, |
Yasuyuki KOZAKAI | b1cda88 | 2006-07-04 10:23:26 +0000 | [diff] [blame] | 237 | "icmpv6 match: You must specify `--icmpv6-type'"); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 238 | } |
| 239 | |
Jan Engelhardt | 8b7c64d | 2008-04-15 11:48:25 +0200 | [diff] [blame] | 240 | static struct xtables_match icmp6_mt6_reg = { |
Harald Welte | 02aa733 | 2005-02-01 15:38:20 +0000 | [diff] [blame] | 241 | .name = "icmp6", |
Jan Engelhardt | 8b7c64d | 2008-04-15 11:48:25 +0200 | [diff] [blame] | 242 | .version = XTABLES_VERSION, |
Jan Engelhardt | 03d9948 | 2008-11-18 12:27:54 +0100 | [diff] [blame] | 243 | .family = NFPROTO_IPV6, |
Jan Engelhardt | 8b7c64d | 2008-04-15 11:48:25 +0200 | [diff] [blame] | 244 | .size = XT_ALIGN(sizeof(struct ip6t_icmp)), |
| 245 | .userspacesize = XT_ALIGN(sizeof(struct ip6t_icmp)), |
Jan Engelhardt | 997045f | 2007-10-04 16:29:21 +0000 | [diff] [blame] | 246 | .help = icmp6_help, |
| 247 | .init = icmp6_init, |
| 248 | .parse = icmp6_parse, |
| 249 | .final_check = icmp6_check, |
| 250 | .print = icmp6_print, |
| 251 | .save = icmp6_save, |
| 252 | .extra_opts = icmp6_opts, |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 253 | }; |
| 254 | |
| 255 | void _init(void) |
| 256 | { |
Jan Engelhardt | 8b7c64d | 2008-04-15 11:48:25 +0200 | [diff] [blame] | 257 | xtables_register_match(&icmp6_mt6_reg); |
Philip Blundell | b47050c | 2000-06-04 17:38:47 +0000 | [diff] [blame] | 258 | } |