patch-2.1.68 linux/net/ethernet/eth.c

Next file: linux/net/ipv4/Config.in
Previous file: linux/net/core/sock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.67/linux/net/ethernet/eth.c linux/net/ethernet/eth.c
@@ -232,6 +232,13 @@
 	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)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov