DHCPv6 on Linux with 4.3.0

Peter Rathlev peter at rathlev.dk
Mon Mar 17 20:53:57 UTC 2014


On Mon, 2014-03-17 at 17:51 +0100, Carsten Strotmann wrote:
> when using ISC-DHCP 4.3.0 in DHCPv6 mode on a Linux system with kernel <
> 3.9, I'm getting an error: 
> "Can't set SO_REUSEPORT option on dhcp socket: Protocol not available" 
> and the ISC-DHCP dhcpd process terminates.
> 
> Running the same binary on a System with a newer kernel (3.11) works
> flawlessly.
> 
> According to this article -> http://lwn.net/Articles/542629/
> "SO_REUSEPORT" has been introduced into Linux with kernel version 3.9. 
> 
> When I change the source code that prints out the above error from
> "log_fatal" to "log_error" in common/socket.c, line 227, the ISC-DHCP
> Server seem to work just fine on older Linux kernel.

The executable should only enter that part of the code if SO_REUSEPORT
is defined. Are you sure you compiled the binary on the kernel 3.9
machine that you're executing it on?

-- 
Peter




More information about the dhcp-users mailing list