From 81ab55ae98a4280265fc7b3bee2c3770d621c152 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 8 Jun 2023 16:22:11 +0000 Subject: [PATCH] ports: Move VLAN constants to VLAN header Signed-off-by: Michael Tremer --- src/networkd/port-vlan.h | 5 +++++ src/networkd/port.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) 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 { -- 2.39.2