diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-23 22:13:43 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-23 22:13:43 +0200 |
commit | 9aac5923811e0240526f2ef58d6e352bff195740 (patch) | |
tree | 03ff35d78b56c4a39b1462b3646041fff0c69a9e /interface.h | |
parent | 19ab568942e2699a414bd7bf3d53823c9b707abb (diff) |
add interface alias support
Diffstat (limited to 'interface.h')
-rw-r--r-- | interface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/interface.h b/interface.h index 8c7b347..6724bb9 100644 --- a/interface.h +++ b/interface.h @@ -93,6 +93,9 @@ struct interface { struct list_head users; + const char *parent_ifname; + struct interface_user parent_iface; + /* main interface that the interface is bound to */ struct device_user main_dev; @@ -128,6 +131,7 @@ void interface_init(struct interface *iface, const char *name, struct blob_attr *config); void interface_add(struct interface *iface, struct blob_attr *config); +bool interface_add_alias(struct interface *iface, struct blob_attr *config); void interface_set_proto_state(struct interface *iface, struct interface_proto_state *state); |