patch-1.3.42 linux/drivers/net/net_init.c
Next file: linux/drivers/net/smc-ultra.c
Previous file: linux/drivers/net/ne.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Tue Nov 14 16:03:52 1995
- Orig file:
v1.3.41/linux/drivers/net/net_init.c
- Orig date:
Wed Nov 8 07:11:33 1995
diff -u --recursive --new-file v1.3.41/linux/drivers/net/net_init.c linux/drivers/net/net_init.c
@@ -132,8 +132,9 @@
}
-static int eth_mac_addr(struct device *dev, struct sockaddr *addr)
+static int eth_mac_addr(struct device *dev, void *p)
{
+ struct sockaddr *addr=p;
if(dev->start)
return -EBUSY;
memcpy(dev->dev_addr, addr->sa_data,dev->addr_len);
@@ -164,7 +165,8 @@
dev->hard_header = eth_header;
dev->rebuild_header = eth_rebuild_header;
dev->set_mac_address = eth_mac_addr;
- dev->header_cache = eth_header_cache;
+ dev->header_cache_bind = eth_header_cache_bind;
+ dev->header_cache_update = eth_header_cache_update;
dev->type = ARPHRD_ETHER;
dev->hard_header_len = ETH_HLEN;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this