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

Add support for:

BGP
ISIS
OSPF
RIP
EIGRP

Routing protocols to iproute2.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
---
 etc/iproute2/rt_protos    | 5 +++++
 include/linux/rtnetlink.h | 5 +++++
 lib/rt_names.c            | 5 +++++
 3 files changed, 15 insertions(+)

diff --git a/etc/iproute2/rt_protos b/etc/iproute2/rt_protos
index 82cf9c46..3ffe8a6c 100644
--- a/etc/iproute2/rt_protos
+++ b/etc/iproute2/rt_protos
@@ -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
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
index 742ba078..2e83a267 100644
--- a/include/linux/rtnetlink.h
+++ b/include/linux/rtnetlink.h
@@ -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
 
diff --git a/lib/rt_names.c b/lib/rt_names.c
index 253389a6..d3562d2d 100644
--- a/lib/rt_names.c
+++ b/lib/rt_names.c
@@ -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",
 };
 
 
-- 
2.14.4

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

* Re: [PATCH 1/2] iproute2: Add support for a few routing protocols
  2018-06-08 12:46 [PATCH 1/2] iproute2: Add support for a few routing protocols Donald Sharp
@ 2018-06-08 17:29 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2018-06-08 17:29 UTC (permalink / raw)
  To: Donald Sharp; +Cc: netdev, dsahern

On Fri,  8 Jun 2018 08:46:37 -0400
Donald Sharp <sharpd@cumulusnetworks.com> wrote:

> Add support for:
> 
> BGP
> ISIS
> OSPF
> RIP
> EIGRP
> 
> Routing protocols to iproute2.
> 
> Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
> ---
>  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.

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

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

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

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