The following patch makes sure that on physical interfaces with more
than one virtual interface, the correct source address is used (the one
from the virtual interface). This is necessary for gated to work
using multicast communication with its neighbors on multiple virtual
interfaces.
As far as I can tell, the key.src value which is preset, is determined
by the address the socket is bound to. Meaning: it seems like this
patch doesn't mess up anything. If someone can explain me otherwise,
speak up.
diff -U 2 -b -B -p -r -d --horizon-lines=2 -X /usr/local/etc/xdiff
reflinux/net/ipv4/route.c custlinux/net/ipv4/route.c
--- reflinux/net/ipv4/route.c Wed Apr 21 02:36:13 1999
+++ custlinux/net/ipv4/route.c Sun Apr 25 20:21:59 1999
@@ -1478,4 +1478,7 @@ int ip_route_output_slow(struct rtable *
if (LOCAL_MCAST(daddr) || daddr == 0xFFFFFFFF) {
+#ifndef NO_SRB_FIX
+ if(!key.src)
+#endif
key.src = inet_select_addr(dev_out, 0, RT_SCOPE_LINK);
goto make_route;
--
Sincerely, [EMAIL PROTECTED]
Stephen R. van den Berg (AKA BuGless).
You are currently aboard a fully automated plane. There is no pilot on board.
Rest assured, you have nothing to worry about... worry about... worry about...
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]