From: Matti Aarnio <matti.aarnio@zmailer.org>
To: linux-hams@vger.kernel.org
Cc: netdev@vger.kernel.org
Subject: Re: What were the reasons of having mandatory IP address at AX.25 interfaces ?
Date: Mon, 4 Feb 2008 15:02:52 +0200 [thread overview]
Message-ID: <20080204130252.GA2537@mea-ext.zmailer.org> (raw)
In-Reply-To: <20080203202819.GX2537@mea-ext.zmailer.org>
.. 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
next prev parent reply other threads:[~2008-02-04 13:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-03 18:04 What were the reasons of having IP address at AX.25 interfaces ? Matti Aarnio
[not found] ` <47A60A57.5080402@digitalrealm.net>
2008-02-03 20:28 ` Matti Aarnio
2008-02-04 13:02 ` Matti Aarnio [this message]
2008-02-04 14:38 ` What were the reasons of having mandatory " Andi Kleen
2008-02-04 15:02 ` Matti Aarnio
2008-03-31 21:50 ` What were the reasons of having " Ralf Baechle DL5RB
2008-03-31 22:08 ` Matti Aarnio
2008-04-01 8:17 ` Thomas Osterried
2008-04-01 9:44 ` Matti Aarnio
2008-04-01 10:37 ` Thomas Osterried
2008-04-01 12:09 ` Bernard Pidoux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080204130252.GA2537@mea-ext.zmailer.org \
--to=matti.aarnio@zmailer.org \
--cc=linux-hams@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox