Lines Matching refs:skb
99 /* pushes hdr onto the skb. fields of hdr->fc that can be calculated from
104 int ieee802154_hdr_push(struct sk_buff *skb, const struct ieee802154_hdr *hdr);
106 /* pulls the entire 802.15.4 header off of the skb, including the security
109 int ieee802154_hdr_pull(struct sk_buff *skb, struct ieee802154_hdr *hdr);
111 /* parses the frame control, sequence number of address fields in a given skb
115 int ieee802154_hdr_peek_addrs(const struct sk_buff *skb,
118 /* parses the full 802.15.4 header a given skb and stores them into hdr,
122 int ieee802154_hdr_peek(const struct sk_buff *skb, struct ieee802154_hdr *hdr);
146 static inline int ieee802154_hdr_length(struct sk_buff *skb)
149 int len = ieee802154_hdr_pull(skb, &hdr);
152 skb_push(skb, len);
220 * A control block of skb passed between the ARPHRD_IEEE802154 device
235 static inline struct ieee802154_mac_cb *mac_cb(struct sk_buff *skb)
237 return (struct ieee802154_mac_cb *)skb->cb;
240 static inline struct ieee802154_mac_cb *mac_cb_init(struct sk_buff *skb)
242 BUILD_BUG_ON(sizeof(struct ieee802154_mac_cb) > sizeof(skb->cb));
244 memset(skb->cb, 0, sizeof(struct ieee802154_mac_cb));
245 return mac_cb(skb);