netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2-next] add support to keepalived rtm_protocol
@ 2020-06-24 16:21 Alexandre Cassen
  2020-07-05 15:06 ` David Ahern
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Cassen @ 2020-06-24 16:21 UTC (permalink / raw)
  To: netdev; +Cc: stephen, dsahern, quentin

Following inclusion in net-next, extend rtnl_rtprot_tab and rt_protos
to support Keepalived.

Signed-off-by: Alexandre Cassen <acassen@gmail.com>
---
 etc/iproute2/rt_protos |  3 ++-
 lib/rt_names.c         | 43 +++++++++++++++++++++---------------------
 2 files changed, 24 insertions(+), 22 deletions(-)

diff --git a/etc/iproute2/rt_protos b/etc/iproute2/rt_protos
index b3a0ec8f..7cafddc1 100644
--- a/etc/iproute2/rt_protos
+++ b/etc/iproute2/rt_protos
@@ -14,7 +14,8 @@
 13	dnrouted
 14	xorp
 15	ntk
-16      dhcp
+16	dhcp
+18	keepalived
 42	babel
 186	bgp
 187	isis
diff --git a/lib/rt_names.c b/lib/rt_names.c
index 41cccfb8..c40d2e77 100644
--- a/lib/rt_names.c
+++ b/lib/rt_names.c
@@ -120,27 +120,28 @@ static void rtnl_tab_initialize(const char *file, char **tab, int size)
 }
 
 static char *rtnl_rtprot_tab[256] = {
-	[RTPROT_UNSPEC]   = "unspec",
-	[RTPROT_REDIRECT] = "redirect",
-	[RTPROT_KERNEL]	  = "kernel",
-	[RTPROT_BOOT]	  = "boot",
-	[RTPROT_STATIC]	  = "static",
-
-	[RTPROT_GATED]	  = "gated",
-	[RTPROT_RA]	  = "ra",
-	[RTPROT_MRT]	  = "mrt",
-	[RTPROT_ZEBRA]	  = "zebra",
-	[RTPROT_BIRD]	  = "bird",
-	[RTPROT_BABEL]	  = "babel",
-	[RTPROT_DNROUTED] = "dnrouted",
-	[RTPROT_XORP]	  = "xorp",
-	[RTPROT_NTK]	  = "ntk",
-	[RTPROT_DHCP]	  = "dhcp",
-	[RTPROT_BGP]	  = "bgp",
-	[RTPROT_ISIS]	  = "isis",
-	[RTPROT_OSPF]	  = "ospf",
-	[RTPROT_RIP]	  = "rip",
-	[RTPROT_EIGRP]	  = "eigrp",
+	[RTPROT_UNSPEC]	    = "unspec",
+	[RTPROT_REDIRECT]   = "redirect",
+	[RTPROT_KERNEL]	    = "kernel",
+	[RTPROT_BOOT]	    = "boot",
+	[RTPROT_STATIC]	    = "static",
+
+	[RTPROT_GATED]	    = "gated",
+	[RTPROT_RA]	    = "ra",
+	[RTPROT_MRT]	    = "mrt",
+	[RTPROT_ZEBRA]	    = "zebra",
+	[RTPROT_BIRD]	    = "bird",
+	[RTPROT_BABEL]	    = "babel",
+	[RTPROT_DNROUTED]   = "dnrouted",
+	[RTPROT_XORP]	    = "xorp",
+	[RTPROT_NTK]	    = "ntk",
+	[RTPROT_DHCP]	    = "dhcp",
+	[RTPROT_KEEPALIVED] = "keepalived",
+	[RTPROT_BGP]	    = "bgp",
+	[RTPROT_ISIS]	    = "isis",
+	[RTPROT_OSPF]	    = "ospf",
+	[RTPROT_RIP]	    = "rip",
+	[RTPROT_EIGRP]	    = "eigrp",
 };
 
 
-- 
2.17.1


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

* Re: [PATCH iproute2-next] add support to keepalived rtm_protocol
  2020-06-24 16:21 [PATCH iproute2-next] add support to keepalived rtm_protocol Alexandre Cassen
@ 2020-07-05 15:06 ` David Ahern
  0 siblings, 0 replies; 2+ messages in thread
From: David Ahern @ 2020-07-05 15:06 UTC (permalink / raw)
  To: Alexandre Cassen, netdev; +Cc: stephen, quentin

On 6/24/20 10:21 AM, Alexandre Cassen wrote:
> Following inclusion in net-next, extend rtnl_rtprot_tab and rt_protos
> to support Keepalived.
> 
> Signed-off-by: Alexandre Cassen <acassen@gmail.com>
> ---
>  etc/iproute2/rt_protos |  3 ++-
>  lib/rt_names.c         | 43 +++++++++++++++++++++---------------------
>  2 files changed, 24 insertions(+), 22 deletions(-)
> 

applied to iproute2-next. Thanks



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

end of thread, other threads:[~2020-07-05 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24 16:21 [PATCH iproute2-next] add support to keepalived rtm_protocol Alexandre Cassen
2020-07-05 15:06 ` David Ahern

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