]> git.pld-linux.org Git - packages/net-snmp.git/blob - net-snmp-llinterfaces.patch
Care for Linux drivers that maintain octet couters as long long values
[packages/net-snmp.git] / net-snmp-llinterfaces.patch
1 ===================================================================
2 RCS file: /cvsroot/net-snmp/net-snmp/agent/mibgroup/mibII/interfaces.c,v
3 retrieving revision 1.75.2.16
4 retrieving revision 1.75.2.17
5 diff -u -r1.75.2.16 -r1.75.2.17
6 --- net-snmp/net-snmp/agent/mibgroup/mibII/interfaces.c 2001/11/28 22:30:33     1.75.2.16
7 +++ net-snmp/net-snmp/agent/mibgroup/mibII/interfaces.c 2002/01/09 16:23:06     1.75.2.17
8 @@ -1266,14 +1266,14 @@
9      struct ifreq    ifrq;
10      struct ifnet  **ifnetaddr_ptr;
11      FILE           *devin;
12 -    unsigned long   rec_pkt, rec_oct, rec_err, rec_drop;
13 -    unsigned long   snd_pkt, snd_oct, snd_err, snd_drop, coll;
14 +    unsigned long long rec_pkt, rec_oct, rec_err, rec_drop;
15 +    unsigned long long snd_pkt, snd_oct, snd_err, snd_drop, coll;
16      int             i, fd;
17      conf_if_list   *if_ptr;
18      const char     *scan_line_2_2 =
19 -        "%lu %lu %lu %lu %*lu %*lu %*lu %*lu %lu %lu %lu %lu %*lu %lu";
20 +        "%llu %llu %llu %llu %*llu %*llu %*llu %*llu %llu %llu %llu %llu %*llu %llu";
21      const char     *scan_line_2_0 =
22 -        "%lu %lu %*lu %*lu %*lu %lu %lu %*lu %*lu %lu";
23 +        "%llu %llu %*llu %*llu %*llu %llu %llu %*llu %*llu %llu";
24      const char     *scan_line_to_use;
25      
26  #endif  
This page took 0.3047 seconds and 4 git commands to generate.