Home | History | Annotate | Download | only in toolbox

Lines Matching defs:ifs

100 static int get_interfaces(struct if_stats *ifs)
143 ret = sscanf(p, "%" STR(IFNAMSIZ) "s", ifs->name);
153 c = strchr(ifs->name, ':');
160 "%*u %*u\n", &ifs->rx_bytes, &ifs->rx_packets,
161 &ifs->rx_errors, &ifs->rx_dropped, &ifs->tx_bytes,
162 &ifs->tx_packets, &ifs->tx_errors, &ifs->tx_dropped);
168 ifs->mtu = get_mtu(ifs->name);
176 ifs++;
228 struct if_stats ifs[2][MAX_IF];
261 get_interfaces(ifs[!toggle]);
268 nr = get_interfaces(ifs[toggle]);
273 count += print_interfaces(ifs[!toggle], ifs[toggle], nr);