* [PATCH] AX.25: Use constant instead of magic number.
@ 2005-10-18 20:39 Ralf Baechle
2005-10-20 22:12 ` af_rose.c Bernard Pidoux
2005-10-28 22:47 ` [PATCH] AX.25: Use constant instead of magic number Arnaldo Carvalho de Melo
0 siblings, 2 replies; 3+ messages in thread
From: Ralf Baechle @ 2005-10-18 20:39 UTC (permalink / raw)
To: David S. Miller
Cc: Arnaldo Carvalho de Melo, dann frazier, chrisw, netdev,
linux-hams
Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
net/rose/rose_route.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: net-git/net/rose/rose_route.c
===================================================================
--- net-git.orig/net/rose/rose_route.c
+++ net-git/net/rose/rose_route.c
@@ -727,7 +727,7 @@ int rose_rt_ioctl(unsigned int cmd, void
}
if (rose_route.mask > 10) /* Mask can't be more than 10 digits */
return -EINVAL;
- if (rose_route.ndigis > 8) /* No more than 8 digipeats */
+ if (rose_route.ndigis > AX25_MAX_DIGIS)
return -EINVAL;
err = rose_add_node(&rose_route, dev);
dev_put(dev);
^ permalink raw reply [flat|nested] 3+ messages in thread
* af_rose.c
2005-10-18 20:39 [PATCH] AX.25: Use constant instead of magic number Ralf Baechle
@ 2005-10-20 22:12 ` Bernard Pidoux
2005-10-28 22:47 ` [PATCH] AX.25: Use constant instead of magic number Arnaldo Carvalho de Melo
1 sibling, 0 replies; 3+ messages in thread
From: Bernard Pidoux @ 2005-10-20 22:12 UTC (permalink / raw)
To: Ralf Baechle
Cc: David S. Miller, Arnaldo Carvalho de Melo, dann frazier, chrisw,
netdev, linux-hams, Jean-Paul ROUBELAT
[-- Attachment #1: Type: text/plain, Size: 897 bytes --]
Hi,
Concerning rose module, here is a patch proposed by Jean-Paul F6FBB for
af_rose.c
It is against linux-2.6.14-rc5
This patch only adds a loop near the end of rose_connect() in order to
make it try to connect rose next_neighbour node in case of connect
failure, until we reach the true end of the neighbour list.
With the guys of FADCA and other french hams using ROSE/FPAC we found
that ROSE did not scan the alternate routes even when there was one
available.
This could be an important point in case of catastrophic events with
telecommunication failure. The possibility to handle emergency traffic
via alternate routes could be a vital necessity.
The principle of this patch has been tested with kernel 2.2 and 2.6 and
it works well using F6FBB ROSE/FPAC packet switch application.
I suggest that it should be included into the next kernel rose module.
73 de Bernard, f6bvp
[-- Attachment #2: af_rose.c.2.6.14-rc5.diff --]
[-- Type: text/x-patch, Size: 701 bytes --]
--- net/rose/af_rose.c 2005-10-20 23:27:15.000000000 +0200
+++ net/rose/af_rose.c 2005-10-20 23:38:20.000000000 +0200
@@ -751,7 +751,7 @@
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;
@@ -809,6 +809,11 @@
}
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] 3+ messages in thread
* Re: [PATCH] AX.25: Use constant instead of magic number.
2005-10-18 20:39 [PATCH] AX.25: Use constant instead of magic number Ralf Baechle
2005-10-20 22:12 ` af_rose.c Bernard Pidoux
@ 2005-10-28 22:47 ` Arnaldo Carvalho de Melo
1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2005-10-28 22:47 UTC (permalink / raw)
To: Ralf Baechle
Cc: David S. Miller, Arnaldo Carvalho de Melo, dann frazier, chrisw,
netdev, linux-hams
On 10/18/05, Ralf Baechle <ralf@linux-mips.org> wrote:
> Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
>
> net/rose/rose_route.c | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
Thanks, applied and already merged by Linus.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-10-28 22:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-18 20:39 [PATCH] AX.25: Use constant instead of magic number Ralf Baechle
2005-10-20 22:12 ` af_rose.c Bernard Pidoux
2005-10-28 22:47 ` [PATCH] AX.25: Use constant instead of magic number Arnaldo Carvalho de Melo
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).