Re: Problem with net/ipv4/ipconfig.c

Martin Mares (mj@atrey.karlin.mff.cuni.cz)
Wed, 14 Jan 1998 12:01:38 +0100


Hi,

> When compiling with CONFIG_IP_PNP enabled:
>
> gcc -D__KERNEL__ -I/home/kernel/v2.1/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -D__SMP__ -c -o ip_input.o ip_input.c
> ipconfig.c: In function `ic_do_bootp_ext':
> ipconfig.c:803: `b' undeclared (first use this function)
> ipconfig.c:803: (Each undeclared identifier is reported only once
> ipconfig.c:803: for each function it appears in.)

It seems a bit of my patch got duplicated in 2.1.79. A fix follows:

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@gts.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"People disagree with me.  I just ignore them." -- Linus Torvalds

--- ipconfig.c.mj Wed Jan 14 11:57:06 1998 +++ ipconfig.c Wed Jan 14 11:57:17 1998 @@ -799,9 +799,6 @@ ic_bootp_string(root_server_path, ext+1, *ext, sizeof(root_server_path)); break; } - - if (ic_gateway == INADDR_NONE && b->relay_ip) - ic_gateway = b->relay_ip; }