Date: Sat, 11 Jun 2016 13:11:45 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 210211] ifstat does not report correct bandwidth for wlan on iwn (maybe others) Message-ID: <bug-210211-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210211 Bug ID: 210211 Summary: ifstat does not report correct bandwidth for wlan on iwn (maybe others) Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: dave@monnigdesign.co.nz Steps to reproduce: run ifstat with an iwn wireless interface, ping something, no usage appears. Also this code in my own application doesn't work for the same reason (work= s on 10.3): void get_if_bytes(char *if_name) { struct ifaddrs *ifap, *ifa; getifaddrs(&ifap); for(ifa =3D ifap; ifa; ifa =3D ifa->ifa_next) { if(!strcmp(ifa->ifa_name, if_name)) break; } if(!ifa) return; // interface not found in_bytes =3D ((struct if_data *)ifa->ifa_data)->ifi_ibytes; out_bytes =3D ((struct if_data *)ifa->ifa_data)->ifi_obytes; freeifaddrs(ifap); return; } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210211-8>