summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5f0e407)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
struct blob_attr *config;
bool config_pending;
bool sys_present;
struct blob_attr *config;
bool config_pending;
bool sys_present;
+ /* DEV_EVENT_LINK_UP */
bool link_active;
bool external;
bool link_active;
bool external;
-interface_proto_cb(struct interface_proto_state *state, enum interface_proto_event ev)
+interface_proto_event_cb(struct interface_proto_state *state, enum interface_proto_event ev)
{
struct interface *iface = state->iface;
{
struct interface *iface = state->iface;
- state->proto_event = interface_proto_cb;
+ state->proto_event = interface_proto_event_cb;
+ /* for alias interface */
const char *parent_ifname;
struct interface_user parent_iface;
const char *parent_ifname;
struct interface_user parent_iface;
cur = tb[DEV_LINK_EXT];
if (cur)
cur = tb[DEV_LINK_EXT];
if (cur)
- link_ext = !!blobmsg_get_u8(cur);
+ link_ext = blobmsg_get_bool(cur);
return interface_handle_link(iface, blobmsg_data(tb[DEV_LINK_NAME]), add, link_ext);
}
return interface_handle_link(iface, blobmsg_data(tb[DEV_LINK_NAME]), add, link_ext);
}