]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
lib: add mpls_uc and mpls_mc as link layer protocol names
authorJohn Hurley <john.hurley@netronome.com>
Wed, 10 Jul 2019 12:40:38 +0000 (13:40 +0100)
committerDavid Ahern <dsahern@gmail.com>
Wed, 10 Jul 2019 21:06:28 +0000 (14:06 -0700)
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 <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
lib/ll_proto.c

index 78c39616f2cc136a156f4b99504fa20487d654d4..2a0c1cb319ecaabe5e1af6afddba24544de96c8b 100644 (file)
@@ -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" },