diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-10-05 21:41:52 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-10-19 17:31:55 +0200 |
commit | 6843870670b8a68c98528faf638c6b3938cab55d (patch) | |
tree | b63d960f42a5354909fc48f26691993ad7176ec0 /interface.h | |
parent | 65963f0ad2207b55dc7715015839b59b58855a67 (diff) |
interface: rework code to get rid of arbitrary IFNAMSIZ limitation for interface names
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'interface.h')
-rw-r--r-- | interface.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/interface.h b/interface.h index 5b04102..b845c9b 100644 --- a/interface.h +++ b/interface.h @@ -88,7 +88,7 @@ struct interface { struct list_head hotplug_list; enum interface_event hotplug_ev; - char name[IFNAMSIZ]; + const char *name; const char *ifname; bool available; @@ -145,8 +145,7 @@ struct interface { extern struct vlist_tree interfaces; extern const struct uci_blob_param_list interface_attr_list; -void interface_init(struct interface *iface, const char *name, - struct blob_attr *config); +struct interface *interface_alloc(const char *name, struct blob_attr *config); void interface_set_dynamic(struct interface *iface); |