Lines Matching defs:ifindex
169 unsigned ifindex;
180 ifindex = if_nametoindex(*argv);
181 if (!ifindex)
183 addattr32(n, 1024, IFLA_BOND_ACTIVE_SLAVE, ifindex);
242 ifindex = if_nametoindex(*argv);
243 if (!ifindex)
245 addattr32(n, 1024, IFLA_BOND_PRIMARY, ifindex);
371 unsigned ifindex;
383 (ifindex = rta_getattr_u32(tb[IFLA_BOND_ACTIVE_SLAVE]))) {
385 const char *n = if_indextoname(ifindex, buf);
390 fprintf(f, "active_slave %u ", ifindex);
451 (ifindex = rta_getattr_u32(tb[IFLA_BOND_PRIMARY]))) {
453 const char *n = if_indextoname(ifindex, buf);
458 fprintf(f, "primary %u ", ifindex);