Lines Matching full:counters
18 struct netstat_counter *counters; member
52 ret->counters = NULL; in lookup_get()
81 type->counters = reallocarray(type->counters, in netstat_read_type()
84 if (!type->counters) in netstat_read_type()
95 struct netstat_counter *nc = &type->counters[i]; in netstat_read_type()
133 type->counters = reallocarray(type->counters, i + 1, in snmp6_read()
135 if (!type->counters) in snmp6_read()
137 nc = &type->counters[i]; in snmp6_read()
196 free(ns->counters[i].name); in netstat_free()
197 free(ns->counters); in netstat_free()
208 nsb->header_name, nsb->counters[i].name, in __netstat_print_diff()
209 a, nsb->counters[i].val); in __netstat_print_diff()
214 nsb->counters[i].name, a, nsb->counters[i].val); in __netstat_print_diff()
230 test_error("Unexpected: some counters disappeared!"); in netstat_print_diff()
233 if (strcmp(nsb->counters[i].name, nsa->counters[j].name)) { in netstat_print_diff()
238 if (nsa->counters[j].val == nsb->counters[i].val) { in netstat_print_diff()
243 __netstat_print_diff(nsa->counters[j].val, nsb, i); in netstat_print_diff()
247 test_error("Unexpected: some counters disappeared!"); in netstat_print_diff()
263 if (!strcmp(name, ns->counters[i].name)) in netstat_get()
264 return ns->counters[i].val; in netstat_get()