summaryrefslogtreecommitdiffstats
path: root/ip6tables.c
diff options
context:
space:
mode:
authorMasahide NAKAMURA <nakam@linux-ipv6.org>2007-02-09 11:24:14 +0000
committerYasuyuki KOZAKAI <yasuyuki@netfilter.org>2007-02-09 11:24:14 +0000
commit00d46e1c830e88f857d5fedbc9c19afe984d7a50 (patch)
treef5bd88ecba47024a1931dd2c87b4e538b4bbcf4a /ip6tables.c
parent110a89a9e7b328c0dfc99cf14263b9fdf27708c4 (diff)
Add ip6tables mh extension (Masahide NAKAMURA <nakam@linux-ipv6.org>)
Kernel part will go in 2.6.21
Diffstat (limited to 'ip6tables.c')
-rw-r--r--ip6tables.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ip6tables.c b/ip6tables.c
index 211b81a7..ebdaa62f 100644
--- a/ip6tables.c
+++ b/ip6tables.c
@@ -219,6 +219,9 @@ struct pprot {
#define IPPROTO_AH 51
#endif
#endif
+#ifndef IPPROTO_MH
+#define IPPROTO_MH 135
+#endif
static const struct pprot chain_protos[] = {
{ "tcp", IPPROTO_TCP },
@@ -228,6 +231,8 @@ static const struct pprot chain_protos[] = {
{ "ipv6-icmp", IPPROTO_ICMPV6 },
{ "esp", IPPROTO_ESP },
{ "ah", IPPROTO_AH },
+ { "ipv6-mh", IPPROTO_MH },
+ { "mh", IPPROTO_MH },
};
static char *