[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080204150240.GB2537@mea-ext.zmailer.org>
Date: Mon, 4 Feb 2008 17:02:40 +0200
From: Matti Aarnio <matti.aarnio@...iler.org>
To: Andi Kleen <andi@...stfloor.org>
Cc: linux-hams@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: What were the reasons of having mandatory IP address at AX.25
interfaces ?
On Mon, Feb 04, 2008 at 03:38:35PM +0100, Andi Kleen wrote:
> Matti Aarnio <matti.aarnio@...iler.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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists