Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
#include "port.h"
+struct nw_port_vlan {
+ nw_port* parent;
+
+ // The VLAN ID
+ int id;
+
+ // If the parent has not been read from the configuration we will
+ // save the name and try to find it later.
+ char __parent_name[IF_NAMESIZE];
+};
+
extern const nw_port_info_t nw_port_info_vlan;
// ID
#include "config.h"
#include "daemon.h"
#include "port-bonding.h"
+#include "port-vlan.h"
struct nw_port_info {
// IFLA_INFO_KIND/IFLA_INFO_DATA
struct nw_port_bonding bonding;
// VLAN settings
- struct nw_port_vlan {
- nw_port* parent;
- int id;
-
- // If the parent has not been read from the configuration we will
- // save the name and try to find it later.
- char __parent_name[IF_NAMESIZE];
- } vlan;
+ struct nw_port_vlan vlan;
};
int nw_port_create(nw_port** port, nw_daemon* daemon,