patch-1.3.81 linux/net/ipv4/route.c

Next file: linux/net/ipx/af_ipx.c
Previous file: linux/net/ipv4/ip_output.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.80/linux/net/ipv4/route.c linux/net/ipv4/route.c
@@ -41,6 +41,7 @@
  *		Olaf Erb	:	irtt wasnt being copied right.
  *		Bjorn Ekwall	:	Kerneld route support.
  *		Alan Cox	:	Multicast fixed (I hope)
+ * 		Pavel Krauz	:	Limited broadcast fixed
  *
  *		This program is free software; you can redistribute it and/or
  *		modify it under the terms of the GNU General Public License
@@ -1558,9 +1559,9 @@
 	if (!(rth->rt_flags & RTF_GATEWAY))
 		rth->rt_gateway = rth->rt_dst;
 	/*
-	 *	Multicast is never gatewayed.
+	 *	Multicast or limited broadcast is never gatewayed.
 	 */
-	if (MULTICAST(daddr))
+	if (MULTICAST(daddr) || daddr == 0xFFFFFFFF)
 		rth->rt_gateway = rth->rt_dst;
 
 	if (ip_rt_lock == 1)

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