MIP6: Add routing header type 2 transformation.
Subsystems (2)
PATCH 12/20 MIP6: Add routing header type 2 transformation.
Add routing header type 2 transformation for Mobile IPv6. Based on MIPL2 kernel patch.
--- include/net/mip6.h | 31 +++++++++ net/ipv6/Makefile | 3 + net/ipv6/af_inet6.c | 9 ++ net/ipv6/mip6.c | 186 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 229 insertions(+), 0 deletions(-)
include/net/mip6.h new file +31 -0
@@ -0,0 +1,31 @@ +/* +* Copyright (C)2003-2006 Helsinki University of Technology +* Copyright (C)2003-2006 USAGI/WIDE Project +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ +/* +* Authors: +* Noriaki TAKAMIYA @USAGI +* Masahide NAKAMURA @USAGI +* YOSHIFUJI Hideaki @USAGI +*/ +#ifndef _NET_MIP6_H +#define _NET_MIP6_H + +extern int mip6_init (void ); +extern void mip6_fini (void ); + +#endif
net/ipv6/Makefile +3 -0
@@ -13,6 +13,9 @@ ipv6-objs := af_inet6.o anycast.o ip6_ou ipv6-$(CONFIG_XFRM) += xfrm6_policy.o xfrm6_state.o xfrm6_input.o \ xfrm6_output.o ipv6-$(CONFIG_NETFILTER) += netfilter.o + +ipv6-$(CONFIG_IPV6_MIP6) += mip6.o + ipv6-objs += $(ipv6-y) obj-$(CONFIG_INET6_AH) += ah6.o
net/ipv6/af_inet6.c +9 -0
@@ -60,6 +60,9 @@ #include <net/addrconf.h>#ifdef CONFIG_IPV6_TUNNEL #include <net/ip6_tunnel.h> #endif +#ifdef CONFIG_IPV6_MIP6 +#include <net/mip6.h> +#endif #include <asm/uaccess.h> #include <asm/system.h>
@@ -859,6 +862,9 @@ #endifipv6_frag_init ();ipv6_nodata_init ();ipv6_destopt_init (); +#ifdef CONFIG_IPV6_MIP6 +mip6_init (); +#endif /* Init v6 transport protocols. */ udpv6_init ();
@@ -922,6 +928,9 @@ #ifdef CONFIG_PROC_FStcp6_proc_exit ();raw6_proc_exit ();#endif +#ifdef CONFIG_IPV6_MIP6 +mip6_fini (); +#endif /* Cleanup code parts. */ sit_cleanup ();ip6_flowlabel_cleanup ();
net/ipv6/mip6.c new file +186 -0
186 lines not on this page · raw message
Signature · 1 line
1.4.1