Chip Davis : iphlpapi: Correct Forwarding value from GetIpStatistics(Ex)() on *BSD.
Alexandre Julliard
julliard at winehq.org
Fri Dec 13 15:27:22 CST 2019
Module: wine
Branch: master
Commit: 697abbcbf529c6b5ab8002b5ed015ed4825e7d00
URL: https://source.winehq.org/git/wine.git/?a=commit;h=697abbcbf529c6b5ab8002b5ed015ed4825e7d00
Author: Chip Davis <cdavis at codeweavers.com>
Date: Thu Dec 12 17:06:48 2019 -0600
iphlpapi: Correct Forwarding value from GetIpStatistics(Ex)() on *BSD.
Signed-off-by: Chip Davis <cdavis at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/iphlpapi/ipstats.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index b885957d1f..df25d6468d 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -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;
More information about the wine-cvs
mailing list