summaryrefslogtreecommitdiffstats
path: root/net/ethernet/eth.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-12-16 05:34:03 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-12-16 05:34:03 +0000
commit967c65a99059fd459b956c1588ce0ba227912c4e (patch)
tree8224d013ff5d255420713d05610c7efebd204d2a /net/ethernet/eth.c
parente20c1cc1656a66a2773bca4591a895cbc12696ff (diff)
Merge with Linux 2.1.72, part 1.
Diffstat (limited to 'net/ethernet/eth.c')
-rw-r--r--net/ethernet/eth.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c
index bdc6b37fd..47417a27a 100644
--- a/net/ethernet/eth.c
+++ b/net/ethernet/eth.c
@@ -232,6 +232,13 @@ unsigned short eth_type_trans(struct sk_buff *skb, struct device *dev)
return htons(ETH_P_802_2);
}
+int eth_header_parse(struct sk_buff *skb, unsigned char *haddr)
+{
+ struct ethhdr *eth = skb->mac.ethernet;
+ memcpy(haddr, eth->h_source, ETH_ALEN);
+ return ETH_ALEN;
+}
+
int eth_header_cache(struct dst_entry *dst, struct neighbour *neigh,
struct hh_cache *hh)
{