* [ROSE] Try all routes when establishing a ROSE connections.
@ 2006-06-30 13:53 Ralf Baechle
2006-07-04 2:32 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ralf Baechle @ 2006-06-30 13:53 UTC (permalink / raw)
To: David S. Miller, netdev
>From Jean-Paul F6FBB:
ROSE will only try to establish a route using the first route in its
routing table. Fix to iterate through all additional routes if a
connection attempt has failed.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
net/rose/af_rose.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Index: linux-net/net/rose/af_rose.c
===================================================================
--- linux-net.orig/net/rose/af_rose.c 2006-06-30 14:46:33.000000000 +0100
+++ linux-net/net/rose/af_rose.c 2006-06-30 14:49:03.000000000 +0100
@@ -753,7 +753,7 @@ static int rose_connect(struct socket *s
rose_insert_socket(sk); /* Finish the bind */
}
-
+rose_try_next_neigh:
rose->dest_addr = addr->srose_addr;
rose->dest_call = addr->srose_call;
rose->rand = ((long)rose & 0xFFFF) + rose->lci;
@@ -811,6 +811,11 @@ static int rose_connect(struct socket *s
}
if (sk->sk_state != TCP_ESTABLISHED) {
+ /* Try next neighbour */
+ rose->neighbour = rose_get_neigh(&addr->srose_addr, &cause, &diagnostic);
+ if (rose->neighbour)
+ goto rose_try_next_neigh;
+ /* No more neighbour */
sock->state = SS_UNCONNECTED;
return sock_error(sk); /* Always set at this point */
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ROSE] Try all routes when establishing a ROSE connections.
2006-06-30 13:53 [ROSE] Try all routes when establishing a ROSE connections Ralf Baechle
@ 2006-07-04 2:32 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2006-07-04 2:32 UTC (permalink / raw)
To: ralf; +Cc: netdev
From: Ralf Baechle <ralf@linux-mips.org>
Date: Fri, 30 Jun 2006 14:53:16 +0100
> >From Jean-Paul F6FBB:
>
> ROSE will only try to establish a route using the first route in its
> routing table. Fix to iterate through all additional routes if a
> connection attempt has failed.
>
> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-04 2:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-30 13:53 [ROSE] Try all routes when establishing a ROSE connections Ralf Baechle
2006-07-04 2:32 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).