unsigned flags, unsigned change);
void (*dellink) (unsigned short type, int index,
unsigned flags, unsigned change);
- void (*link_flags) (int index, short flags);
};
extern int connman_rtnl_register(struct connman_rtnl *rtnl);
g_static_rw_lock_reader_unlock(&rtnl_lock);
}
-static void process_link_flags(int index, short flags)
-{
- GSList *list;
-
- DBG("idex %d", index);
-
- g_static_rw_lock_reader_lock(&rtnl_lock);
-
- for (list = rtnl_list; list; list = list->next) {
- struct connman_rtnl *rtnl = list->data;
-
- if (rtnl->link_flags)
- rtnl->link_flags(index, flags);
- }
-
- g_static_rw_lock_reader_unlock(&rtnl_lock);
-}
-
static inline void print_inet(struct rtattr *attr, const char *name, int family)
{
if (family == AF_INET) {
break;
}
}
-
- process_link_flags(msg->ifi_index, msg->ifi_flags);
}
static void rtnl_newlink(struct nlmsghdr *hdr)