Skip to contentSkip to conversation

Addition of new routing protocols for iproute2

PATCH Superseded Donald Sharp 1 participant 3 messages Jun 8, 2018

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

cover Addition of new routing protocols for iproute2

The linux kernel recently accepted some new RTPROT values for some fairly standard routing protocols. This commit brings in support for iproute2 to handle these new values.

Additionally clean up some long standing cruft in etc/iproute2/rt_protos

Donald Sharp (2):
iproute2: Add support for a few routing protocols
iproute2: Remove leftover gated RT_PROT defines

 etc/iproute2/rt_protos    | 18 +++++-------------
 include/linux/rtnetlink.h |  5 +++++
 lib/rt_names.c            |  5 +++++
 3 files changed, 15 insertions(+), 13 deletions(-)
Signature · 1 line
2.14.4
#1 lore raw

v2 cover Addition of new routing protocols for iproute2

The linux kernel recently accepted some new RTPROT values for some fairly standard routing protocols. This commit brings in support for iproute2 to handle these new values.

v2 - Update to latest version of master which has rtnetlink.h code and drop
of work already done.

Donald Sharp (1):
iproute2: Add support for a few routing protocols

 etc/iproute2/rt_protos | 5 +++++
 lib/rt_names.c         | 5 +++++
 2 files changed, 10 insertions(+)
Signature · 1 line
2.14.4
#2 lore raw

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

In reply to Donald Sharp

Add support for:

BGP
ISIS
OSPF
RIP
EIGRP

Routing protocols to iproute2.

---
v2: Update to latest version of code.

 etc/iproute2/rt_protos | 5 +++++
 lib/rt_names.c         | 5 +++++
 2 files changed, 10 insertions(+)
etc/iproute2/rt_protos +5 -0
index 2a9ee01b..b3a0ec8f 100644
@@ -16,3 +16,8 @@
 15	ntk
 16      dhcp
 42	babel
+186	bgp
+187	isis
+188	ospf
+189	rip
+192	eigrp
lib/rt_names.c +5 -0
index a02db35e..66d5f2f0 100644
@@ -134,6 +134,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