]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iproute2: Add support for a few routing protocols
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 8 Jun 2018 17:47:13 +0000 (13:47 -0400)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 11 Jun 2018 18:18:30 +0000 (11:18 -0700)
Add support for:

BGP
ISIS
OSPF
RIP
EIGRP

Routing protocols to iproute2.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
etc/iproute2/rt_protos
lib/rt_names.c

index 2a9ee01ba9018ab8b8c570c672100ddfca7480f2..b3a0ec8fda59818da0a7ea0720f670602756d94c 100644 (file)
@@ -16,3 +16,8 @@
 15     ntk
 16      dhcp
 42     babel
+186    bgp
+187    isis
+188    ospf
+189    rip
+192    eigrp
index a02db35eaa8fdd96c3882d499d987b33d7ec95ea..66d5f2f0722b80a7764315a8122b2fcc7fd0f138 100644 (file)
@@ -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",
 };