From: shemminger Date: Fri, 10 Mar 2006 23:44:04 +0000 (+0000) Subject: Add more rtproto values X-Git-Tag: v4.13.0~1865 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=40b6c62c6373a4dd4191078fdc6a2994792b2cb6;p=mirror_iproute2.git Add more rtproto values --- diff --git a/ChangeLog b/ChangeLog index 4075d1ef..883eb826 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-03-10 Alpt + + * Add more rt_proto values + 2006-03-10 Dale Sedivec * Warn when using "handle" instead of "classid" with "tc class" diff --git a/etc/iproute2/rt_protos b/etc/iproute2/rt_protos index 8c985d79..53047707 100644 --- a/etc/iproute2/rt_protos +++ b/etc/iproute2/rt_protos @@ -11,6 +11,10 @@ 10 mrt 11 zebra 12 bird +13 dnrouted +14 xorp +15 ntk + # # Used by me for gated # diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index ced29f28..7504618c 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -199,6 +199,7 @@ enum #define RTPROT_BIRD 12 /* BIRD */ #define RTPROT_DNROUTED 13 /* DECnet routing daemon */ #define RTPROT_XORP 14 /* XORP */ +#define RTPROT_NTK 15 /* Netsukuku */ /* rtm_scope diff --git a/lib/rt_names.c b/lib/rt_names.c index 03df086d..05046c2e 100644 --- a/lib/rt_names.c +++ b/lib/rt_names.c @@ -71,9 +71,8 @@ static char * rtnl_rtprot_tab[256] = { [RTPROT_ZEBRA] ="zebra", [RTPROT_BIRD] = "bird", [RTPROT_DNROUTED] = "dnrouted", -#ifdef RTPROT_XORP [RTPROT_XORP] = "xorp", -#endif + [RTPROT_NTK] = "ntk", };