From: Michael Tremer Date: Thu, 8 Jun 2023 15:49:27 +0000 (+0000) Subject: ports: VLAN: Make all constants uppercase X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4db7e54816eb20319d2f90336a029386b0cd3e91;p=network.git ports: VLAN: Make all constants uppercase Signed-off-by: Michael Tremer --- diff --git a/src/networkd/port-vlan.c b/src/networkd/port-vlan.c index 45abebe9..56b02749 100644 --- a/src/networkd/port-vlan.c +++ b/src/networkd/port-vlan.c @@ -32,7 +32,7 @@ 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 }, }; @@ -161,7 +161,7 @@ int nw_port_set_vlan_id(nw_port* port, int id) { 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; diff --git a/src/networkd/port-vlan.h b/src/networkd/port-vlan.h index 17d31340..b4df5627 100644 --- a/src/networkd/port-vlan.h +++ b/src/networkd/port-vlan.h @@ -28,7 +28,7 @@ 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 {