diff options
author | Josh Grebe <squash@gentoo.org> | 2006-09-26 22:30:35 +0000 |
---|---|---|
committer | Josh Grebe <squash@gentoo.org> | 2006-09-26 22:30:35 +0000 |
commit | d4666b8d2dc0b969b31e87723c470035585ab998 (patch) | |
tree | bea0fa8b85051d38d98018df0ea63043b4f6459f /net-analyzer | |
parent | Version bump. (diff) | |
download | gentoo-2-d4666b8d2dc0b969b31e87723c470035585ab998.tar.gz gentoo-2-d4666b8d2dc0b969b31e87723c470035585ab998.tar.bz2 gentoo-2-d4666b8d2dc0b969b31e87723c470035585ab998.zip |
Adding patch
(Portage version: 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.diff | 29 |
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; + } + + /* |