From: Alexey Dobriyan Date: Sun, 11 Jun 2006 01:05:35 +0000 (-0700) Subject: [IPX]: Endian bug in ipxrtr_route_packet() X-Git-Tag: v2.6.18-rc1~1111^2~28 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8d596211291a8d98efa47ae0261326218f310cf;p=linux-2.6 [IPX]: Endian bug in ipxrtr_route_packet() Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller --- diff --git a/net/ipx/ipx_route.c b/net/ipx/ipx_route.c index a394c6fe19..bba3431cd9 100644 --- a/net/ipx/ipx_route.c +++ b/net/ipx/ipx_route.c @@ -238,7 +238,7 @@ int ipxrtr_route_packet(struct sock *sk, struct sockaddr_ipx *usipx, } /* Apply checksum. Not allowed on 802.3 links. */ - if (sk->sk_no_check || intrfc->if_dlink_type == IPX_FRAME_8023) + if (sk->sk_no_check || intrfc->if_dlink_type == htons(IPX_FRAME_8023)) ipx->ipx_checksum = 0xFFFF; else ipx->ipx_checksum = ipx_cksum(ipx, len + sizeof(struct ipxhdr));