vserver 1.9.3
[linux-2.6.git] / include / linux / if_tr.h
index f7c97ee..4fd451f 100644 (file)
@@ -48,6 +48,15 @@ struct trh_hdr {
        __u16 rseg[8];                  /* routing registers */
 };
 
+#ifdef __KERNEL__
+#include <linux/skbuff.h>
+
+static inline struct trh_hdr *tr_hdr(const struct sk_buff *skb)
+{
+       return (struct trh_hdr *)skb->mac.raw;
+}
+#endif
+
 /* This is an Token-Ring LLC structure */
 struct trllc {
        __u8  dsap;                     /* destination SAP */