Bodo Stroesser 0e76422ca5 [PATCH] uml: fix UML network driver endianness bugs
ifa->ifa_address and ifa->ifa_mask are defined as __u32, but used as if they
were char[4].

Network code uses htons() to convert it.  So UML's method to access these
fields is wrong for bigendians (e.g.  s390)

I replaced bytewise copying by memcpy(), maybe even that might be removed, if
ifa->ifa_address/mask may be used immediately.

Signed-off-by: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
Cc: <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-07 07:53:30 -08:00
..
2005-10-30 17:37:25 -08:00
2005-10-30 17:37:25 -08:00
2005-10-30 17:37:25 -08:00
2005-10-30 17:37:25 -08:00
2005-11-07 07:53:30 -08:00
2005-10-30 17:37:25 -08:00
2005-10-30 17:37:25 -08:00
2005-11-07 07:53:26 -08:00
2005-11-07 07:53:27 -08:00
2005-11-07 07:53:23 -08:00
2005-10-30 17:37:25 -08:00
2005-10-30 17:37:25 -08:00
2005-10-30 17:37:25 -08:00
2005-10-30 17:37:25 -08:00
2005-10-30 17:37:25 -08:00
2005-11-02 19:41:32 -08:00