1
#ifndef __kcompat_skb_mac_header_h__
2
#define __kcompat_skb_mac_header_h__
4
static inline void skb_set_mac_header(struct sk_buff *skb, int offset)
6
skb->mac.raw = skb->data + offset;
9
static inline void skb_set_network_header(struct sk_buff *skb, int offset)
11
skb->nh.raw = skb->data + offset;
14
static inline void skb_set_transport_header(struct sk_buff *skb,
17
skb->h.raw = skb->data + offset;
20
static inline const u8 *skb_mac_header(const struct sk_buff *skb)
25
static inline const u8 *skb_network_header(const struct sk_buff *skb)
30
static inline const u8 *skb_transport_header(const struct sk_buff *skb)
35
static inline const u8 *skb_tail_pointer(const struct sk_buff *skb)