From: Bodo Stroesser Date: Mon, 7 Nov 2005 08:58:47 +0000 (-0800) Subject: [PATCH] uml: fix UML network driver endianness bugs X-Git-Tag: v2.6.15-rc1~662 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e76422ca5f34bb43b97c0945646ef072bcc1776;p=pandora-kernel.git [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 Signed-off-by: Jeff Dike Cc: Paolo Giarrusso Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed