summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Grebe <squash@gentoo.org>2006-09-26 22:30:35 +0000
committerJosh Grebe <squash@gentoo.org>2006-09-26 22:30:35 +0000
commit7c16c40568f47d82328a7c38ed45b657164aa656 (patch)
treee2f1ab1aca0f506121cdda87362b1dd8b1a79ace /net-analyzer
parentVersion bump. (diff)
downloadhistorical-7c16c40568f47d82328a7c38ed45b657164aa656.tar.gz
historical-7c16c40568f47d82328a7c38ed45b657164aa656.tar.bz2
historical-7c16c40568f47d82328a7c38ed45b657164aa656.zip
Adding patch
Package-Manager: portage-2.1.1
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/net-snmp/files/net-snmp-5.2.1-fix-64bit-interface-counters.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.2.1-fix-64bit-interface-counters.diff b/net-analyzer/net-snmp/files/net-snmp-5.2.1-fix-64bit-interface-counters.diff
new file mode 100644
index 000000000000..18515d44e748
--- /dev/null
+++ b/net-analyzer/net-snmp/files/net-snmp-5.2.1-fix-64bit-interface-counters.diff
@@ -0,0 +1,29 @@
+diff -u -p -r5.33 interfaces.c
+--- agent/mibgroup/mibII/interfaces.c 9 May 2005 20:06:02 -0000 5.33
++++ agent/mibgroup/mibII/interfaces.c 9 Jun 2005 20:08:04 -0000
+@@ -1552,19 +1552,19 @@ Interface_Scan_Init(void)
+ if (!strcmp(ifname_buf, "lo") && rec_pkt > 0 && !snd_pkt)
+ snd_pkt = rec_pkt;
+
+- nnew->if_ipackets = rec_pkt;
++ nnew->if_ipackets = rec_pkt & 0xffffffff;
+ nnew->if_ierrors = rec_err;
+- nnew->if_opackets = snd_pkt;
++ nnew->if_opackets = snd_pkt & 0xffffffff;
+ nnew->if_oerrors = snd_err;
+ nnew->if_collisions = coll;
+ if (scan_line_to_use == scan_line_2_2) {
+- nnew->if_ibytes = rec_oct;
+- nnew->if_obytes = snd_oct;
++ nnew->if_ibytes = rec_oct & 0xffffffff;
++ nnew->if_obytes = snd_oct & 0xffffffff;
+ nnew->if_iqdrops = rec_drop;
+ nnew->if_snd.ifq_drops = snd_drop;
+ } else {
+- nnew->if_ibytes = rec_pkt * 308;
+- nnew->if_obytes = snd_pkt * 308;
++ nnew->if_ibytes = (rec_pkt * 308) & 0xffffffff;
++ nnew->if_obytes = (snd_pkt * 308) & 0xffffffff;
+ }
+
+ /*