X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fnet%2Fipx.h;h=a14121dd19320365a54f9bb62ee88af23b00b11e;hb=ed40d0c472b136682b2fcba05f89762859c7374f;hp=c6b2ee610866bff73e779cc0e772e83dbd1b741c;hpb=f0eef25339f92f7cd4aeea23d9ae97987a5a1e82;p=mv-sheeva.git diff --git a/include/net/ipx.h b/include/net/ipx.h index c6b2ee61086..a14121dd193 100644 --- a/include/net/ipx.h +++ b/include/net/ipx.h @@ -27,7 +27,7 @@ struct ipx_address { struct ipxhdr { __be16 ipx_checksum __attribute__ ((packed)); -#define IPX_NO_CHECKSUM __constant_htons(0xFFFF) +#define IPX_NO_CHECKSUM cpu_to_be16(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 {