2003-01-08 02:08:43

by Neale Banks

[permalink] [raw]
Subject: DHCP-client-related options in Configure.help


Separate patches to follow explicitly note that each of the two options
'Socket filtering' and 'Packet socket' are required for DHCP client.

Yep, I found out the hard way - build a kernel without these two and
DHCP client doesn't work at all. Given the prevalance of DHCP, IMHO
it isn't reasonable to remain silent about DHCP's dependence on these
two options and counsel "if unsure, say N" (albeit in only one of the
above cases).

Patches for 2.2 and 2.4 will follow separately. I'll also check 2.5.

Neale.


2003-01-08 02:15:55

by Neale Banks

[permalink] [raw]
Subject: [PATCH 2.2] DHCP-client-related options in Configure.help


Appended patch against 2.2.24-rc1 updates Documentation/Configure.help
re options which are required to support DHCP client.

Thanks,
Neale.

--- linux-2.2.24-rc1/Documentation/Configure.help Sat Nov 30 05:05:55 2002
+++ linux-2.2.24-rc1-ntb0/Documentation/Configure.help Sat Dec 21 19:02:23 2002
@@ -1364,7 +1364,9 @@
certain types of data to get through the socket. Linux Socket
Filtering works on all socket types except TCP for now. See the text
file linux/Documentation/networking/filter.txt for more information.
- If unsure, say N.
+ If unsure, say N unless the host may be using DHCP to configure its
+ own address (the DHCP client requires this and 'Packet socket') - in
+ that case say Y.

Network firewalls
CONFIG_FIREWALL
@@ -4152,6 +4154,7 @@
module, say M here and read Documentation/modules.txt. You will
need to add 'alias net-pf-17 af_packet' to your /etc/conf.modules
file for the module version to function automatically. If unsure, say Y.
+ Note that DHCP client requires this and 'Socket filtering'.

Kernel/User network link driver
CONFIG_NETLINK

2003-01-08 02:18:17

by Neale Banks

[permalink] [raw]
Subject: [PATCH 2.4] DHCP-client-related options in Configure.help


Appended patch against 2.4.21-pre2 updates
Documentation/Configure.help re options which are required to support
DHCP client.

Thanks,
Neale.

--- linux-2.4.21-pre2/Documentation/Configure.help Wed Jan 8 12:02:26 2003
+++ linux-2.4.21-pre2-ntb/Documentation/Configure.help Wed Jan 8 12:08:33 2003
@@ -2446,7 +2446,9 @@
information.

You need to say Y here if you want to use PPP packet filtering
- (see the CONFIG_PPP_FILTER option below).
+ (see the CONFIG_PPP_FILTER option below) or if the host may be using
+ DHCP to configure its own address (the DHCP client requires this and
+ 'Packet socket').

If unsure, say N.

@@ -6382,6 +6384,9 @@
directly with network devices without an intermediate network
protocol implemented in the kernel, e.g. tcpdump. If you want them
to work, choose Y.
+
+ Note that DHCP client requires this and 'Socket filtering', so if
+ you want DHCP client to work, choose Y.

This driver is also available as a module called af_packet.o ( =
code which can be inserted in and removed from the running kernel