Commit 130cd273 authored by Nicolas Dichtel's avatar Nicolas Dichtel Committed by David S. Miller

ipv6: export IP6_RT_PRIO_* to userland

The kernel uses some default metric when routes are managed. For example, a
static route added with a metric set to 0 is inserted in the kernel with
metric 1024 (IP6_RT_PRIO_USER).
It is useful for routing daemons to know these values, to be able to set routes
without interfering with what the kernel does.
Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d4d0d355
#ifndef _NET_IP6_ROUTE_H #ifndef _NET_IP6_ROUTE_H
#define _NET_IP6_ROUTE_H #define _NET_IP6_ROUTE_H
#define IP6_RT_PRIO_USER 1024
#define IP6_RT_PRIO_ADDRCONF 256
struct route_info { struct route_info {
__u8 type; __u8 type;
__u8 length; __u8 length;
......
...@@ -55,4 +55,7 @@ struct in6_rtmsg { ...@@ -55,4 +55,7 @@ struct in6_rtmsg {
#define RTMSG_NEWROUTE 0x21 #define RTMSG_NEWROUTE 0x21
#define RTMSG_DELROUTE 0x22 #define RTMSG_DELROUTE 0x22
#define IP6_RT_PRIO_USER 1024
#define IP6_RT_PRIO_ADDRCONF 256
#endif /* _UAPI_LINUX_IPV6_ROUTE_H */ #endif /* _UAPI_LINUX_IPV6_ROUTE_H */
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