From 1fa804e0d37084871a84480d379272a82d025d25 Mon Sep 17 00:00:00 2001 From: Dave Taht Date: Tue, 4 Nov 2014 14:23:47 -0800 Subject: [PATCH] iproute2: Add support for babel protocol table entry --- etc/iproute2/rt_protos | 1 + include/linux/rtnetlink.h | 2 ++ lib/rt_names.c | 1 + 3 files changed, 4 insertions(+) diff --git a/etc/iproute2/rt_protos b/etc/iproute2/rt_protos index 38d8ec4e..82cf9c46 100644 --- a/etc/iproute2/rt_protos +++ b/etc/iproute2/rt_protos @@ -15,6 +15,7 @@ 14 xorp 15 ntk 16 dhcp +42 babel # # Used by me for gated diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 248fdd3f..ae23d94f 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -235,6 +235,8 @@ enum { #define RTPROT_NTK 15 /* Netsukuku */ #define RTPROT_DHCP 16 /* DHCP client */ #define RTPROT_MROUTED 17 /* Multicast daemon */ +#define RTPROT_BABEL 42 /* Babel daemon */ + /* rtm_scope diff --git a/lib/rt_names.c b/lib/rt_names.c index 184f590b..369e0f4e 100644 --- a/lib/rt_names.c +++ b/lib/rt_names.c @@ -120,6 +120,7 @@ static char * rtnl_rtprot_tab[256] = { [RTPROT_MRT] = "mrt", [RTPROT_ZEBRA] ="zebra", [RTPROT_BIRD] = "bird", + [RTPROT_BABEL] = "babel", [RTPROT_DNROUTED] = "dnrouted", [RTPROT_XORP] = "xorp", [RTPROT_NTK] = "ntk", -- 2.39.2