Searched refs:fnetstat (Results 1 – 1 of 1) sorted by relevance
/linux/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | proc.c | 68 static void netstat_read_type(FILE *fnetstat, struct netstat **dest, char *line) in netstat_read_type() argument 89 if (fscanf(fnetstat, "%[^ :]", type->header_name) == EOF) in netstat_read_type() 91 if (fread(&tmp, 1, 1, fnetstat) != 1 || tmp != ':') in netstat_read_type() 108 if (fscanf(fnetstat, fmt, &nc->val) != 1) in netstat_read_type() 114 if (fread(&tmp, 1, 1, fnetstat) != 1 || tmp != '\n') in netstat_read_type() 119 static void snmp6_read(FILE *fnetstat, struct netstat **dest) in snmp6_read() argument 129 if (fscanf(fnetstat, "%ms", &counter_name) == EOF) in snmp6_read() 131 if (fscanf(fnetstat, "%" PRIu64, &counter) == EOF) in snmp6_read() 150 FILE *fnetstat; in netstat_read() local 159 fnetstat = fopen("/proc/thread-self/net/netstat", "r"); in netstat_read() [all …]
|