components/net-snmp-57/patches/056.19474426.var_route.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Tue, 04 Apr 2017 17:27:12 -0700
changeset 7830 a19af6ab1a9c
parent 5867 445e2cf1c845
permissions -rw-r--r--
25816799 Remove more excess FOSS from Desktop gate [PSARC 2016/088 - b122 subset] PSARC/2016/088 EOF of more excess FOSS from Desktop consolidation (scrubbing the decks harder)

This patch fixes a Solaris specific issue where ipRouteNextHop
was not returning the default ip address.The bug has been 
submitted to the community.This patch was suggested in the 
upstream, it has been included in the Net-SNMP version 5.5
onwards.

The details can be found in the following location
https://sourceforge.net/p/net-snmp/bugs/2621/

--- a/agent/mibgroup/mibII/var_route.c
+++ b/agent/mibgroup/mibII/var_route.c
@@ -769,9 +769,11 @@ var_ipRouteEntry(struct variable * vp,
                        req_type, &IP_Cmp_Route, &Nextentry) != 0)
             break;
 #ifdef HAVE_DEFINED_IRE_CACHE
-        if(entry.ipRouteInfo.re_ire_type&IRE_CACHE)
+        if(entry.ipRouteInfo.re_ire_type & IRE_CACHE)
             continue;
 #endif /* HAVE_DEFINED_IRE_CACHE */
+        if(entry.ipRouteInfo.re_ire_type & IRE_BROADCAST)
+            continue;
         COPY_IPADDR(cp, (u_char *) & entry.ipRouteDest, op,
                     current + IP_ROUTEADDR_OFF);
         if (exact) {