From: John Hurley Date: Wed, 10 Jul 2019 12:40:38 +0000 (+0100) Subject: lib: add mpls_uc and mpls_mc as link layer protocol names X-Git-Tag: v5.3.0~50^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11d7087a4ededf203c578912a64ada2324ee8e87;p=thirdparty%2Fiproute2.git lib: add mpls_uc and mpls_mc as link layer protocol names Update the llproto_names array to allow users to reference the mpls protocol ids with the names 'mpls_uc' for unicast MPLS and 'mpls_mc' for multicast. Signed-off-by: John Hurley Reviewed-by: Jakub Kicinski Signed-off-by: David Ahern --- diff --git a/lib/ll_proto.c b/lib/ll_proto.c index 78c39616f..2a0c1cb31 100644 --- a/lib/ll_proto.c +++ b/lib/ll_proto.c @@ -78,6 +78,8 @@ __PF(TIPC,tipc) __PF(AOE,aoe) __PF(8021Q,802.1Q) __PF(8021AD,802.1ad) +__PF(MPLS_UC,mpls_uc) +__PF(MPLS_MC,mpls_mc) { 0x8100, "802.1Q" }, { 0x88cc, "LLDP" },