summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoriaki TAKAMIYA <takamiya@po.ntts.co.jp>2006-08-23 19:21:34 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 15:06:52 -0700
commit842426e719f86cd5709617208efae93ff1a1e2d8 (patch)
treeaa18a6fae1c45b645c8ae8fcb1568e3d3502cabc /include
parenta80ff03e05e4343d647780c116b02ec86078fd24 (diff)
downloadlinux-3.10-842426e719f86cd5709617208efae93ff1a1e2d8.tar.gz
linux-3.10-842426e719f86cd5709617208efae93ff1a1e2d8.tar.bz2
linux-3.10-842426e719f86cd5709617208efae93ff1a1e2d8.zip
[IPV6] MIP6: Add home address option definition.
Add home address option definition for Mobile IPv6. Based on MIPL2 kernel patch. Signed-off-by: Noriaki TAKAMIYA <takamiya@po.ntts.co.jp> Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/in6.h1
-rw-r--r--include/linux/ipv6.h10
2 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/in6.h b/include/linux/in6.h
index 304aaedea30..086ec2ac8c5 100644
--- a/include/linux/in6.h
+++ b/include/linux/in6.h
@@ -142,6 +142,7 @@ struct in6_flowlabel_req
#define IPV6_TLV_PADN 1
#define IPV6_TLV_ROUTERALERT 5
#define IPV6_TLV_JUMBO 194
+#define IPV6_TLV_HAO 201 /* home address option */
/*
* IPV6 socket options
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h
index d995662e94c..5bf4406e26d 100644
--- a/include/linux/ipv6.h
+++ b/include/linux/ipv6.h
@@ -86,6 +86,16 @@ struct rt2_hdr {
#define rt2_type rt_hdr.type
};
+/*
+ * home address option in destination options header
+ */
+
+struct ipv6_destopt_hao {
+ __u8 type;
+ __u8 length;
+ struct in6_addr addr;
+} __attribute__ ((__packed__));
+
struct ipv6_auth_hdr {
__u8 nexthdr;
__u8 hdrlen; /* This one is measured in 32 bit units! */