Add LLDP to ethernet type table

and make type table const.
This commit is contained in:
Stephen Hemminger 2011-08-31 10:45:04 -07:00
parent 610b22a30f
commit 75dbf13791

View 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