#include <systemd/sd-netlink.h>
-#ifndef IF_NAMESIZE
-#define IF_NAMESIZE 16
-#endif
-
#define PORT_CONFIG_DIR CONFIG_DIR "/ports"
typedef struct nw_port nw_port;
nw_link* link;
const nw_port_type_t* type;
- char name[IF_NAMESIZE];
+ char name[IFNAMSIZ];
// Configuration
nw_config *config;