patch-pre2.0.14-final2.0 linux/net/ipv4/raw.c
Next file: linux/net/ipv4/tcp.c
Previous file: linux/net/ipv4/ip_fw.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Sat Jun 8 20:06:45 1996
- Orig file:
pre2.0.14/linux/net/ipv4/raw.c
- Orig date:
Wed Jun 5 10:41:29 1996
diff -u --recursive --new-file pre2.0.14/linux/net/ipv4/raw.c linux/net/ipv4/raw.c
@@ -204,7 +204,8 @@
* Deliberate breach of modularity to keep
* ip_build_xmit clean (well less messy).
*/
- iph->id = htons(ip_id_count++);
+ if (!iph->id)
+ iph->id = htons(ip_id_count++);
iph->check=ip_fast_csum((unsigned char *)iph, iph->ihl);
}
}
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