#include <libubox/avl.h>
#include <libubox/safe_list.h>
+#include <libubox/kvlist.h>
#include <netinet/in.h>
struct device;
struct safe_list aliases;
struct vlist_tree vlans;
+ struct kvlist vlan_aliases;
char ifname[IFNAMSIZ + 1];
int ifindex;
};
struct device_hotplug_ops {
- int (*prepare)(struct device *dev);
- int (*add)(struct device *main, struct device *member);
+ int (*prepare)(struct device *dev, struct device **bridge_dev);
+ int (*add)(struct device *main, struct device *member, struct blob_attr *vlan);
int (*del)(struct device *main, struct device *member);
};
struct bridge_vlan_port *ports;
int n_ports;
+ struct list_head hotplug_ports;
+
uint16_t vid;
bool local;
};