Lines Matching refs:nsb
204 __netstat_print_diff(uint64_t a, struct netstat *nsb, size_t i)
206 if (unlikely(!strcmp(nsb->header_name, "MaxConn"))) {
208 nsb->header_name, nsb->counters[i].name,
209 a, nsb->counters[i].val);
213 test_print("%8s %25s: %" PRIu64 " => %" PRIu64, nsb->header_name,
214 nsb->counters[i].name, a, nsb->counters[i].val);
217 void netstat_print_diff(struct netstat *nsa, struct netstat *nsb)
221 while (nsb != NULL) {
222 if (unlikely(strcmp(nsb->header_name, nsa->header_name))) {
223 for (i = 0; i < nsb->counters_nr; i++)
224 __netstat_print_diff(0, nsb, i);
225 nsb = nsb->next;
229 if (nsb->counters_nr < nsa->counters_nr)
232 for (j = 0, i = 0; i < nsb->counters_nr; i++) {
233 if (strcmp(nsb->counters[i].name, nsa->counters[j].name)) {
234 __netstat_print_diff(0, nsb, i);
238 if (nsa->counters[j].val == nsb->counters[i].val) {
243 __netstat_print_diff(nsa->counters[j].val, nsb, i);
249 nsb = nsb->next;