From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Ys61m-0006lK-VF for mharc-grub-devel@gnu.org; Tue, 12 May 2015 04:59:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys61l-0006l7-6V for grub-devel@gnu.org; Tue, 12 May 2015 04:59:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ys61h-00078R-6i for grub-devel@gnu.org; Tue, 12 May 2015 04:59:01 -0400 Received: from mail-ob0-x22c.google.com ([2607:f8b0:4003:c01::22c]:32802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys61h-00077l-1S for grub-devel@gnu.org; Tue, 12 May 2015 04:58:57 -0400 Received: by obblk2 with SMTP id lk2so495355obb.0 for ; Tue, 12 May 2015 01:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id; bh=3aikh89Y0j7tq6y+EKgloHSlCSTaSjaW+9IXoDjvKKU=; b=yGPKcctH8Sfv8jAMo7MbUiS2ibwRxiF9u5J42l1A25bAPoFfvGvOhLEda4/LbFScgk HL45WjshWCmRGXFf4n/KFljO7XJjDqfXSKBX8Es3ULRF/pm7ACAIwmL4oEA1eBpDQlOT Xnx8/c8snT0lBwvqM4Fobdesu+Cuh9RpH44b9MHNE2d6GK4awXibqrSqAvXgp4X8gJpE y2qbeSwrJTUkLNbRLunaPJAv5GBGvg23o4R/Q7KZep10XLS3p8Ia3AEywZC3L1aBmThI J+CLrRyonqyE4SJ27Y9aVF1Gboj75V7Y5Odh65KBrUVh+8txWHmYWXLvWGgNMdu0cx84 KkqQ== X-Received: by 10.60.33.74 with SMTP id p10mr11287500oei.62.1431421136460; Tue, 12 May 2015 01:58:56 -0700 (PDT) Received: from localhost.localdomain (nat.nue.novell.com. [195.135.221.2]) by mx.google.com with ESMTPSA id z133sm10632273oif.14.2015.05.12.01.58.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 May 2015 01:58:55 -0700 (PDT) Sender: =?UTF-8?B?5by15paH6I+v?= From: Michael Chang To: grub-devel@gnu.org Subject: [PATCH v1] Support DHCPv6 and UEFI IPv6 PXE Date: Tue, 12 May 2015 16:49:47 +0800 Message-Id: <1431420590-7245-1-git-send-email-mchang@suse.com> X-Mailer: git-send-email 1.7.3.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22c X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2015 08:59:02 -0000 This patch set tries to make support of configuring IPv6 network interface through the DHCPv6 protocol. A new command, net_bootp6, is therefore introduced to serve the purpose. You can think it as DHCPv6/IPv6 version of the existing net_bootp command. In addition to that, the UEFI IPv6 PXE support can be easily done by sharing the same routine with net_bootp6 to parse DHCPv6 Reply packet cached in the firmware. changes in v1: - Added upper boundary check in find_dhcpv6_option - Fix memory leak and freeing NULL pointer - Improved error message logging to not get lost - Use grub_cpu_to_be16_compile_time for endianess conversion when appropriate - Removed grub_dhcpv6_dns_servers structure and use 16 bytes blocks - Avoud magic numbers and use more descriptive sizeof when populating netbuff - Move include/grub/efi/api.h to UEFI IPv6 PXE support patch - Document the net_bootp6 command