X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fnet%2Fipx.h;h=4cc0b4eca948b471159b29f1f6f7459d8989bd17;hb=2239aff6ab2b95af1f628eee7a809f21c41605b3;hp=4a423d2695baebcdd33dc5c02ae2a05b0c435eee;hpb=4833ed094097323f5f219820f6ebdc8dd66f501f;p=linux-2.6 diff --git a/include/net/ipx.h b/include/net/ipx.h index 4a423d2695..4cc0b4eca9 100644 --- a/include/net/ipx.h +++ b/include/net/ipx.h @@ -26,8 +26,8 @@ struct ipx_address { #define IPX_MAX_PPROP_HOPS 8 struct ipxhdr { - __u16 ipx_checksum __attribute__ ((packed)); -#define IPX_NO_CHECKSUM 0xFFFF + __be16 ipx_checksum __attribute__ ((packed)); +#define IPX_NO_CHECKSUM __constant_htons(0xFFFF) __be16 ipx_pktsize __attribute__ ((packed)); __u8 ipx_tctrl; __u8 ipx_type; @@ -43,7 +43,7 @@ struct ipxhdr { static __inline__ struct ipxhdr *ipx_hdr(struct sk_buff *skb) { - return (struct ipxhdr *)skb->h.raw; + return (struct ipxhdr *)skb_transport_header(skb); } struct ipx_interface {