[NET]: Wrap hard_header_parse
Wrap the hard_header_parse function to simplify next step of header_ops conversion. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
0c4e85813d
commit
b95cce3576
@@ -47,7 +47,7 @@ struct ieee80211_tx_status_rtap_hdr {
|
||||
|
||||
/* common interface routines */
|
||||
|
||||
static int header_parse_80211(struct sk_buff *skb, unsigned char *haddr)
|
||||
static int header_parse_80211(const struct sk_buff *skb, unsigned char *haddr)
|
||||
{
|
||||
memcpy(haddr, skb_mac_header(skb) + 10, ETH_ALEN); /* addr2 */
|
||||
return ETH_ALEN;
|
||||
|
Reference in New Issue
Block a user