ifconfig stats comes from /proc/net/dev

It seems to be discussed here: http://lkml.org/lkml/2004/2/18/169

=====================================
In include/linux/seq_file.h  we have 
  struct seq_file {
        char *buf;
        size_t size;

=====================================
size_t is defined here
./include/linux/types.h:typedef __kernel_size_t         size_t;

=====================================
It is architecture dependant:

./include/asm/posix_types.h:typedef unsigned long       __kernel_size_t;
.....
./include/asm-x86_64/posix_types.h:typedef unsigned long        __kernel_size_t;
./include/asm-i386/posix_types.h:typedef unsigned int   __kernel_size_t;

=====================================
$ fgrep -r "tx_bytes" .|fgrep ".h"
./drivers/net/atl1/atl1.h:      u64 tx_bytes;
./drivers/net/e1000/e1000.h:    unsigned int total_tx_bytes;
./include/linux/netdevice.h:    unsigned long   tx_bytes;               /* 
total bytes transmitted      */
...
It sems possible to put various kind of type without messing up everything !
=====================================

I stop here. It needs to be investigated by someone competent !

-- 
e1000 driver: TX becomes zero when reaching 4 GB, so messes all stats
https://bugs.launchpad.net/bugs/273181
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to