]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - include/linux/if_tr.h
[TR]: Use ctl paths to register net/token-ring/ table
[linux-2.6.git] / include / linux / if_tr.h
index 6688b414c529277d893445d500e091bcd79d115f..5bcec8b2c5e2b557d1cdbbec372177c4bc3c24ed 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef _LINUX_IF_TR_H
 #define _LINUX_IF_TR_H
 
+#include <asm/byteorder.h>     /* For __be16 */
+
 /* IEEE 802.5 Token-Ring magic constants.  The frame sizes omit the preamble
    and FCS/CRC (frame check sequence). */
 #define TR_ALEN                6               /* Octets in one token-ring addr */
@@ -45,7 +47,7 @@ struct trh_hdr {
 
 static inline struct trh_hdr *tr_hdr(const struct sk_buff *skb)
 {
-       return (struct trh_hdr *)skb->mac.raw;
+       return (struct trh_hdr *)skb_mac_header(skb);
 }
 #endif