* Re: What were the reasons of having mandatory IP address at AX.25 interfaces ? [not found] ` <20080203202819.GX2537@mea-ext.zmailer.org> @ 2008-02-04 13:02 ` Matti Aarnio 2008-02-04 14:38 ` Andi Kleen 0 siblings, 1 reply; 3+ messages in thread From: Matti Aarnio @ 2008-02-04 13:02 UTC (permalink / raw) To: linux-hams; +Cc: netdev .. the original reason was apparently that _ifconfig_ blew up when it saw protocols that it didn't understand on network interfaces. Possibly when there was no IP protocol on an interface. This happened on DECNET, and apparently on others too. Thus the SIOCGIFCONF ioctl is not returning much else than interfaces with IP addresses on them, and to get _all_ interfaces, one must read thru /proc/net/dev file. Some reason like that is possibly behind the reason why SIOCGIFCONF does not find anything but PF_INET sockets even when it is run on PF_AX25 type socket.. The "fun" part is that ifconfig does look for all devices in /proc/net/dev. Perhaps we should just make all devices findable with SIOCGIFCONF regardless of what protocols they may support ? And if the ifconfig blows up, the bug is in ifconfig tool, not kernel. Alternatively one could iterate all network devices of protocol family X being enabled when ioctl() is called on socket with PF_x (like PF_AX25.) Can anyone recall any real reason why this would not be acceptable ? /Matti Aarnio ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What were the reasons of having mandatory IP address at AX.25 interfaces ? 2008-02-04 13:02 ` What were the reasons of having mandatory IP address at AX.25 interfaces ? Matti Aarnio @ 2008-02-04 14:38 ` Andi Kleen 2008-02-04 15:02 ` Matti Aarnio 0 siblings, 1 reply; 3+ messages in thread From: Andi Kleen @ 2008-02-04 14:38 UTC (permalink / raw) To: Matti Aarnio; +Cc: linux-hams, netdev Matti Aarnio <matti.aarnio@zmailer.org> writes: > .. the original reason was apparently that _ifconfig_ blew up > when it saw protocols that it didn't understand on network > interfaces. Possibly when there was no IP protocol on an > interface. It's not only ifconfig, a lot of programs use SIOCGIFCONF to query ip addresses. -Andi ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What were the reasons of having mandatory IP address at AX.25 interfaces ? 2008-02-04 14:38 ` Andi Kleen @ 2008-02-04 15:02 ` Matti Aarnio 0 siblings, 0 replies; 3+ messages in thread From: Matti Aarnio @ 2008-02-04 15:02 UTC (permalink / raw) To: Andi Kleen; +Cc: linux-hams, netdev On Mon, Feb 04, 2008 at 03:38:35PM +0100, Andi Kleen wrote: > Matti Aarnio <matti.aarnio@zmailer.org> writes: > > > .. the original reason was apparently that _ifconfig_ blew up > > when it saw protocols that it didn't understand on network > > interfaces. Possibly when there was no IP protocol on an > > interface. > > It's not only ifconfig, a lot of programs use SIOCGIFCONF > to query ip addresses. So ? My codes do too, and filter away things they are not interested in. (When they specifically look for IP addresses.) Of course I may be in minority by expecting the unexpected, and handling such "weird" multiprotocol systems... I found original explanation for that mandatoryness finally. It was in order to silence bug reports in certain cases when real fix would have been to really find all interfaces instead of complaining. In the end I used same trick that ifconfig tool uses to find all interfaces, and filter away those that AX.25 subsystems are not interested in - end of "SIOCGIFCONF problems". netdev:ish developemnt thing would be, that we ( = myself probably ) make SIOCGIFCONF to return those devices that have addresses in the protocol family that the socket used for the query has. For PF_INET we might return also PF_INET6 values to lessen the spanish-inquisition -impact... .. or do you know any who looks up interface IP addresses with PF_FILE ( = AF_UNIX ) socket ? What do the competitor systems B, S, and W do ? > -Andi /Matti Aarnio ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-04 15:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <S3540591AbYBCSQN/20080203181613Z+1592@mail.zmailer.org>
[not found] ` <47A60A57.5080402@digitalrealm.net>
[not found] ` <20080203202819.GX2537@mea-ext.zmailer.org>
2008-02-04 13:02 ` What were the reasons of having mandatory IP address at AX.25 interfaces ? Matti Aarnio
2008-02-04 14:38 ` Andi Kleen
2008-02-04 15:02 ` Matti Aarnio
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).