Skip to contentSkip to conversation

rtnetlink: Add more well known protocol values

PATCH Applied Donald Sharp 3 participants 4 messages May 30, 2018 – May 31, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtnetlink: Add more well known protocol values

FRRouting installs routes into the kernel associated with the originating protocol. Add these values to the well known values in rtnetlink.h.

---
v2: Fixed whitespace issues

 include/uapi/linux/rtnetlink.h | 5 +++++
 1 file changed, 5 insertions(+)
include/uapi/linux/rtnetlink.h +5 -0
index cabb210c93af..7d8502313c99 100644
@@ -254,6 +254,11 @@ enum {
 #define RTPROT_DHCP	16      /* DHCP client */
 #define RTPROT_MROUTED	17      /* Multicast daemon */
 #define RTPROT_BABEL	42      /* Babel daemon */
+#define RTPROT_BGP	186     /* BGP Routes */
+#define RTPROT_ISIS	187     /* ISIS Routes */
+#define RTPROT_OSPF	188     /* OSPF Routes */
+#define RTPROT_RIP	189     /* RIP Routes */
+#define RTPROT_EIGRP	192     /* EIGRP Routes */
 
 /* rtm_scope
 
Signature · 1 line
2.14.3
#1 lore raw

This patch is intended for net-next.

thanks!

donald

Quoted 29 lines · Donald Sharp

FRRouting installs routes into the kernel associated with the originating protocol. Add these values to the well known values in rtnetlink.h.

---
v2: Fixed whitespace issues

 include/uapi/linux/rtnetlink.h | 5 +++++
 1 file changed, 5 insertions(+)
include/uapi/linux/rtnetlink.h +5 -1
index cabb210c93af..7d8502313c99 100644
@@ -254,6 +254,11 @@ enum {
 #define RTPROT_DHCP    16      /* DHCP client */
 #define RTPROT_MROUTED 17      /* Multicast daemon */
 #define RTPROT_BABEL   42      /* Babel daemon */
+#define RTPROT_BGP     186     /* BGP Routes */
+#define RTPROT_ISIS    187     /* ISIS Routes */
+#define RTPROT_OSPF    188     /* OSPF Routes */
+#define RTPROT_RIP     189     /* RIP Routes */
+#define RTPROT_EIGRP   192     /* EIGRP Routes */
 
 /* rtm_scope
 
--

2.14.3

#3 lore raw
In reply to Donald Sharp
Quoted 16 lines · On Wed, 30 May 2018 08:27:32 -0400 Donald Sharp <[email protected]>…

FRRouting installs routes into the kernel associated with the originating protocol. Add these values to the well known values in rtnetlink.h.

---
v2: Fixed whitespace issues

 include/uapi/linux/rtnetlink.h | 5 +++++
 1 file changed, 5 insertions(+)
include/uapi/linux/rtnetlink.h +0 -0
index cabb210c93af..7d8502313c99 100644
@@ -254,6 +254,11 @@ enum {
 #define RTPROT_DHCP	16      /* DHCP client */

include/uapi/linux/rtnetlink.h enum { · line 264

Quoted 10 lines
include/uapi/linux/rtnetlink.h +5 -0
 #define RTPROT_MROUTED	17      /* Multicast daemon */
 #define RTPROT_BABEL	42      /* Babel daemon */
+#define RTPROT_BGP	186     /* BGP Routes */
+#define RTPROT_ISIS	187     /* ISIS Routes */
+#define RTPROT_OSPF	188     /* OSPF Routes */
+#define RTPROT_RIP	189     /* RIP Routes */
+#define RTPROT_EIGRP	192     /* EIGRP Routes */
 
 /* rtm_scope
 

There is a matching table in iproute2 which should also be updated. See etc/iproute/rt_protos

There also seems to be some leftover gated garbage there as well...