Lines Matching full:ifindex
909 diff |= LINK_DIFF(IFINDEX, a->l_index != b->l_index);
965 __ADD(LINK_ATTR_IFINDEX, ifindex)
1041 * @arg ifindex Interface index
1053 struct rtnl_link *rtnl_link_get(struct nl_cache *cache, int ifindex)
1061 if (link->l_index == ifindex) {
1105 * @arg ifindex Interface index
1117 int rtnl_link_build_get_request(int ifindex, const char *name,
1123 if (ifindex <= 0 && !name) {
1124 APPBUG("ifindex or name must be specified");
1133 if (ifindex > 0)
1134 ifi.ifi_index = ifindex;
1153 * @arg ifindex Interface index
1166 int rtnl_link_get_kernel(struct nl_sock *sk, int ifindex, const char *name,
1173 if ((err = rtnl_link_build_get_request(ifindex, name, &msg)) < 0)
1197 * @arg ifindex
1208 char * rtnl_link_i2name(struct nl_cache *cache, int ifindex, char *dst,
1211 struct rtnl_link *link = rtnl_link_get(cache, ifindex);
1233 int ifindex = 0;
1238 ifindex = link->l_index;
1242 return ifindex;
1559 APPBUG("ifindex or name must be specified");
1879 * @arg ifindex Interface index
1884 void rtnl_link_set_ifindex(struct rtnl_link *link, int ifindex)
1886 link->l_index = ifindex;
1962 void rtnl_link_set_link(struct rtnl_link *link, int ifindex)
1964 link->l_link = ifindex;
1976 * @arg ifindex Interface index of master link
1980 void rtnl_link_set_master(struct rtnl_link *link, int ifindex)
1982 link->l_master = ifindex;
2393 * @arg master ifindex of master link
2394 * @arg slave ifindex of slave link