patch-2.1.11 linux/net/ipv6/ndisc.c

Next file: linux/net/ipv6/tcp_ipv6.c
Previous file: linux/net/ipv6/af_inet6.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.10/linux/net/ipv6/ndisc.c linux/net/ipv6/ndisc.c
@@ -15,6 +15,14 @@
  */
 
 /*
+ *	Changes:
+ *
+ *	Lars Fenneberg			:	fixed MTU setting on receipt
+ *						of an RA. 
+ *
+ */
+
+/*
  *	Interface:
  *
  *	ndisc_lookup will be called from eth.c on dev->(re)build_header
@@ -1383,7 +1391,7 @@
 				int mtu;
 				struct device *dev;
 				
-				mtu = htonl(*(__u32 *)opt+4);
+				mtu = htonl(*(__u32 *)(opt+4));
 				dev = rt->rt_nexthop->dev;
 
 				if (mtu < 576)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov