Re: Telnet to LinuxNode?

From: Ray Wells (terhi.victor@logonet.com)
Date: Tue Dec 11 2001 - 07:02:24 EET

  • Next message: Richard Adams: "Re: Telnet to LinuxNode?"

    Hi All,

    I've been able to successfully implement the code change in process.c
    (ax25ipd) as suggested by Steve Fraser - thanks Steve for your assistance.

    Quoting from Steve ....

    >in process.c in the addrmatch routine we see:
    >
    > if(((*b++)&0x1e)==0)return 1; /* ssid 0 matches all ssid's */
    > if((*a++^*b)&0x1e)return 0; /* ssid */
    >
    >The "++" on the first line increments the b pointer so that it now points
    >PAST the SSID, so the following test fails to distinguish between SSID's.
    >
    >If you delete both the "+" symbols on that first line and recompile I think
    >it will work.

    I can now set up routes based on SSID.

    BTW, I use ax25-apps 0.0.4 on a Debian 2.2 r0 system with kernel 2.2.19
    (although I compiled ax25-apps on another Debian system running 2.2.17
    kernel)

    In keeping with "life is a bitch", fixing problem one has revealed problem
    two! Problem two probably won't affect too many ax25ipd users but it
    probably should be fixed. It involves UI broadcasts only being sent on the
    default port.

    What I have here is three machines, one Windows and two Linux, as per below.

            Windows (vk2tv-3) ...............................................

    |
             BBS/node (vk2tv/vk2tv-1) ........................... 3Com hub

    |
             Second Linux machine (vk2tv-6) ............................

    (When I sort out the latest problem the second Linux machine will handle the
    hf ports of the BBS.)

    I have to use udp to the Windows machine but can use udp or ip between the
    Linux machines, not that it matters here.

    The BBS system is the "central" system. If I configure its ax25ipd.conf
    routing as such ....

    vk2tv-6 hfvk2tv udp 93 b
    vk2tv-3 gizmo udp 93 d

    ... replies to a connect request from vk2tv-6 are sent out on the port
    marked as "default" but UI frames are sent on both ports. A connect request
    from vk2tv-1 to either remote machine is handled correctly and the
    connection established.

    If I change the routing to ..
    vk2tv-6 hfvk2tv udp 93 d
    vk2tv-3 gizmo udp 93 b

    ... i.e. swap the default route, connects to/from either remote system to
    vk2tv-1, or from vk2tv-1 to either remote system, are handled correctly but
    UI frames are only sent to the default route.

    So, I can have a system that routes correctly (what the majority of users
    would want!) or one that passes UI frames to the Windows machine. Changing
    from udp to ip between vk2tv-1 and vk2tv-6 makes no difference.

    In case you wonder why I need the UI frames on the Windows machine, I run a
    terminal program that uses FBB unproto headers, and I also run APRS. The
    vk2tv/vk2tv-1 system is the only one with radios attached.

    Mmmm, just a thought. It may be that the problem relates to using the same
    callsign (but with different SSID's) on all machines. The reply to a connect
    request from LinuxNode vk2tv-1 is sent to vk2tv (no SSID) even though the
    originating callsign is vk2tv-3 or vk2tv-6. Is routing being performed on
    the "lowest" SSID when there is no perfect match?

    I wanted to get a reply to Steve ASAP about his code change so haven't tried
    different callsigns on the two remote systems. I'll get to that in the next
    24 hours and post what I find.

    Ray Wells VK2TV

    ----- Original Message -----
    From: "Steve Fraser" <jxa@jbr-mccann.no>
    To: <ypo@tedis.com.au>; "ham" <fojhuckt.yndudgaho@hig.no>
    Sent: Monday, December 10, 2001 2:06 PM
    Subject: Re: Telnet to LinuxNode?

    > Wilbert Knol wrote (about ax25ipd)
    >
    > > The daemon fails to resolve SSID routes defined in ax25ipd.conf.
    > > Instead, I made it work by defining the '<callsign>-0' SSID in
    > > ax25ipd.conf, in which case all SSIDs to <callsign> get routed to the
    > > stated IP address. Don't bother trying to use SSIDs other than -0 in
    the
    > > ax25ipd.conf table.
    > >
    > I believe there's a bug in that section of code. Ray, vk2tv, is testing a
    > fix at the moment.
    >
    > I'll post it as soon as its proven :-)
    >
    > 73
    >
    > Steve, vk5asf
    >
    > -
    > To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    > the body of a message to chxj@surrart.ac.uk
    > More majordomo info at http://vger.kernel.org/majordomo-info.html
    >

    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to pnyhs.tctjg@tohoku.ac.jp
    More majordomo info at http://vger.kernel.org/majordomo-info.html



    This archive was generated by hypermail 2b30 : Tue Dec 11 2001 - 07:13:50 EET