From: Alexey Dobriyan Signed-off-by: Alexey Dobriyan Cc: Stephen Smalley Cc: James Morris Signed-off-by: Andrew Morton --- security/selinux/hooks.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN security/selinux/hooks.c~selinux-endian-fix security/selinux/hooks.c --- devel/security/selinux/hooks.c~selinux-endian-fix 2006-05-16 08:31:55.000000000 -0700 +++ devel-akpm/security/selinux/hooks.c 2006-05-16 08:31:55.000000000 -0700 @@ -3231,7 +3231,7 @@ static int selinux_socket_sock_rcv_skb(s goto out; /* Handle mapped IPv4 packets arriving via IPv6 sockets */ - if (family == PF_INET6 && skb->protocol == ntohs(ETH_P_IP)) + if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP)) family = PF_INET; read_lock_bh(&sk->sk_callback_lock); _