From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Henriksson Subject: Bug#199054: iproute2 showing wrong number of bytes on 64bit architectures. Date: Tue, 10 Jul 2007 13:58:51 +0200 Message-ID: <20070710115851.GA21929@scream.fatal.se> Reply-To: Andreas Henriksson , 199054@bugs.debian.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: 199054@bugs.debian.org To: netdev@vger.kernel.org Return-path: Resent-Message-ID: Content-Disposition: inline List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Id: netdev.vger.kernel.org Hello! While investigating the problems reported in Debian bug #199054 (http://bugs.debian.org/199054), stating that the RX/TX bytes differ between ifconfig and ip(route2) I came across this: include/linux/if_link.h (used in kernel and iproute2 source): /* The struct should be in sync with struct net_device_stats */ struct rtnl_link_stats { __u32 ...; __u32 ...; __u32 ...; __u32 ...; ... include/linux/netdevice.h: struct net_device_stats { unsigned long ...; unsigned long ...; unsigned long ...; unsigned long ...; unsigned long ...; .... This will be a problem when unsigned long isn't 32bits, but I guess the rtnetlink message size is static for good reason. Can someone please advise on how to fix this? -- Regards, Andreas Henriksson