Commit 842426e7 authored by Noriaki TAKAMIYA's avatar Noriaki TAKAMIYA Committed by David S. Miller

[IPV6] MIP6: Add home address option definition.

Add home address option definition for Mobile IPv6.
Based on MIPL2 kernel patch.
Signed-off-by: default avatarNoriaki TAKAMIYA <takamiya@po.ntts.co.jp>
Signed-off-by: default avatarMasahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a80ff03e
...@@ -142,6 +142,7 @@ struct in6_flowlabel_req ...@@ -142,6 +142,7 @@ struct in6_flowlabel_req
#define IPV6_TLV_PADN 1 #define IPV6_TLV_PADN 1
#define IPV6_TLV_ROUTERALERT 5 #define IPV6_TLV_ROUTERALERT 5
#define IPV6_TLV_JUMBO 194 #define IPV6_TLV_JUMBO 194
#define IPV6_TLV_HAO 201 /* home address option */
/* /*
* IPV6 socket options * IPV6 socket options
......
...@@ -86,6 +86,16 @@ struct rt2_hdr { ...@@ -86,6 +86,16 @@ struct rt2_hdr {
#define rt2_type rt_hdr.type #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 { struct ipv6_auth_hdr {
__u8 nexthdr; __u8 nexthdr;
__u8 hdrlen; /* This one is measured in 32 bit units! */ __u8 hdrlen; /* This one is measured in 32 bit units! */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment