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
- Lines: 14
- Date:
Sun Nov 30 14:00:39 1997
- Orig file:
v2.1.67/linux/net/ethernet/eth.c
- Orig date:
Tue May 13 22:41:21 1997
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