Return-Path:
Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13])
by mail.openembedded.org (Postfix) with ESMTP id AFFCB72F34
for ;
Thu, 2 Mar 2017 07:27:07 +0000 (UTC)
Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com
[147.11.189.40])
by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id v227R73k017469
(version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL)
for ;
Wed, 1 Mar 2017 23:27:08 -0800 (PST)
Received: from [128.224.162.243] (128.224.162.243) by ALA-HCA.corp.ad.wrs.com
(147.11.189.50) with Microsoft SMTP Server id 14.3.294.0;
Wed, 1 Mar 2017 23:27:07 -0800
To:
References: <1486622223-32848-1-git-send-email-li.zhou@windriver.com>
From: "Zhou, Li"
Message-ID: <95755540-5edb-833b-8944-7aaf404488af@windriver.com>
Date: Thu, 2 Mar 2017 15:26:54 +0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <1486622223-32848-1-git-send-email-li.zhou@windriver.com>
Subject: Re: [PATCH] dhcp: Add choice for "with ddns" and "no ddns".
X-BeenThere: openembedded-core@lists.openembedded.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Patches and discussions about the oe-core layer
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Thu, 02 Mar 2017 07:27:08 -0000
Content-Type: text/plain; charset="windows-1252"; format=flowed
Content-Transfer-Encoding: 7bit
Ping.
On 02/09/2017 02:37 PM, Li Zhou wrote:
> Disable DNS update functionality can solve this issue:
> dhcpd is listening on additional random ports.
> To meet different requests, add a choice in dhcp's bb file:
> "with ddns" version should add "ddns" to PACKAGECONFIG, and it is the
> default;
> "no ddns" version should set PACKAGECONFIG to be without "ddns".
>
> Signed-off-by: Li Zhou
> ---
> ...001-DDNS-disable-DNS-update-functionality.patch | 28 ++++++++++++++++++++++
> meta/recipes-connectivity/dhcp/dhcp_4.3.5.bb | 13 +++++++---
> 2 files changed, 38 insertions(+), 3 deletions(-)
> create mode 100644 meta/recipes-connectivity/dhcp/dhcp/0001-DDNS-disable-DNS-update-functionality.patch
>
> diff --git a/meta/recipes-connectivity/dhcp/dhcp/0001-DDNS-disable-DNS-update-functionality.patch b/meta/recipes-connectivity/dhcp/dhcp/0001-DDNS-disable-DNS-update-functionality.patch
> new file mode 100644
> index 0000000..881ca23
> --- /dev/null
> +++ b/meta/recipes-connectivity/dhcp/dhcp/0001-DDNS-disable-DNS-update-functionality.patch
> @@ -0,0 +1,28 @@
> +From 1d804738080d52c0977947c7271d2db49bd6f90d Mon Sep 17 00:00:00 2001
> +From: Li Zhou
> +Date: Wed, 8 Feb 2017 10:02:59 +0800
> +Subject: [PATCH] DDNS: disable DNS update functionality
> +
> +Upstream-Status: Inappropriate [configuration]
> +
> +Signed-off-by: Li Zhou
> +---
> + includes/site.h | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/includes/site.h b/includes/site.h
> +index abb66e4..cefc12e 100644
> +--- a/includes/site.h
> ++++ b/includes/site.h
> +@@ -121,7 +121,7 @@
> +
> + /* Define this if you want DNS update functionality to be available. */
> +
> +-#define NSUPDATE
> ++/* #define NSUPDATE */
> +
> + /* Define this if you want to enable the DHCP server attempting to
> + find a nameserver to use for DDNS updates. */
> +--
> +1.9.1
> +
> diff --git a/meta/recipes-connectivity/dhcp/dhcp_4.3.5.bb b/meta/recipes-connectivity/dhcp/dhcp_4.3.5.bb
> index 678c29a..764ae09 100644
> --- a/meta/recipes-connectivity/dhcp/dhcp_4.3.5.bb
> +++ b/meta/recipes-connectivity/dhcp/dhcp_4.3.5.bb
> @@ -1,5 +1,14 @@
> require dhcp.inc
>
> +# If don't want DNS update functionality to be available becauses dhcpd will
> +# be listening on additional random ports, please set PACKAGECONFIG to be
> +# without ddns.
> +PACKAGECONFIG ?= "ddns"
> +PACKAGECONFIG[ddns] = ",,,"
> +PACKAGECONFIG[bind-httpstats] = "--with-libxml2,--without-libxml2,libxml2"
> +
> +SITE_H_PATCH = "${@bb.utils.contains('PACKAGECONFIG', 'ddns', '', 'file://0001-DDNS-disable-DNS-update-functionality.patch', d)}"
> +
> SRC_URI += "file://dhcp-3.0.3-dhclient-dbus.patch;striplevel=0 \
> file://link-with-lcrypto.patch \
> file://fixsepbuild.patch \
> @@ -9,10 +18,8 @@ SRC_URI += "file://dhcp-3.0.3-dhclient-dbus.patch;striplevel=0 \
> file://libxml2-configure-argument.patch \
> file://tweak-to-support-external-bind.patch \
> file://remove-dhclient-script-bash-dependency.patch \
> + ${SITE_H_PATCH} \
> "
>
> SRC_URI[md5sum] = "2b5e5b2fa31c2e27e487039d86f83d3f"
> SRC_URI[sha256sum] = "eb95936bf15d2393c55dd505bc527d1d4408289cec5a9fa8abb99f7577e7f954"
> -
> -PACKAGECONFIG ?= ""
> -PACKAGECONFIG[bind-httpstats] = "--with-libxml2,--without-libxml2,libxml2"
--
Best Regards!
Zhou Li
Phone number: 86-10-84778511