From: Ralf Baechle DL5RB <ralf@linux-mips.org>
To: linux-hams@vger.kernel.org
Cc: Thomas Osterried <thomas@osterried.de>
Subject: AX.25 cb lookup patch
Date: Wed, 3 Nov 2004 05:43:32 +0100 [thread overview]
Message-ID: <20041103044332.GA9102@linux-mips.org> (raw)
In-Reply-To: <20041102203107.GA25455@linux-mips.org>
Ax AX.25 connection is identified only by it's source and destination,
not by the device it's routed through, so fix the connection block
lookup to ignore the device of a connection. This fixes dying connections
in case of a routing flap.
73 de DL5RB op Ralf
--
Loc. JN47BS / CQ 14 / ITU 28 / DOK A21
Index: net/ax25/af_ax25.c
===================================================================
RCS file: /home/cvs/linux/net/ax25/af_ax25.c,v
retrieving revision 1.59
diff -u -r1.59 af_ax25.c
--- net/ax25/af_ax25.c 12 Oct 2004 01:45:52 -0000 1.59
+++ net/ax25/af_ax25.c 3 Nov 2004 03:23:53 -0000
@@ -207,16 +207,8 @@
continue;
if (s->ax25_dev == NULL)
continue;
- if (ax25cmp(&s->source_addr, src_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->ax25_dev->dev == dev) {
- if (digi != NULL && digi->ndigi != 0) {
- if (s->digipeat == NULL)
- continue;
- if (ax25digicmp(s->digipeat, digi) != 0)
- continue;
- } else {
- if (s->digipeat != NULL && s->digipeat->ndigi != 0)
- continue;
- }
+ if (ax25cmp(&s->source_addr, src_addr) == 0 &&
+ ax25cmp(&s->dest_addr, dest_addr) == 0) {
ax25_cb_hold(s);
spin_unlock_bh(&ax25_list_lock);
next prev parent reply other threads:[~2004-11-03 4:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-02 20:31 Another 6pack patch Ralf Baechle DL5RB
2004-11-03 4:43 ` Ralf Baechle DL5RB [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-11-09 3:36 AX.25 cb lookup patch Ralf Baechle
2004-11-10 6:05 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041103044332.GA9102@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-hams@vger.kernel.org \
--cc=thomas@osterried.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.