patch-2.0.18 linux/net/ipv4/icmp.c
Next file: linux/net/ipv4/raw.c
Previous file: linux/mm/page_io.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Thu Sep 5 08:29:26 1996
- Orig file:
v2.0.17/linux/net/ipv4/icmp.c
- Orig date:
Mon Jun 3 13:23:34 1996
diff -u --recursive --new-file v2.0.17/linux/net/ipv4/icmp.c linux/net/ipv4/icmp.c
@@ -618,7 +618,9 @@
* Build and send the packet.
*/
- icmp_build_xmit(&icmp_param, saddr, iph->saddr, ((iph->tos & 0x38) | 6));
+ icmp_build_xmit(&icmp_param, saddr, iph->saddr,
+ icmp_pointers[type].error ?
+ (iph->tos & 0x1E) | 0xC0 : iph->tos);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov