[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
@@ -207,9 +207,9 @@ EXPORT_SYMBOL(eth_type_trans);
|
||||
* @skb: packet to extract header from
|
||||
* @haddr: destination buffer
|
||||
*/
|
||||
static int eth_header_parse(struct sk_buff *skb, unsigned char *haddr)
|
||||
static int eth_header_parse(const struct sk_buff *skb, unsigned char *haddr)
|
||||
{
|
||||
struct ethhdr *eth = eth_hdr(skb);
|
||||
const struct ethhdr *eth = eth_hdr(skb);
|
||||
memcpy(haddr, eth->h_source, ETH_ALEN);
|
||||
return ETH_ALEN;
|
||||
}
|
||||
|
Reference in New Issue
Block a user