netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Addition of new routing protocols for iproute2
@ 2018-06-08 12:46 Donald Sharp
  2018-06-08 17:47 ` [PATCH v2 0/1] " Donald Sharp
  2018-06-08 17:47 ` [PATCH v2 1/1] iproute2: Add support for a few routing protocols Donald Sharp
  0 siblings, 2 replies; 3+ messages in thread
From: Donald Sharp @ 2018-06-08 12:46 UTC (permalink / raw)
  To: netdev, stephen, dsahern

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(-)

-- 
2.14.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 0/1] Addition of new routing protocols for iproute2
  2018-06-08 12:46 [PATCH 0/2] Addition of new routing protocols for iproute2 Donald Sharp
@ 2018-06-08 17:47 ` Donald Sharp
  2018-06-08 17:47 ` [PATCH v2 1/1] iproute2: Add support for a few routing protocols Donald Sharp
  1 sibling, 0 replies; 3+ messages in thread
From: Donald Sharp @ 2018-06-08 17:47 UTC (permalink / raw)
  To: netdev, dsahern, stephen

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(+)

-- 
2.14.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 1/1] iproute2: Add support for a few routing protocols
  2018-06-08 12:46 [PATCH 0/2] Addition of new routing protocols for iproute2 Donald Sharp
  2018-06-08 17:47 ` [PATCH v2 0/1] " Donald Sharp
@ 2018-06-08 17:47 ` Donald Sharp
  1 sibling, 0 replies; 3+ messages in thread
From: Donald Sharp @ 2018-06-08 17:47 UTC (permalink / raw)
  To: netdev, dsahern, stephen

Add support for:

BGP
ISIS
OSPF
RIP
EIGRP

Routing protocols to iproute2.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
---
v2: Update to latest version of code.
 etc/iproute2/rt_protos | 5 +++++
 lib/rt_names.c         | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/etc/iproute2/rt_protos b/etc/iproute2/rt_protos
index 2a9ee01b..b3a0ec8f 100644
--- a/etc/iproute2/rt_protos
+++ b/etc/iproute2/rt_protos
@@ -16,3 +16,8 @@
 15	ntk
 16      dhcp
 42	babel
+186	bgp
+187	isis
+188	ospf
+189	rip
+192	eigrp
diff --git a/lib/rt_names.c b/lib/rt_names.c
index a02db35e..66d5f2f0 100644
--- a/lib/rt_names.c
+++ b/lib/rt_names.c
@@ -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",
 };
 
 
-- 
2.14.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-08 17:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-08 12:46 [PATCH 0/2] Addition of new routing protocols for iproute2 Donald Sharp
2018-06-08 17:47 ` [PATCH v2 0/1] " Donald Sharp
2018-06-08 17:47 ` [PATCH v2 1/1] iproute2: Add support for a few routing protocols Donald Sharp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).