ax25ipd SSID bug

From: Steve Fraser (lgt@roskapostia.tunk.net)
Date: Tue Dec 11 2001 - 01:26:21 EET

  • Next message: Ray Wells: "Re: Telnet to LinuxNode?"

    A couple of people have commented on SSID's not being handled properly in
    ax25ipd (in ax25-apps-0.0.5).
    SSID's of zero, and default routes, work OK.

    Here's the problem:

    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 problem is that "++" on the first line increments the b pointer so that
    it now points PAST the SSID, so the test on the following line does not work
    properly.
    Just delete the two "+" symbols on the first line, and recompile.
    The first line now looks like:

           if(((*b)&0x1e)==0)return 1; /* ssid 0 matches all ssid's */

    73

    Steve, vk5asf

    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to xxmcgjl.iahcbj@mx.dy.fi
    More majordomo info at http://vger.kernel.org/majordomo-info.html



    This archive was generated by hypermail 2b30 : Tue Dec 11 2001 - 01:27:21 EET