rtnetlink: do not use address labels for device name
[cascardo/ovs.git] / lib / rtnetlink.h
index 91ed486..55b61be 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdbool.h>
 #include <stdint.h>
 #include <linux/if_ether.h>
+#include <net/if.h>
 
 #include "openvswitch/types.h"
 
@@ -38,7 +39,7 @@ struct rtnetlink_change {
 
     /* Common attributes. */
     int if_index;               /* Index of network device. */
-    const char *ifname;         /* Name of network device. */
+    char ifname[IFNAMSIZ];      /* Name of network device. */
 
     /* Network device link status. */
     int master_ifindex;         /* Ifindex of datapath master (0 if none). */