]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/networkd/port.h
zones: Move "struct nw_zone" into header
[people/ms/network.git] / src / networkd / port.h
index 3cbe4b0918f071812626ef768f791c1c274ae86f..422a65f21c027679e59570c97d27b7bd4b6b388e 100644 (file)
 
 #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;
@@ -82,7 +78,7 @@ struct nw_port {
        nw_link* link;
 
        const nw_port_type_t* type;
-       char name[IF_NAMESIZE];
+       char name[IFNAMSIZ];
 
        // Configuration
        nw_config *config;