lkml.org 
[lkml]   [2000]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Re: 2.2.18pre21 - IP kernel level autoconfiguration
Luca Montecchiani wrote:
:
> Anyway I'll do more investigation about my problem to get bootp
> work with dhcp compiled into kernel next week

With the 2.2.18pre22 kernel and also pre21 last time I checked
if you compile the kernel with DHCP and BOOTP, it's impossible
to use bootp, you need to recompile the kernel without dhcp.

The problem (bug) is that dhcp code is _always_ executed also in
the case of bootp, breaking the procedure :(

I love to have dhcp and bootp compiled into kernel, so I can
chose my preferred protocol with the ip=XXXX option.

I don't like this _goto_ patch against 2.2.18pre22, but work :

--- ipconfig.c.old Mon Nov 20 17:01:16 2000
+++ ipconfig.c Mon Nov 20 17:34:01 2000
@@ -842,6 +842,8 @@
u32 server_id = INADDR_NONE;
int mt = 0;

+ if ( !(ic_proto_enabled & IC_USE_DHCP) ) goto nodhcp;
+
ext = &b->exten[4];
while (ext < end && *ext != 0xff) {
u8 *opt = ext++;
@@ -896,6 +898,7 @@

#endif /* IPCONFIG_DHCP */

+nodhcp:
ext = &b->exten[4];
while (ext < end && *ext != 0xff) {
u8 *opt = ext++;

ciao,
luca
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:47    [W:0.032 / U:0.352 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site