Re: AX25 socket question.

From: TIMOTHY POWELL (ayvwr@wxasp.net)
Date: Tue Jul 16 2002 - 15:19:09 EEST

  • Next message: Steve Lampereur: "Re: 802.11b wireless lan equipment and ham radio ?"

    Thanks for the information, I didn’t realize that I
    would have to work at that lower level. But I like
    challenges. I’m looking for a book right now to get
    that will help explain some things to me, I just wish
    there was one specific to AX25. I still plan to work
    on the monitoring program, I had planned to get to that
    lower level sooner or later but it looks like it will
    be sooner. Thanks for the help and information. I
    have always used other peoples programs before, but
    after a while I finally decided to learn to do it
    myself just for the challenge and learning experience.
    I appreciate all the replies. Thanks.

    Timothy
    KD4IKY

    On Tue, 16 July 2002, Tomi Manninen OH2BNS wrote

    >
    > On Mon, 15 Jul 2002, TIMOTHY POWELL wrote:
    >
    > > int socket(int domain, int type, int protocol);
    > >
    > > So PF_AX25 is the domain, SOCK_SEQPACKET would be
    the
    > > type of communication. So what protocol is used for
    > > receiving AX25 information, or am I still
    > > misunderstanding sockets?
    >
    > Not necessarily but maybe you're not quite up to what
    the different
    > protocol layers are.
    >
    > Just like Craig said, when you need to have an AX.25
    socket and do
    > information transport between two stations, you need a
    > PF_AX25,SOCK_SEQPACKET socket. AX.25 does not support
    SOCK_STREAM. It does
    > support unnumbered data (UI frames) with SOCK_DGRAM.
    >
    > But, the point is (as far as I can see) that what you
    want to do is not
    > (point to point) information transfer, but network
    monitoring. When doing
    > that you actually do not want to have a socket that
    corresponds to the
    > higher level protocol but you want a socket to see
    the data from the
    > device driver. That is what "listen" does.
    >
    > The same thing applies to applications that monitor
    for example the
    > internet traffic in your local ethernet segment (eg.
    ethereal). They can't
    > use PF_INET sockets but something lower level.
    >
    > The listen program uses PF_PACKET as the domain and
    SOCK_PACKET as the
    > type. This is actually deprecated in new kernels but
    still works (see
    > packet(7) manual page for more details). Anyway the
    general idea is that
    > you need to interpret the raw data from the device
    driver to do your
    > monitoring. PF_PACKET,SOCK_PACKET socket handles the
    device dependent part
    > for you, basically removing the KISS command byte
    when using a KISS TNC
    > and maybe something else for other packet radio
    drivers, but the actual
    > AX.25 and higher level protocol/data interpretation
    is left to you (feel
    > free to copy from "listen").
    >
    > So writing an application to monitor AX.25 traffic
    might not be the
    > easiest way to start exploring the world AX.25 as you
    really need to do
    > the whole protocol decoding in your application.
    Writing an application
    > for simple information transfer with another packet
    radio station is much
    > simpler as the kernel handles all the gory protocol
    details for you...
    >
    > But, as already said here, you can always re-use the
    code from "listen".
    > If you are not interested in the upper level
    protocols (above plain AX.25)
    > you can modify it accordingly (to just hex dump any
    higher level data or
    > whatever).
    >
    > --
    > Tomi Manninen Internet: pzqa.mxghfjyws@sun.ac.za
    > OH2BNS AX.25:
    vrxne.jaqozqiui@microvision.co.jp
    > KP20ME04 Amprnet:
    nfmxgr.mryftq@relay.tunkki.fi
    >
    > -
    > To unsubscribe from this list: send the line
    "unsubscribe linux-hams" in
    > the body of a message to ckpzdm.dwdfufpgon@nokia.com
    > More majordomo info at
    http://vger.kernel.org/majordomo-info.html

    ________________________________________________
    PeoplePC: It's for people. And it's just smart.
    http://www.peoplepc.com
    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to yubdk.sbod@mx.dy.fi
    More majordomo info at http://vger.kernel.org/majordomo-info.html



    This archive was generated by hypermail 2b30 : Tue Jul 16 2002 - 15:19:35 EEST