Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
NW_VLAN_PROTO_8021AD = ETH_P_8021AD,
} nw_port_vlan_proto_t;
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;
struct nw_port_vlan {
nw_port* parent;
#define PORT_CONFIG_DIR CONFIG_DIR "/ports"
#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 {
typedef struct nw_port nw_port;
typedef enum nw_port_type_id {