Skip to contentSkip to conversation

iproute2: Add support for a few routing protocols

PATCH Superseded Donald Sharp 2 participants 2 messages Jun 8, 2018

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 iproute2: Add support for a few routing protocols

Add support for:

BGP
ISIS
OSPF
RIP
EIGRP

Routing protocols to iproute2.

---
 etc/iproute2/rt_protos    | 5 +++++
 include/linux/rtnetlink.h | 5 +++++
 lib/rt_names.c            | 5 +++++
 3 files changed, 15 insertions(+)
etc/iproute2/rt_protos +5 -0
index 82cf9c46..3ffe8a6c 100644
@@ -16,6 +16,11 @@
 15	ntk
 16      dhcp
 42	babel
+186     bgp
+187     isis
+188     ospf
+189     rip
+192     eigrp
 
 #
 #	Used by me for gated
include/linux/rtnetlink.h +5 -0
index 742ba078..2e83a267 100644
@@ -248,6 +248,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
 
lib/rt_names.c +5 -0
index 253389a6..d3562d2d 100644
@@ -137,6 +137,11 @@ static char * rtnl_rtprot_tab[256] = {
 	[RTPROT_XORP] = "xorp",
 	[RTPROT_NTK] = "ntk",
 	[RTPROT_DHCP] = "dhcp",
+	[RTPROT_BGP] = "bgp",
+	[RTPROT_ISIS] = "isis",
+	[RTPROT_OSPF] = "ospf",
+	[RTPROT_RIP] = "rip",
+	[RTPROT_EIGRP] = "eigrp",
 };
 
 
Signature · 1 line
2.14.4
#1 lore raw
Quoted 8 lines · On Fri, 8 Jun 2018 08:46:37 -0400 Donald Sharp <[email protected]>…

Add support for:

BGP
ISIS
OSPF
RIP
EIGRP

Quoted 9 lines

Routing protocols to iproute2.

---
 etc/iproute2/rt_protos    | 5 +++++
 include/linux/rtnetlink.h | 5 +++++
 lib/rt_names.c            | 5 +++++
 3 files changed, 15 insertions(+)

I just merged iproute2-next into iproute2 and rtnetlink.h is now up to date. Please rebase your patches.