NEW-AX.25: New attempt to clean up socket API

From: Joerg Reuter (akdxgon@denvergov.org)
Date: Tue Mar 07 2000 - 21:14:37 EET

  • Next message: Salvador Caballe 'EA3BKZ': "DXNET Error"

    Hi folks,

    this is the next try to start declaring parts of the existing API for
    AX.25 sockets obsolete. The following patch:

    - issues a warning if someone uses struct sockaddr_ax25 for
      bind(), connect() and sendmsg()
    - issues a warning if someone uses old struct full_sockaddr_ax25 with
      place for only 6 digipeaters

    [I've reversed the plan to phase out these: first the support for old
    struct full_sockaddr will go (in 2.5, not 2.4!), then sockaddr_ax25.
    Programs using the first just need a recompile, programs using the later
    need modifications].

    - removed debugging code from ax25_bind()
    - can we remove the autobind feature from ax25_connect()? The current
      behaviour is broken anyway.
    - added support for SO_BINDTODEVICE socket option (tnx Alan for the hint)

    I've attached an example for the use of SO_BINDTODEVICE.
    Folks, please try this and tell me if it breaks applications.

    73,
    Jörg





    Joerg Reuter http://poboxes.com/jreuter/
    And I make my way to where the warm scent of soil fills the evening air.
    Everything is waiting quietly out there.... (Anne Clark)



    This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 22:47:45 EET