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:
Chip Davis 2019-12-12 17:06:48 -06:00 committed by Alexandre Julliard
parent 048a3cab0b
commit 697abbcbf5
1 changed files with 2 additions and 1 deletions

View File

@ -948,7 +948,8 @@ DWORD WINAPI GetIpStatisticsEx(PMIB_IPSTATS stats, DWORD family)
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->dwInDelivers = ip_stat.ips_delivered;
stats->dwInHdrErrors = ip_stat.ips_badhlen + ip_stat.ips_badsum + ip_stat.ips_tooshort + ip_stat.ips_badlen;