[NET]: Wrap hard_header_parse
[deliverable/linux.git] / net / ethernet / eth.c
index 2aaf6faf74ac195333a571a48167c90409bd9be0..bdeb2f0ace32e404680215ba98f008a39beefa17 100644 (file)
@@ -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;
 }
This page took 0.024958 seconds and 5 git commands to generate.