Thread (3 messages) 3 messages, 2 authors, 2008-02-04

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

From: Matti Aarnio <hidden>
Date: 2008-02-04 15:02:40
Also in: linux-hams

On Mon, Feb 04, 2008 at 03:38:35PM +0100, Andi Kleen wrote:
Matti Aarnio [off-list ref] writes:
quoted
.. 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help