From: Peter Cleve <toad@harlie.han.de>
To: linux-kernel@vger.kernel.org
Subject: What does CONFIG_NETDEVICES *really* mean ?
Date: Fri, 14 Dec 2001 00:53:39 +0100 (CET) [thread overview]
Message-ID: <200112132353.fBDNrda32369@harlie.han.de> (raw)
Hi!
CONFIG_NETDEVICES is referenced only at 2 files in the kernel source:
- net/core/sock.c
- drivers/isdn/isdn_common.c
In net/core/sock.c it's used as an #ifdef around the SO_BINDTODEVICE code
in sock_setsockopt().
This is the interesting part from net/core/sock.c :
[ ... ]
case SO_SNDTIMEO:
ret = sock_set_timeout(&sk->sndtimeo, optval, optlen);
break;
#ifdef CONFIG_NETDEVICES
case SO_BINDTODEVICE:
{
char devname[IFNAMSIZ];
[ ... ]
IMHO it's completly legal to bind a socket to the loopback interface if you
have an machine with CONFIG_INET=y and unset CONFIG_NETDEVICES. I'm not a
kernel hacker and think the surrounding #ifdef should be removed.
In drivers/isdn/isdn_common.c it is used as an #ifdef about some cmd's
in isdn_ioctl(). Some cmd's which are surrounded by CONFIG_NETDEVICES are:
case IIOCNETGPN: /* Get peer phone number of a connected isdn network interface */
case IIOCNETAIF: /* Add a network-interface */
case IIOCNETASL: /* Add a slave to a network-interface */
..... many follows .......
Consider a kernel with no additional Network interfase except isdn interfaces,
these ioctl's cannot work, but IMHO these are needed to set up the isdn interfaces.
IMHO CONFIG_INET fit's better.
Maybe somebody with more knowledge about the kernel can comment about these topics.
Greetings
reply other threads:[~2001-12-13 23:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200112132353.fBDNrda32369@harlie.han.de \
--to=toad@harlie.han.de \
--cc=linux-kernel@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
Powered by JetHome