Home
last modified time | relevance | path

Searched refs:udpstat (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/bsnmp/snmp_mibII/
H A DmibII_udp.c47 static struct udpstat udpstat; variable
73 len = sizeof(udpstat); in fetch_udp()
74 if (sysctlbyname("net.inet.udp.stats", &udpstat, &len, NULL, 0) == -1) { in fetch_udp()
78 if (len != sizeof(udpstat)) { in fetch_udp()
177 value->v.uint32 = udpstat.udps_ipackets; in op_udp()
181 value->v.uint32 = udpstat.udps_noport + in op_udp()
182 udpstat.udps_noportbcast + in op_udp()
183 udpstat.udps_noportmcast; in op_udp()
187 value->v.uint32 = udpstat.udps_hdrops + in op_udp()
188 udpstat.udps_badsum + in op_udp()
[all …]
/freebsd/sys/netinet/
H A Dudp_var.h73 struct udpstat { struct
126 VNET_PCPUSTAT_DECLARE(struct udpstat, udpstat);
134 VNET_PCPUSTAT_ADD(struct udpstat, udpstat, name, (val)); \
146 offsetof(struct udpstat, name) / sizeof(uint64_t)); \
H A Dudp_usrreq.c158 VNET_PCPUSTAT_DEFINE(struct udpstat, udpstat); /* from udp_var.h */
159 VNET_PCPUSTAT_SYSINIT(udpstat);
160 SYSCTL_VNET_PCPUSTAT(_net_inet_udp, UDPCTL_STATS, stats, struct udpstat,
161 udpstat, "UDP statistics (struct udpstat, netinet/udp_var.h)");
164 VNET_PCPUSTAT_SYSUNINIT(udpstat);
204 counter_u64_add(VNET(udpstat)[statnum], 1); in kmod_udpstat_inc()
/freebsd/usr.bin/netstat/
H A Dinet.c903 struct udpstat udpstat; in udp_stats() local
913 if (fetch_stats("net.inet.udp.stats", off, &udpstat, in udp_stats()
914 sizeof(udpstat), kread_counters) != 0) in udp_stats()
920 #define p(f, m) if (udpstat.f || sflag <= 1) \ in udp_stats()
921 xo_emit("\t" m, (uintmax_t)udpstat.f, plural(udpstat.f)) in udp_stats()
922 #define p1a(f, m) if (udpstat.f || sflag <= 1) \ in udp_stats()
923 xo_emit("\t" m, (uintmax_t)udpstat.f) in udp_stats()
943 delivered = udpstat.udps_ipackets - in udp_stats()
944 udpstat.udps_hdrops - in udp_stats()
945 udpstat.udps_badlen - in udp_stats()
[all …]
/freebsd/contrib/unbound/compat/
H A Dgetentropy_osx.c222 struct udpstat udpstat; in getentropy_fallback() local
264 ii = sizeof(udpstat); in getentropy_fallback()
266 &udpstat, &ii, NULL, 0) == -1, udpstat); in getentropy_fallback()
/freebsd/usr.bin/systat/
H A Dip.c61 struct udpstat u;