diff options
| author | Shirley Ma <mashirle@us.ibm.com> | 2004-01-14 09:01:45 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2004-01-14 09:01:45 -0800 |
| commit | 60872d54d963eefeb302ebeae15204e4be229c2b (patch) | |
| tree | 808968ce25fc5a8954ad22085cdcf1ff2ccece31 /include/linux | |
| parent | 3c1ea2a57f835a46d08b20d72b2c3c8bc4e9c2a0 (diff) | |
[IPV6]: Add notification for MIB:ipv6Prefix events.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/rtnetlink.h | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index db1966e24462..6cfd6f2f4a98 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -44,7 +44,10 @@ #define RTM_DELTFILTER (RTM_BASE+29) #define RTM_GETTFILTER (RTM_BASE+30) -#define RTM_MAX (RTM_BASE+31) +#define RTM_NEWPREFIX (RTM_BASE+36) +#define RTM_GETPREFIX (RTM_BASE+38) + +#define RTM_MAX (RTM_BASE+39) /* Generic structure for encapsulation of optional route information. @@ -459,6 +462,34 @@ struct ifinfomsg unsigned ifi_change; /* IFF_* change mask */ }; +/******************************************************************** + * prefix information + ****/ + +struct prefixmsg +{ + unsigned char prefix_family; + int prefix_ifindex; + unsigned char prefix_type; + unsigned char prefix_len; + unsigned char prefix_flags; +}; + +enum +{ + PREFIX_UNSPEC, + PREFIX_ADDRESS, + PREFIX_CACHEINFO, +}; + +#define PREFIX_MAX PREFIX_CACHEINFO + +struct prefix_cacheinfo +{ + __u32 preferred_time; + __u32 valid_time; +}; + /* The struct should be in sync with struct net_device_stats */ struct rtnl_link_stats { @@ -625,6 +656,8 @@ enum #define RTMGRP_DECnet_IFADDR 0x1000 #define RTMGRP_DECnet_ROUTE 0x4000 +#define RTMGRP_IPV6_PREFIX 0x20000 + /* End of information exported to user level */ #ifdef __KERNEL__ |
