]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
Add LLDP to ethernet type table
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 31 Aug 2011 17:45:04 +0000 (10:45 -0700)
committerStephen Hemminger <shemminger@vyatta.com>
Wed, 31 Aug 2011 17:45:04 +0000 (10:45 -0700)
and make type table const.

lib/ll_proto.c

index 2277cda384693d2185f83a1a32c2448158bb75db..3337b1466405a28de7d1fcfab4dbd67fe7082359 100644 (file)
@@ -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