From: Michael Tremer Date: Thu, 8 Jun 2023 16:22:11 +0000 (+0000) Subject: ports: Move VLAN constants to VLAN header X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81ab55ae98a4280265fc7b3bee2c3770d621c152;p=network.git ports: Move VLAN constants to VLAN header Signed-off-by: Michael Tremer --- diff --git a/src/networkd/port-vlan.h b/src/networkd/port-vlan.h index 6ecf6a40..e17f7e7a 100644 --- a/src/networkd/port-vlan.h +++ b/src/networkd/port-vlan.h @@ -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; diff --git a/src/networkd/port.h b/src/networkd/port.h index c9add717..15b8bc17 100644 --- a/src/networkd/port.h +++ b/src/networkd/port.h @@ -31,11 +31,6 @@ #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 {