]> git.ipfire.org Git - people/ms/network.git/commitdiff
ports: VLAN: Make all constants uppercase
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Jun 2023 15:49:27 +0000 (15:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Jun 2023 15:49:27 +0000 (15:49 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/networkd/port-vlan.c
src/networkd/port-vlan.h

index 45abebe90e428e50cba76a0a570ba9aa30a71919..56b02749318df57ab03a5b747159ce18304ab5c7 100644 (file)
@@ -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;
 
index 17d31340a41febaca078290369307af3ebb811df..b4df56270ccf28023ba250540d7c8a8b6c3809be 100644 (file)
@@ -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 {