I seem to have ruined my diff due to copy and paste stupidity, and by
diff'ing across 2 versions and only giving you a partial diff. Here's a diff
against 5.4.2.1:
--- /home/brian/scratch/net-snmp-5.4.2.1/snmplib/mib.c 2008-07-30
00:57:19.000000000 -0700
+++ snmplib/mib.c 2008-12-15 15:30:14.000000000 -0800
@@ -3824,7 +3824,7 @@
{
if (buf) {
int i, len;
- char intbuf[64], * p;
+ char intbuf[64], * p, * zc;
unsigned long zone;
memset(intbuf, 0, 64);
@@ -3842,7 +3842,9 @@
len = sprintf(p, "%lu.%lu.%lu.%lu", objid[0], objid[1],
objid[2], objid[3]);
p += len;
if (addr_type == IPV4Z) {
- zone = ntohl((long)objid[4]);
+ zc = &zone;
+ zc[0] = objid[4]; zc[1] = objid[5]; zc[2] = objid[6];
zc[3] = objid[7];
+ zone = ntohl(zone);
len = sprintf(p, "%%%lu", zone);
p += len;
}
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders