Lines Matching refs:ifi
584 struct ifinfomsg *ifi;
601 if (!nlmsg_valid_hdr(n, sizeof(*ifi))) {
606 ifi = nlmsg_data(n);
607 link->l_family = family = ifi->ifi_family;
608 link->l_arptype = ifi->ifi_type;
609 link->l_index = ifi->ifi_index;
610 link->l_flags = ifi->ifi_flags;
611 link->l_change = ifi->ifi_change;
626 err = nlmsg_parse(n, sizeof(*ifi), tb, IFLA_MAX, real_link_policy);
1372 struct ifinfomsg ifi;
1382 memset(&ifi, 0, sizeof(ifi));
1388 ifi.ifi_index = ifindex;
1390 if (nlmsg_append(msg, &ifi, sizeof(ifi), NLMSG_ALIGNTO) < 0) {
1672 struct ifinfomsg ifi = {
1679 return build_link_msg(RTM_NEWLINK, &ifi, link, flags, result);
1735 struct ifinfomsg ifi = {
1742 ifi.ifi_flags = orig->l_flags & ~changes->l_flag_mask;
1743 ifi.ifi_flags |= changes->l_flags;
1744 ifi.ifi_change = changes->l_flag_mask;
1761 if ((err = build_link_msg(rt, &ifi, changes, flags, result)) < 0)
1857 struct ifinfomsg ifi = {
1869 if (nlmsg_append(msg, &ifi, sizeof(ifi), NLMSG_ALIGNTO) < 0)