]> git.ipfire.org Git - people/ms/network.git/commitdiff
ports: Move VLAN constants to VLAN header
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Jun 2023 16:22:11 +0000 (16:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Jun 2023 16:22:11 +0000 (16:22 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/networkd/port-vlan.h
src/networkd/port.h

index 6ecf6a40881e9280da65b9d63c76f8e0cb219fae..e17f7e7ad4d2e335fac7e08f9ee75134c0e635c7 100644 (file)
@@ -31,6 +31,11 @@ typedef enum nw_port_vlan_proto {
        NW_VLAN_PROTO_8021AD = ETH_P_8021AD,
 } nw_port_vlan_proto_t;
 
+// VLAN ID
+#define NW_VLAN_ID_INVALID             0
+#define NW_VLAN_ID_MIN                 1
+#define NW_VLAN_ID_MAX                 4096
+
 struct nw_port_vlan {
        nw_port* parent;
 
index c9add71708f6916a5f626b6bd64b1814f0ef923f..15b8bc17e834a99289f2ab2f6669d49e26f469a2 100644 (file)
 
 #define PORT_CONFIG_DIR                        CONFIG_DIR "/ports"
 
-// VLAN
-#define NW_VLAN_ID_INVALID             0
-#define NW_VLAN_ID_MIN                 1
-#define NW_VLAN_ID_MAX                 4096
-
 typedef struct nw_port nw_port;
 
 typedef enum nw_port_type_id {