Lines Matching defs:ifi
482 struct ifinfomsg *ifi;
498 if (!nlmsg_valid_hdr(n, sizeof(*ifi)))
501 ifi = nlmsg_data(n);
502 link->l_family = family = ifi->ifi_family;
503 link->l_arptype = ifi->ifi_type;
504 link->l_index = ifi->ifi_index;
505 link->l_flags = ifi->ifi_flags;
506 link->l_change = ifi->ifi_change;
521 err = nlmsg_parse(n, sizeof(*ifi), tb, IFLA_MAX, real_link_policy);
1120 struct ifinfomsg ifi;
1128 memset(&ifi, 0, sizeof(ifi));
1134 ifi.ifi_index = ifindex;
1136 if (nlmsg_append(msg, &ifi, sizeof(ifi), NLMSG_ALIGNTO) < 0)
1379 struct ifinfomsg ifi = {
1385 return build_link_msg(RTM_NEWLINK, &ifi, link, flags, result);
1441 struct ifinfomsg ifi = {
1448 ifi.ifi_flags = orig->l_flags & ~changes->l_flag_mask;
1449 ifi.ifi_flags |= changes->l_flags;
1464 if ((err = build_link_msg(RTM_NEWLINK, &ifi, changes, flags, result)) < 0)
1554 struct ifinfomsg ifi = {
1566 if (nlmsg_append(msg, &ifi, sizeof(ifi), NLMSG_ALIGNTO) < 0)