From: Stephen Hemminger Date: Wed, 31 Aug 2011 17:45:04 +0000 (-0700) Subject: Add LLDP to ethernet type table X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lisovros/iproute2_canprio.git/commitdiff_plain/75dbf137916a2356807edf12c84e4e906277dd3b Add LLDP to ethernet type table and make type table const. --- 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