blob: 05dd18aaadc6ed987448e1e0a2ff51c8c1bb3e0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
$NetBSD: patch-ad,v 1.11 2007/02/17 10:19:38 adam Exp $
--- dlls/iphlpapi/ipstats.c.orig 2007-02-16 22:05:36.000000000 +0100
+++ dlls/iphlpapi/ipstats.c
@@ -627,7 +627,11 @@ DWORD getNumRoutes(void)
/* Ignore all entries except for gateway routes which aren't
multicast */
+#if !defined(RTF_MULTICAST)
+ if (!(rtm->rtm_flags & RTF_GATEWAY))
+#else
if (!(rtm->rtm_flags & RTF_GATEWAY) || (rtm->rtm_flags & RTF_MULTICAST))
+#endif
continue;
RouteCount++;
@@ -700,8 +704,12 @@ DWORD getRouteTable(PMIB_IPFORWARDTABLE
/* Ignore all entries except for gateway routes which aren't
multicast */
+#if !defined(RTF_MULTICAST)
+ if (!(rtm->rtm_flags & RTF_GATEWAY))
+#else
if (!(rtm->rtm_flags & RTF_GATEWAY) ||
(rtm->rtm_flags & RTF_MULTICAST))
+#endif
continue;
memset (&table->table[table->dwNumEntries], 0,
|