patch-1.3.65 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: 16
- Date:
Sat Feb 17 08:07:01 1996
- Orig file:
v1.3.64/linux/net/ethernet/eth.c
- Orig date:
Fri Nov 17 08:42:33 1995
diff -u --recursive --new-file v1.3.64/linux/net/ethernet/eth.c linux/net/ethernet/eth.c
@@ -264,6 +264,9 @@
void eth_copy_and_sum(struct sk_buff *dest, unsigned char *src, int length, int base)
{
+#ifdef CONFIG_IP_ROUTER
+ memcpy(dest->data,src,length);
+#else
struct ethhdr *eth;
struct iphdr *iph;
int ip_length;
@@ -292,4 +295,5 @@
dest->csum=csum_partial_copy(src+sizeof(struct iphdr)+ETH_HLEN,dest->data+sizeof(struct iphdr)+ETH_HLEN,length,base);
dest->ip_summed=1;
+#endif
}
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