From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] rtnetlink: Add more well known protocol values Date: Thu, 31 May 2018 17:13:29 -0400 Message-ID: <20180531171329.05feac8c@shemminger-XPS-13-9360> References: <20180530122732.3688-1-sharpd@cumulusnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, dsahern@gmail.com To: Donald Sharp Return-path: Received: from mail-wr0-f193.google.com ([209.85.128.193]:33297 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750861AbeEaVNf (ORCPT ); Thu, 31 May 2018 17:13:35 -0400 Received: by mail-wr0-f193.google.com with SMTP id k16-v6so7070220wro.0 for ; Thu, 31 May 2018 14:13:35 -0700 (PDT) In-Reply-To: <20180530122732.3688-1-sharpd@cumulusnetworks.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 30 May 2018 08:27:32 -0400 Donald Sharp wrote: > FRRouting installs routes into the kernel associated with > the originating protocol. Add these values to the well > known values in rtnetlink.h. > > Signed-off-by: Donald Sharp > --- > v2: Fixed whitespace issues > include/uapi/linux/rtnetlink.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h > index cabb210c93af..7d8502313c99 100644 > --- a/include/uapi/linux/rtnetlink.h > +++ b/include/uapi/linux/rtnetlink.h > @@ -254,6 +254,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 > There is a matching table in iproute2 which should also be updated. See etc/iproute/rt_protos There also seems to be some leftover gated garbage there as well...