patch-2.0.12 linux/net/ipv4/ip_forward.c
Next file: linux/net/ipv4/ip_fragment.c
Previous file: linux/net/ax25/ax25_timer.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed Aug 7 13:59:29 1996
- Orig file:
v2.0.11/linux/net/ipv4/ip_forward.c
- Orig date:
Fri Jul 19 19:48:43 1996
diff -u --recursive --new-file v2.0.11/linux/net/ipv4/ip_forward.c linux/net/ipv4/ip_forward.c
@@ -315,7 +315,7 @@
#endif
IS_SKB(skb);
- if (skb->len+encap > dev2->mtu && (ntohs(iph->frag_off) & IP_DF))
+ if (skb->len+encap > dev2->mtu && (iph->frag_off & htons(IP_DF)))
{
ip_statistics.IpFragFails++;
icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(dev2->mtu), dev);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov