7046749 SMA snmpd can generate a RequestID greater than 4-bytes in length
authorsonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
Tue, 20 Dec 2011 13:30:10 +0530
changeset 631 8fc12a712447
parent 630 e2df7cbd81a6
child 632 ad5c6e1d2406
7046749 SMA snmpd can generate a RequestID greater than 4-bytes in length
components/net-snmp/patches/021.7046749.snmp_api.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp/patches/021.7046749.snmp_api.patch	Tue Dec 20 13:30:10 2011 +0530
@@ -0,0 +1,38 @@
+--- net-snmp/snmplib/snmp_api.c	Fri Nov 11 12:36:16 2011
++++ net-snmp/snmplib/snmp_api.c	Fri Nov 11 12:35:36 2011
[email protected]@ -419,7 +419,7 @@
+     if (netsnmp_ds_get_boolean(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_16BIT_IDS))
+         return (retVal & 0x7fff);	/* mask to 15 bits */
+     else
+-        return retVal;
++        return (retVal & 0x7fffffff);  /* mask to 31 bits */
+ }
+ 
+ long
[email protected]@ -435,7 +435,7 @@
+     if (netsnmp_ds_get_boolean(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_16BIT_IDS))
+         return (retVal & 0x7fff);	/* mask to 15 bits */
+     else
+-        return retVal;
++        return (retVal & 0x7fffffff);  /* mask to 31 bits */
+ }
+ 
+ long
[email protected]@ -451,7 +451,7 @@
+     if (netsnmp_ds_get_boolean(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_16BIT_IDS))
+         return (retVal & 0x7fff);	/* mask to 15 bits */
+     else
+-        return retVal;
++        return (retVal & 0x7fffffff);  /* mask to 31 bits */
+ }
+ 
+ long
[email protected]@ -467,7 +467,7 @@
+     if (netsnmp_ds_get_boolean(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_16BIT_IDS))
+         return (retVal & 0x7fff);	/* mask to 15 bits */
+     else
+-        return retVal;
++        return (retVal & 0x7fffffff);  /* mask to 31 bits */
+ }
+ 
+ void