/netbsd-current/usr.bin/systat/ |
H A D | ip.c | 69 static struct mystat newstat; variable in typeref:struct:mystat 191 size = sizeof(newstat.i); 192 if (sysctlbyname("net.inet.ip.stats", newstat.i, &size, NULL, 0) == -1) 194 size = sizeof(newstat.u); 195 if (sysctlbyname("net.inet.udp.stats", newstat.u, &size, NULL, 0) == -1) 198 ADJINETCTR(curstat, oldstat, newstat, i[IP_STAT_TOTAL]); 199 ADJINETCTR(curstat, oldstat, newstat, i[IP_STAT_DELIVERED]); 200 ADJINETCTR(curstat, oldstat, newstat, i[IP_STAT_BADSUM]); 201 ADJINETCTR(curstat, oldstat, newstat, i[IP_STAT_TOOSHORT]); 202 ADJINETCTR(curstat, oldstat, newstat, [all...] |
H A D | icmp.c | 65 static uint64_t newstat[ICMP_NSTATS]; variable 164 size_t i, size = sizeof(newstat); 166 if (sysctlbyname("net.inet.icmp.stats", newstat, &size, NULL, 0) == -1) 169 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_BADCODE); 170 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_BADLEN); 171 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_CHECKSUM); 172 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_TOOSHORT); 173 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_ERROR); 174 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_OLDSHORT); 175 xADJINETCTR(curstat, oldstat, newstat, ICMP_STAT_OLDICM [all...] |
H A D | ip6.c | 61 static uint64_t newstat[IP6_NSTATS]; variable 189 size_t i, size = sizeof(newstat); 191 if (sysctlbyname("net.inet6.ip6.stats", newstat, &size, NULL, 0) == -1) 195 xADJINETCTR(curstat, oldstat, newstat, i); 198 memcpy(oldstat, newstat, sizeof(oldstat)); 214 memcpy(oldstat, newstat, sizeof(oldstat)); 224 memcpy(oldstat, newstat, sizeof(oldstat)); 234 memcpy(oldstat, newstat, sizeof(oldstat));
|
H A D | tcp.c | 64 static uint64_t newstat[TCP_NSTATS]; variable 218 size_t i, size = sizeof(newstat); 220 if (sysctlbyname("net.inet.tcp.stats", newstat, &size, NULL, 0) == -1) 224 xADJINETCTR(curstat, oldstat, newstat, i); 227 memcpy(oldstat, newstat, sizeof(oldstat)); 243 memcpy(oldstat, newstat, sizeof(oldstat)); 253 memcpy(oldstat, newstat, sizeof(oldstat)); 263 memcpy(oldstat, newstat, sizeof(oldstat));
|
/netbsd-current/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/posix/ |
H A D | mqueue.d | 112 * newstat = non-null pointer to fill with attributes for `mqdes`. 119 int mq_setattr (mqd_t mqdes, const(mq_attr)* newstat, mq_attr* oldstat);
|
/netbsd-current/sys/dev/ic/ |
H A D | cissreg.h | 418 u_int8_t newstat; /* same as ldstat->state */ member in struct:ciss_evldchg
|