diff options
| author | Shirley Ma <mashirle@us.ibm.com> | 2004-01-14 23:10:22 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2004-01-14 23:10:22 -0800 |
| commit | c272dd4672c7b0d2b20f84acb965f1b61694a601 (patch) | |
| tree | 79eaf4f0fdc5f10ccdf78fb9dca402270930a2a0 /include/linux | |
| parent | 4ab58d1817797ec1a794bd4a920bc604b521c562 (diff) | |
[IPV6]: Add MIB:ipv6RouterAdvert netlink notification.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/rtnetlink.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 6cfd6f2f4a98..eb051105d72f 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -44,6 +44,8 @@ #define RTM_DELTFILTER (RTM_BASE+29) #define RTM_GETTFILTER (RTM_BASE+30) +#define RTM_NEWRA (RTM_BASE+32) + #define RTM_NEWPREFIX (RTM_BASE+36) #define RTM_GETPREFIX (RTM_BASE+38) @@ -444,6 +446,38 @@ struct rtgenmsg }; /***************************************************************** + * Route Advertisement specific messages. + * ******/ + +/* struct iframsg + * passes router advertisement specific information + */ + +struct iframsg +{ + unsigned char ifra_family; + unsigned ifra_flags; + int ifra_index; +}; + +enum +{ + IFRA_UNSPEC, + IFRA_LMTU, + IFRA_CACHEINFO +}; + +/* max_adver_interval, min_adver_interval should be gotten from user level */ +struct ifra_cacheinfo { + __u32 hop_limit; + __u32 lifetime; + __u32 reachable_time; + __u32 retrans_time; +}; + +#define IFRA_MAX IFRA_CACHEINFO + +/***************************************************************** * Link layer specific messages. ****/ @@ -658,6 +692,8 @@ enum #define RTMGRP_IPV6_PREFIX 0x20000 +#define RTMGRP_IPV6_IFRA 0x10000 + /* End of information exported to user level */ #ifdef __KERNEL__ |
