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
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@
#define __PF(f,n) { ETH_P_##f, #n }, #define __PF(f,n) { ETH_P_##f, #n },
static struct { static const struct {
int id; int id;
const char *name; const char *name;
} llproto_names[] = { } llproto_names[] = {
@ -80,6 +80,7 @@ __PF(TIPC,tipc)
__PF(AOE,aoe) __PF(AOE,aoe)
{ 0x8100, "802.1Q" }, { 0x8100, "802.1Q" },
{ 0x88cc, "LLDP" },
{ ETH_P_IP, "ipv4" }, { ETH_P_IP, "ipv4" },
}; };
#undef __PF #undef __PF