Skip to contentSkip to conversation

rtnetlink: Add more well known protocol values

PATCH In review Donald Sharp 2 participants 2 messages May 25, 2018 – May 26, 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.

---
 include/uapi/linux/rtnetlink.h | 5 +++++
 1 file changed, 5 insertions(+)
include/uapi/linux/rtnetlink.h +5 -0
index cabb210c93af..81b33826f818 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

Hello!

Quoted 14 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.

---
  include/uapi/linux/rtnetlink.h | 5 +++++
  1 file changed, 5 insertions(+)
include/uapi/linux/rtnetlink.h +0 -0
index cabb210c93af..81b33826f818 100644

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

Quoted 8 lines
include/uapi/linux/rtnetlink.h +5 -0
@@ -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 */

The preceding entries use tab to indent the value, yours use spaces. Not
good...

[...]

MBR, Sergei