dhcpcd-discuss

Re: [PATCH] always log from ip

Roy Marples

Fri Apr 30 05:41:41 2010

On Wed, 2010-04-28 at 12:10 +0200, Gerd v. Egidy wrote:
> today a customer had a problem with a stray dhcp server in his net. I tried to 
> get the IP of the server by sending a requesting with dhcpcd, but the ip of 
> the offender wasn't written out by dhcpcd as it is usually done.
> 
> I found out that the server didn't set DHO_SERVERID.
> 
> So I added some code to dhcpcd to print out the source ip of the dhcp udp 
> packet if the DHO_SERVERID option isn't set. Patch attached, please consider 
> applying.

Applied with changes for style.
Also, we could simply the code by putting from into addr if we do not
have a server id.

Thanks

Roy


Follow-Ups:
Re: [PATCH] always log from ipGerd v. Egidy
References:
[PATCH] always log from ipGerd v. Egidy
Archive administrator: postmaster@marples.name