From 75dbf137916a2356807edf12c84e4e906277dd3b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 31 Aug 2011 10:45:04 -0700 Subject: [PATCH] Add LLDP to ethernet type table and make type table const. --- lib/ll_proto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ll_proto.c b/lib/ll_proto.c index 2277cda..3337b14 100644 --- a/lib/ll_proto.c +++ b/lib/ll_proto.c @@ -30,7 +30,7 @@ #define __PF(f,n) { ETH_P_##f, #n }, -static struct { +static const struct { int id; const char *name; } llproto_names[] = { @@ -80,6 +80,7 @@ __PF(TIPC,tipc) __PF(AOE,aoe) { 0x8100, "802.1Q" }, +{ 0x88cc, "LLDP" }, { ETH_P_IP, "ipv4" }, }; #undef __PF -- 2.39.2