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

ax25-sockaddr-patch.gz

ax25-bindtodev-test.c.gz

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)

Reply via email to