mirror of
				https://git.proxmox.com/git/mirror_iproute2
				synced 2025-11-04 00:54:22 +00:00 
			
		
		
		
	add support to keepalived rtm_protocol
Following inclusion in net-next, extend rtnl_rtprot_tab and rt_protos to support Keepalived. Signed-off-by: Alexandre Cassen <acassen@gmail.com> Signed-off-by: David Ahern <dsahern@kernel.org>
This commit is contained in:
		
							parent
							
								
									482e463d6c
								
							
						
					
					
						commit
						30f3beea0d
					
				@ -14,7 +14,8 @@
 | 
			
		||||
13	dnrouted
 | 
			
		||||
14	xorp
 | 
			
		||||
15	ntk
 | 
			
		||||
16      dhcp
 | 
			
		||||
16	dhcp
 | 
			
		||||
18	keepalived
 | 
			
		||||
42	babel
 | 
			
		||||
186	bgp
 | 
			
		||||
187	isis
 | 
			
		||||
 | 
			
		||||
@ -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_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_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",
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user