equal
deleted
inserted
replaced
|
1 This patch fixes a Solaris specific issue where ipRouteNextHop |
|
2 was not returning the default ip address.The bug has been |
|
3 submitted to the community.This patch was suggested in the |
|
4 upstream, it has been included in the Net-SNMP version 5.5 |
|
5 onwards. |
|
6 |
|
7 The details can be found in the following location |
|
8 https://sourceforge.net/p/net-snmp/bugs/2621/ |
|
9 |
|
10 --- net-snmp-5.4.1/agent/mibgroup/mibII/var_route.c Thu May 7 05:15:08 2015 |
|
11 +++ net-snmp-5.4.1/agent/mibgroup/mibII/var_route.c Thu May 7 05:18:23 2015 |
|
12 @@ -759,6 +759,8 @@ |
|
13 if (getMibstat(MIB_IP_ROUTE, &entry, sizeof(mib2_ipRouteEntry_t), |
|
14 req_type, &IP_Cmp_Route, &Nextentry) != 0) |
|
15 break; |
|
16 + if(entry.ipRouteInfo.re_ire_type & IRE_BROADCAST) |
|
17 + continue; |
|
18 COPY_IPADDR(cp, (u_char *) & entry.ipRouteDest, op, |
|
19 current + IP_ROUTEADDR_OFF); |
|
20 if (exact) { |
|
21 --- net-snmp-5.4.1/agent/mibgroup/mibII/route_headers.h Thu May 14 22:55:25 2015 |
|
22 +++ net-snmp-5.4.1/agent/mibgroup/mibII/route_headers.h Thu May 14 22:54:42 2015 |
|
23 @@ -161,6 +161,7 @@ |
|
24 |
|
25 #ifdef solaris2 |
|
26 #include "kernel_sunos5.h" |
|
27 +#include <inet/ip.h> |
|
28 #endif |
|
29 |
|
30 #ifdef HAVE_SYS_SYSCTL_H |