Google
  Web www.spinics.net

Re: What were the reasons of having IP address at AX.25 interfaces ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Tue, Apr 01, 2008 at 10:17:26AM +0200, Thomas Osterried wrote:
> > > A while ago I was curious myself for why that is needed and dug into
> > > the CVS history.  I found the IP address wasn't always enforced and the
> > > commit message didn't really explain why the change was needed.
> > > 
> > > 73 de DL5RB op Ralf
> > 
> > I figured it eventually myself, and rewrote  libax25's
> > axconfig/rsconfig/nrconfig functions to not to require IP addresses
> > in AX.25/Netrom/Rose interfaces to be able to find all interface
> > currently defined.
> 
> I think it was a design problem, because the used system call only
> shows those interfaces which are up. 

Are up and with IP addresses.  I am not 100% sure that the used ioctl()
misbehaves in this regard.

> My approach is, to use /proc to find them, inspired by the "ifconfig" tool
> (if i remember correctly).

I wrote similar code myself, and turned the logic of the whole axconfig.c
upside down in order to scan files only once, nor build 

> This simply enhances get_ax25_ifaces() by this method. The code is in
> the CVS version, but not enabled by default (-DFIND_ALL_INTERFACES).
> 
> I hat no problems with it on kernel 2.6. But on kernel 2.4., i observed
> that when an incoming SABM occurs, the kernel did panic.

And recently people have observed kernel panics with ROSE traffic..
Permanently avoiding using some machinery because it breaks for some
users is not a good thing in my mind ..  those broken things will never
get fixed if we don't find them, and report them.


I use only AX.25 UI traffic myself (APRS), thus those SABM problems do
not bite me, but for rare CONS users they are troublesome things indeed..


> 73,
> 	- Thomas  dl9sau

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

[Site Home]     [Linux Newbie]     [Kernel Newbies]     [Memory]     [Security]     [Netfilter]     [Linux Admin]     [Bugtraq]     [Rubini]     [Photo]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [ARM Linux Kernel]     [Linux Networking]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linux Resources]


  Powered by Linux