From 11d7087a4ededf203c578912a64ada2324ee8e87 Mon Sep 17 00:00:00 2001 From: John Hurley Date: Wed, 10 Jul 2019 13:40:38 +0100 Subject: [PATCH] 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 --- lib/ll_proto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ll_proto.c b/lib/ll_proto.c index 78c39616..2a0c1cb3 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" },