treewide: correctly apply IFNAMSIZ limit
[project/netifd.git] / device.h
index 4f80caa870ffe767b9633157d0d1ac7cd68d975a..6751628b9b330269f0af06a3678353e8192c3529 100644 (file)
--- a/device.h
+++ b/device.h
@@ -219,7 +219,7 @@ struct device {
        struct vlist_tree vlans;
        struct kvlist vlan_aliases;
 
-       char ifname[IFNAMSIZ + 1];
+       char ifname[IFNAMSIZ];
        int ifindex;
 
        struct blob_attr *config;
@@ -243,7 +243,9 @@ struct device {
        bool default_config;
        bool wireless;
        bool wireless_ap;
+       bool wireless_proxyarp;
        bool wireless_isolate;
+       bool bpdu_filter;
 
        struct interface *config_iface;
 
@@ -298,9 +300,6 @@ extern const struct uci_blob_param_list device_attr_list;
 extern struct device_type simple_device_type;
 extern struct device_type tunnel_device_type;
 
-void device_lock(void);
-void device_unlock(void);
-
 void device_vlan_update(bool done);
 void device_stp_init(void);
 
@@ -344,7 +343,7 @@ void device_release(struct device_user *dep);
 int device_check_state(struct device *dev);
 void device_dump_status(struct blob_buf *b, struct device *dev);
 
-void device_free_unused(struct device *dev);
+void device_free_unused(void);
 
 struct device *get_vlan_device_chain(const char *ifname, int create);
 void alias_notify_device(const char *name, struct device *dev);