iphlpapi: Correct Forwarding value from GetIpStatistics(Ex)() on *BSD.
Signed-off-by: Chip Davis <cdavis@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
048a3cab0b
commit
697abbcbf5
|
@ -948,7 +948,8 @@ DWORD WINAPI GetIpStatisticsEx(PMIB_IPSTATS stats, DWORD family)
|
||||||
return ERROR_NOT_SUPPORTED;
|
return ERROR_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
stats->u.dwForwarding = ip_forwarding;
|
/* ip.forwarding is 0 or 1 on BSD */
|
||||||
|
stats->u.dwForwarding = ip_forwarding+1;
|
||||||
stats->dwDefaultTTL = ip_ttl;
|
stats->dwDefaultTTL = ip_ttl;
|
||||||
stats->dwInDelivers = ip_stat.ips_delivered;
|
stats->dwInDelivers = ip_stat.ips_delivered;
|
||||||
stats->dwInHdrErrors = ip_stat.ips_badhlen + ip_stat.ips_badsum + ip_stat.ips_tooshort + ip_stat.ips_badlen;
|
stats->dwInHdrErrors = ip_stat.ips_badhlen + ip_stat.ips_badsum + ip_stat.ips_tooshort + ip_stat.ips_badlen;
|
||||||
|
|
Loading…
Reference in New Issue