netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug#199054: iproute2 showing wrong number of bytes on 64bit architectures.
@ 2007-07-10 11:58 Andreas Henriksson
  0 siblings, 0 replies; only message in thread
From: Andreas Henriksson @ 2007-07-10 11:58 UTC (permalink / raw)
  To: netdev; +Cc: 199054

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-10 11:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-10 11:58 Bug#199054: iproute2 showing wrong number of bytes on 64bit architectures Andreas Henriksson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).