#define ZONE_CONFIG_DIR CONFIG_DIR "/zones"
-#define NETWORK_ZONE_NAME_MAX_LENGTH 16
#define NETWORK_ZONE_DEFAULT_MTU 1500
typedef struct nw_zone nw_zone;
__EMPTY
} nw_zone_type_id_t;
+#include <linux/if.h>
#include <linux/if_link.h>
#include "config.h"
#include "daemon.h"
+#include "link.h"
+
+struct nw_zone {
+ nw_daemon* daemon;
+ int nrefs;
+
+ // Link
+ nw_link* link;
+
+ char name[IFNAMSIZ];
+
+ // Configuration
+ nw_config *config;
+};
int nw_zone_create(nw_zone** zone, nw_daemon* daemon, const nw_zone_type_id_t type,
const char* name, nw_config* config);