|
我的Kernel是2.6.12.2.
对/usr/src/linux/include/linux/netdevice.h
p110行后4行,改成:
unsigned long long rx_packets; /* total packets received */
unsigned long long tx_packets; /* total packets transmitted */
unsigned long long rx_bytes; /* total bytes received */
unsigned long long tx_bytes; /* total bytes transmitted */
对/usr/src/linux/net/core/dev.c
p1987行,改成:
seq_printf(seq, "%6s:%8llu %7llu %4lu %4lu %4lu %5lu %10lu %9lu "
"%8llu %7llu %4lu %4lu %4lu %5lu %7lu %10lu\n",
这样就没有ifconfig 4GB回绕问题了.注意每个版本的Kernel都有不一样的地方,要小心处理. |
|