const nw_string_table_t nw_port_vlan_proto[] = {
{ NW_VLAN_PROTO_8021Q, "802.1Q" },
- { NW_VLAN_PROTO_8021ad, "802.1ad" },
+ { NW_VLAN_PROTO_8021AD, "802.1ad" },
{ -1, NULL },
};
int nw_port_set_vlan_proto(nw_port* port, const nw_port_vlan_proto_t proto) {
switch (proto) {
case NW_VLAN_PROTO_8021Q:
- case NW_VLAN_PROTO_8021ad:
+ case NW_VLAN_PROTO_8021AD:
port->vlan.proto = proto;
break;
typedef enum nw_port_vlan_proto {
NW_VLAN_PROTO_8021Q = ETH_P_8021Q,
- NW_VLAN_PROTO_8021ad = ETH_P_8021AD,
+ NW_VLAN_PROTO_8021AD = ETH_P_8021AD,
} nw_port_vlan_proto_t;
struct nw_port_vlan {