X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fif_tr.h;h=4fd451f81ccb6e814311120774e399e1af16fb67;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=f7c97eeb95c8cf8feb642b786b16906c8457c1cc;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/include/linux/if_tr.h b/include/linux/if_tr.h index f7c97eeb9..4fd451f81 100644 --- a/include/linux/if_tr.h +++ b/include/linux/if_tr.h @@ -48,6 +48,15 @@ struct trh_hdr { __u16 rseg[8]; /* routing registers */ }; +#ifdef __KERNEL__ +#include + +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 */