mheardd port unknown

From: Dale Osborn (terhi.victor@logonet.com)
Date: Sun Feb 03 2002 - 06:49:40 EET

  • Next message: Erik Jakobsen: "Re: PCISCC driver"

    I am running libax25 0.0.7, ax25-tools 0.0.6, and ax25-apps 0.0.5p2 on top
    of Debian 2.2.19 (i486). Everything works great with one small exception. I
    have a bbs (winlink) running on top of bpq-4.09 and w95 on another machine.
    They talk happily to each other via ethernet. Unfortunately, mheardd doesn't
    want to acknowledge the fact that there is valid traffic coming over the
    ethernet. The syslog shows " unknown port 'bpq0' " each time it hears
    something coming across ethernet. bpq0 is the name I gave the port in
    axports (I've tried various other names in axports during troubleshooting,
    and the syslog entry always points to bpq0, the name of the ifconfig
    interface). My ax25 box is 90.0.0.3, and my winlink box is 90.0.0.2. My
    startup and config files are at the end of this synopsis. When I invoke the
    call command using bpq0 as the port, everything works fine. The only problem
    seems to be that mheardd doesn't like traffic over bpq interfaces. It does
    log traffic over axip. (I just started to learn C/C++ from the O'Reilly book
    last week - prior to this my only programming experience was BASIC in high
    school in 1974). From what I can decipher, there is a line in mheardd.c that
    calls a function in axlib which in turn relies on a rather (IMO) complex
    typedef struct (ax25_config_get_name). This function seems to compare device
    names somehow/somewhere using reference pointers or some such greekness that
    I have as yet been unable to comprehend. But I suspect that it is trying to
    compare names and returns null instead of a port name.

    Thanks in advance. 73, Dale K1WU

    P.S. By the way, I've had zero success in contacting my regional amprnet IP
    coordinator, KD1CA (I hope he's on this list). I'd like to get a small block
    of IPs for my lan, and get on-board as a gateway since I've got full time
    inet access.

    syslog entries:
     kissattach[8835]: AX.25 port 1 bound to device ax0
     kissattach[8837]: AX.25 port bpq0 bound to device ax1
     kissattach[8839]: AX.25 port axip bound to device ax2
     mheardd[8852]: starting
     netromd[8854]: starting
     beacon[8857]: starting
     ax25d[8859]: starting
     ax25d[8859]: new config file loaded successfuly
     kernel: mheardd uses obsolete (PF_INET,SOCK_PACKET)
     kernel: mkiss: ax2: transmit timed out, driver error?
    /***(axip still works in spite of this error message)***/
     mheardd[8852]: unknown port 'bpq0'
    /***(this pops up each time traffic flows over the bpq0 interface) ***/

    #/etc/init.d/ax25.init
    kissattach -l /dev/ttyS0 1 90.0.0.3
    kissattach -l /dev/ptyqf bpq0 90.0.0.3
    kissattach -l /dev/ptyqe axip 90.0.0.3
    ifconfig ax0 netmask 255.255.255.0 mtu 512
    ifconfig ax1 netmask 255.255.255.0 mtu 1500
    ifconfig ax2 netmask 255.255.255.0 mtu 1500
    ifconfig bpq0 hw ax25 k1wu-10 up
    nrattach -i 90.0.0.3 netrom
    nrattach -i 90.0.0.3 netnod
    nrattach -i 90.0.0.3 netbbs
    ifconfig nr0 netmask 255.255.255.0
    ifconfig nr1 netmask 255.255.255.0
    ifconfig nr2 netmask 255.255.255.0
    echo 50 > /proc/sys/net/netrom/default_path_quality
    nrparms -routes 1 n1csi-9 + 230
    nrparms -routes 1 w1on-3 + 220
    mheardd -l
    netromd -l -i -t 10
    ax25ipd -c /etc/ax25/ax25ipd.conf &
    beacon -c K1WU-12 -d ID -l -t 10 1 "Network node (CON) @ FN42hk"
    ax25d -l

    # /etc/ax25/axports
    #
    # The format of this file is:
    #
    # name callsign speed paclen window description
    #
    1 K1WU-13 4800 255 4 145.09 mhz
    axip K1WU-7 - 255 4 axip
    bpq0 K1WU-10 - 255 4 ethernet lan

    # /etc/ax25/nrports
    #
    # The format of this file is:
    #
    # name callsign alias paclen description
    #
    netrom K1WU-14 #CON 128 Switch
    netnod K1WU-12 CON 128 Node nodelisting
    netbbs K1WU-11 CONBBS 128 Winlink nodelisting

    # /etc/ax25/nrbroadcast
    #
    # The format of this file is:
    #
    # ax25_name min_obs def_qual worst_qual verbose
    #
    1 5 192 20 0
    axip 5 255 20 0
    bpq0 5 255 20 1

    # /etc/ax25/ax25d.conf
    #
    # ax25d Configuration File.
    #
    # AX.25 Ports begin with a '['.
    #
    [K1WU-0 VIA 1]
    NOCALL * * * * * * L
    PK232 * * * * * * L
    default * * * * * * - root /usr/sbin/ax25_call ax25_call bpq0 %U K1WU-8
    #
    [CON VIA 1]
    NOCALL * * * * * * L
    PK232 * * * * * * L
    default * * * * * * - root /usr/sbin/node node
    #
    [K1WU-12 VIA 1]
    NOCALL * * * * * * L
    PK232 * * * * * * L
    default * * * * * * - root /usr/sbin/node node
    #
    [axip]
    default * * * * * * - root /usr/sbin/node node
    #
    [bpq0]
    default * * * * * * - root /usr/sbin/node node
    #
    #
    # NET/ROM Ports begin with a '<'.
    #
    <netnod>
    NOCALL * * * * * * L
    PK232 * * * * * * L
    default * * * * * * - root /usr/sbin/node
    node
    #
    <netbbs>
    NOCALL * * * * * * L
    PK232 * * * * * * L
    default * * * * * * - root /usr/sbin/ax25_call ax25_call bpq0 %U K1WU-8
    #
    /* The end !!! */

    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to oddqpdle@playground.net
    More majordomo info at http://vger.kernel.org/majordomo-info.html



    This archive was generated by hypermail 2b30 : Sun Feb 03 2002 - 07:22:29 EET