AX.25 cb lookup patch

From: Ralf Baechle DL5RB (terhi.victor@logonet.com)
Date: Wed Nov 03 2004 - 06:43:32 EET

  • Next message: Dave Stubbs: "Node Spawn"

    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); - To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to wrj.ianxwl@lkuk.co.uk More majordomo info at http://vger.kernel.org/majordomo-info.html



    This archive was generated by hypermail 2b30 : Wed Nov 03 2004 - 05:47:23 EET