Skip to content

Commit

Permalink
[IPV6] MIP6: Add routing header type 2 definition.
Browse files Browse the repository at this point in the history
Add routing header type 2 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>
  • Loading branch information
Noriaki TAKAMIYA authored and David S. Miller committed Sep 22, 2006
1 parent ee53826 commit 642ec62
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/linux/ipv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ struct in6_ifreq {

#define IPV6_SRCRT_STRICT 0x01 /* this hop must be a neighbor */
#define IPV6_SRCRT_TYPE_0 0 /* IPv6 type 0 Routing Header */
#define IPV6_SRCRT_TYPE_2 2 /* IPv6 type 2 Routing Header */

/*
* routing header
Expand Down Expand Up @@ -73,6 +74,18 @@ struct rt0_hdr {
#define rt0_type rt_hdr.type
};

/*
* routing header type 2
*/

struct rt2_hdr {
struct ipv6_rt_hdr rt_hdr;
__u32 reserved;
struct in6_addr addr;

#define rt2_type rt_hdr.type
};

struct ipv6_auth_hdr {
__u8 nexthdr;
__u8 hdrlen; /* This one is measured in 32 bit units! */
Expand Down

0 comments on commit 642ec62

Please sign in to comment.