]>
Commit | Line | Data |
---|---|---|
8042813d | 1 | --- linux-2.5.0or/net/core/dev.c Thu Nov 8 00:39:36 2001 |
2 | +++ linux/net/core/dev.c Tue Dec 11 21:30:49 2001 | |
3 | @@ -1688,7 +1688,7 @@ | |
4 | int size; | |
5 | ||
6 | if (stats) | |
7 | - size = sprintf(buffer, "%6s:%8lu %7lu %4lu %4lu %4lu %5lu %10lu %9lu %8lu %7lu %4lu %4lu %4lu %5lu %7lu %10lu\n", | |
8 | + size = sprintf(buffer, "%6s:%14llu %7lu %4lu %4lu %4lu %5lu %10lu %9lu %14llu %7lu %4lu %4lu %4lu %5lu %7lu %10lu\n", | |
9 | dev->name, | |
10 | stats->rx_bytes, | |
11 | stats->rx_packets, stats->rx_errors, | |
8042813d | 12 | --- linux-2.5.0or/include/linux/netdevice.h Thu Nov 22 21:47:09 2001 |
13 | +++ linux/include/linux/netdevice.h Tue Dec 11 21:24:54 2001 | |
14 | @@ -97,8 +97,9 @@ | |
15 | { | |
16 | unsigned long rx_packets; /* total packets received */ | |
17 | unsigned long tx_packets; /* total packets transmitted */ | |
18 | - unsigned long rx_bytes; /* total bytes received */ | |
19 | - unsigned long tx_bytes; /* total bytes transmitted */ | |
20 | + /* rx and tx counters fixed up to 64-bit */ | |
21 | + long long rx_bytes; /* total bytes received */ | |
22 | + long long tx_bytes; /* total bytes transmitted */ | |
23 | unsigned long rx_errors; /* bad packets received */ | |
24 | unsigned long tx_errors; /* packet transmit problems */ | |
25 | unsigned long rx_dropped; /* no space in linux buffers */ | |
26 |