Patch to prevent multiple dhclients starting on an interface

Ted Lemon mellon at fugue.com
Wed Jun 15 17:30:13 UTC 2005


On Jun 15, 2005, at 9:48 AM, LaMont Jones wrote:

> Interesting that the bind works, though...
>

It works because we have to set SO_REUSEADDR.   Even on the first  
socket open.   No idea why.   Which is a bummer, because it makes  
this a lot harder.   Looking in /proc/pid/exe is a chancy solution,  
both because it's linux-specific and because it assumes that the  
program will be named dhclient.  This latter assumption isn't a bad  
one, but you never know.



More information about the dhcp-hackers mailing list