[Bug 210211] ifstat does not report correct bandwidth for wlan on iwn (maybe others)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jun 11 13:11:45 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210211
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 at FreeBSD.org
Reporter: dave at 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 (works on
10.3):
void get_if_bytes(char *if_name)
{
struct ifaddrs *ifap, *ifa;
getifaddrs(&ifap);
for(ifa = ifap; ifa; ifa = ifa->ifa_next) {
if(!strcmp(ifa->ifa_name, if_name))
break;
}
if(!ifa) return; // interface not found
in_bytes = ((struct if_data *)ifa->ifa_data)->ifi_ibytes;
out_bytes = ((struct if_data *)ifa->ifa_data)->ifi_obytes;
freeifaddrs(ifap);
return;
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list