Add LLDP to ethernet type table
and make type table const.
This commit is contained in:
parent
610b22a30f
commit
75dbf13791
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue