ipv6: export IP6_RT_PRIO_* to userland
commit130cd273d4a46a3011b1cc739f5d2af78779d666
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 5 Nov 2012 05:28:18 +0000 (5 05:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Nov 2012 06:47:40 +0000 (16 01:47 -0500)
tree508374445793be54ac9ee9a4d9b1bda24aa4beb5
parentd4d0d3557b4d6ee735fbec275803d637ee26b42d
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: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
include/uapi/linux/ipv6_route.h