From: Stephen Hemminger Date: Wed, 31 Aug 2011 17:45:04 +0000 (-0700) Subject: Add LLDP to ethernet type table X-Git-Tag: v3.0.0~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75dbf137916a2356807edf12c84e4e906277dd3b;p=thirdparty%2Fiproute2.git Add LLDP to ethernet type table and make type table const. --- diff --git a/lib/ll_proto.c b/lib/ll_proto.c index 2277cda38..3337b1466 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