diff options
| author | Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 2004-10-06 09:33:22 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 2004-10-06 09:33:22 -0300 |
| commit | 1b0fdcb440365d8ed3bf719763c5933b8c5ffb09 (patch) | |
| tree | 9c13c6b77356c703e4ac2c0e76f6c9541649289a /include/linux | |
| parent | a416557195e351a87b3189bafa78d7beb0ed1219 (diff) | |
[SKBUFF] introduce tr_hdr(skb)
The token ring code in the kernel is bitrotting (no surprise :) ),
it uses skb->data all around... I have an assortment of token ring
cards but no MAU, can anybody send me one, please? I promise to
make ssh work over LLC over Token Ring networks! Duh... :o)
Signed-off-by: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
Signed-off-by: David S. Miller <davem@redhat.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/if_tr.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/if_tr.h b/include/linux/if_tr.h index f7c97eeb95c8..4fd451f81ccb 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 <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 */ |
