Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.64.53]) by bugs.isc.org (Postfix) with ESMTP id 653D42D20571 for ; Thu, 20 Mar 2014 07:05:22 +0000 (UTC) Received: from mx.pao1.isc.org (localhost [127.0.0.1]) by mx.pao1.isc.org (Postfix) with ESMTP id 2AB22C94E8 for ; Thu, 20 Mar 2014 07:05:10 +0000 (UTC) (envelope-from carsten@strotmann.de) Received: from csgate3.strotmann.de (cstrotm-1-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:f1d::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx.pao1.isc.org (Postfix) with ESMTPS for ; Thu, 20 Mar 2014 07:05:09 +0000 (UTC) (envelope-from carsten@strotmann.de) Received: from raspidev.home.strotmann.de (unknown [212.255.246.127]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by csgate3.strotmann.de (Postfix) with ESMTPSA id 17C8350EC for ; Thu, 20 Mar 2014 08:05:06 +0100 (CET) Received: by raspidev.home.strotmann.de (Postfix, from userid 1001) id A434C7E64E; Thu, 20 Mar 2014 08:05:06 +0100 (CET) Delivered-To: dhcp-bugs@bugs.isc.org MIME-Version: 1.0 User-Agent: mu4e 0.9.9.5; emacs 24.3.2 Subject: use of SO_REUSEPORT for DHCPv6 in ISC-DHCP 4.3.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 Return-Path: X-Original-To: dhcp-bugs@bugs.isc.org Date: Thu, 20 Mar 2014 08:05:06 +0100 X-DCC--Metrics: post.isc.org 1102; Body=1 Fuz1=1 Fuz2=1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mx.pao1.isc.org content-type: text/plain; charset="utf-8" Message-ID: <86txatcpul.fsf@strotmann.de> To: dhcp-bugs@isc.org From: Carsten Strotmann X-RT-Original-Encoding: ascii Content-Length: 1117 Hello, when using ISC-DHCP 4.3.0 in DHCPv6 mode on a Linux system with kernel < 3.9, the process terminates with 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. This has been seen on Gentoo and RedHat EL 6.5/6.4. According to this article -> http://lwn.net/Articles/542629/[1] "SO_REUSEPORT" has been introduced into Linux with kernel version 3.9. However, the SO_REUSEPORT declartions has been added to the kernel include files around kernel 2.6.32 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. Maybe the code can be changed so that SO_REUSEPORT is being tested at runtime, and used if available. At least in my limited experience with 4.3.0 on Linux in a small production network, ignoring the SO_REUSEPORT error has no negative effects. -- Carsten Strotmann Email: cas@strotmann.de Blog: strotmann.de