From patchwork Tue May 21 02:54:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Mendoza-Jonas X-Patchwork-Id: 1102496 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mendozajonas.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="EhyP3MHJ"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="IIh1XuFC"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 457L3119FNz9s55 for ; Tue, 21 May 2019 12:54:50 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 60AB18609C; Tue, 21 May 2019 02:54:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fb1y6P8vCl1X; Tue, 21 May 2019 02:54:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id A0F8086064; Tue, 21 May 2019 02:54:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 364A21BF345 for ; Tue, 21 May 2019 02:54:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 32DE9826E0 for ; Tue, 21 May 2019 02:54:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OXmkhzfN-6FB for ; Tue, 21 May 2019 02:54:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7D9BC86064 for ; Tue, 21 May 2019 02:54:45 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 3D2BF24384; Mon, 20 May 2019 22:54:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 20 May 2019 22:54:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= mendozajonas.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=fm3; bh=r4KDNLtQXk1Zy pJMlBMtu7Y6fi35j+SSHy2t7C8XfEE=; b=EhyP3MHJdt3JXhJLRW0S39nLsv8FN ShQ1VjwjNiRYE2R3Sq1jcpKxBB4gjrkveTpsnKijFz7JmWf3gOcus8Ecgi5ifK68 KZjwFvKtaj62nEKXbQJeNOOO2VAKNPQztHKp/UEankDW0uqz3vMfXqiGgxMJSvVo 9GRadhA9WykQHGdMbb9wcWjAnpLO5zwRQDUQBAdJJqs/nxIqYDpRo3pEY/0xPi7e F/86P+zlTKM+kExPmXpzwgHhk76x9WKymXHqOQl8y9APFF5Xu4M2A1t218oHo4FE FQsgLEnH1CyYAGu2Z9ABAqnYX3656NhlScC6Ml0womeXvbf/cMRUOR8VQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=r4KDNLtQXk1ZypJMl BMtu7Y6fi35j+SSHy2t7C8XfEE=; b=IIh1XuFCBhSumO8TzLSLbStZf6zVXixXA Pp9Kp+TBrY72SImbI+8XiiXTI7+dvgzZE7glw/mm4zatpzjs/ijiFbjZbdOvfiuf AVUpR9G7fLQkuZ+doAnn11AIR3AYUoMAZgkJmrfMGP/CE7mGGPRk8nksNQVO+ZoR 4uFMeDWyug+HkRCkjJzEtyD3zRcdotPNmvYwRuetYwEoecNCu3AHqGsvBLzX5AnE /p/gzVVX2bKXGhz+Jp1YISrswo8JvCqfux8+OIKl2qq8kcRQQGv8g8dPY2h5+fHP ANEEJOBzoWR0++ajmmDnpYe34hqYv1dFnHu3q3msGY8g4/7wihBdw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddtledgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepufgrmhhuvghlucfovghnughoiigrqdflohhnrghsuceoshgrmhes mhgvnhguohiirghjohhnrghsrdgtohhmqeenucfkphepuddvvddrleelrdekvddruddtne curfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmsehmvghnughoiigrjhhonhgrshdrtgho mhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from v4.ozlabs.ibm.com (unknown [122.99.82.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 418B78005B; Mon, 20 May 2019 22:54:42 -0400 (EDT) From: Samuel Mendoza-Jonas To: buildroot@buildroot.org Date: Tue, 21 May 2019 12:54:27 +1000 Message-Id: <20190521025428.9409-1-sam@mendozajonas.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v5 1/2] busybox: Update udhcpc.script for stateful DHCPv6 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Mendoza-Jonas , matthew.weber@collins.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" udhcpc6 will call the default script with the address set in the "ipv6" variable. Set "ip" to this address if present. Signed-off-by: Samuel Mendoza-Jonas --- v5: Split into two patches and added comment about stateful DHCPv6 package/busybox/udhcpc.script | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/busybox/udhcpc.script b/package/busybox/udhcpc.script index ad110d3a7f..90cc6b62ba 100755 --- a/package/busybox/udhcpc.script +++ b/package/busybox/udhcpc.script @@ -8,6 +8,8 @@ RESOLV_CONF="/etc/resolv.conf" [ -e $RESOLV_CONF ] || touch $RESOLV_CONF [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" [ -n "$subnet" ] && NETMASK="netmask $subnet" +# Busybox's udhcpc only supports stateful DHCPv6 for now +[ -n "$ipv6" ] && ip="$ipv6/128" case "$1" in deconfig)