diff options
author | John Hurley <john.hurley@netronome.com> | 2019-07-10 13:40:38 +0100 |
---|---|---|
committer | David Ahern <dsahern@gmail.com> | 2019-07-10 14:06:28 -0700 |
commit | 11d7087a4ededf203c578912a64ada2324ee8e87 (patch) | |
tree | c3d19171592da9666918f7c7056b5f339374ddb3 | |
parent | 1827694858b9ff5e326f75fd50783a8dfafdbc55 (diff) |
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 <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
-rw-r--r-- | lib/ll_proto.c | 2 |
1 files changed, 2 insertions, 0 deletions
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" }, |