Message ID | 0d7f3d5b9104ca40d065c49f370846480525f040.1587059235.git.weeksd2@rpi.edu |
---|---|
State | New |
Headers | show
Return-Path: <petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4936Wf2WTmz9sWY for <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2020 04:02:38 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=rpi.edu Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4936Wd58xjzDqkS for <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2020 04:02:37 +1000 (AEST) X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=rpi.edu (client-ip=128.113.2.229; helo=smtp9.server.rpi.edu; envelope-from=weeksd2@rpi.edu; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=rpi.edu Received: from smtp9.server.rpi.edu (smtp9.server.rpi.edu [128.113.2.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4936Rw3RQmzDsGt for <petitboot@lists.ozlabs.org>; Fri, 17 Apr 2020 03:59:24 +1000 (AEST) Received: from smtp-auth1.server.rpi.edu (route.canit.rpi.edu [128.113.2.231]) by smtp9.server.rpi.edu (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id 03GHxKcZ116599 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <petitboot@lists.ozlabs.org>; Thu, 16 Apr 2020 13:59:20 -0400 Received: from smtp-auth1.server.rpi.edu (localhost [127.0.0.1]) by smtp-auth1.server.rpi.edu (Postfix) with ESMTP id 7DBEA580E6 for <petitboot@lists.ozlabs.org>; Thu, 16 Apr 2020 13:59:20 -0400 (EDT) Received: from dev.danweeks.net (cpe-74-70-107-6.nycap.res.rr.com [74.70.107.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: weeksd2) by smtp-auth1.server.rpi.edu (Postfix) with ESMTPSA id 5DFC7580E5 for <petitboot@lists.ozlabs.org>; Thu, 16 Apr 2020 13:59:20 -0400 (EDT) Date: Thu, 16 Apr 2020 13:59:18 -0400 From: "Daniel M. Weeks" <weeksd2@rpi.edu> To: petitboot@lists.ozlabs.org Subject: [PATCH 05/11] Parse GUIDs from NVRAM Message-ID: <0d7f3d5b9104ca40d065c49f370846480525f040.1587059235.git.weeksd2@rpi.edu> References: <cover.1587059234.git.weeksd2@rpi.edu> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <cover.1587059234.git.weeksd2@rpi.edu> X-Virus-Scanned: ClamAV using ClamSMTP X-Bayes-Prob: 0.0001 (Score 0, tokens from: outgoing, @@RPTN) X-Spam-Score: 0.00 () [Hold at 10.10] X-CanIt-Incident-Id: 022rtXkfE X-CanIt-Geo: ip=74.70.107.6; country=US; region=New York; city=Troy; latitude=42.7273; longitude=-73.6696; http://maps.google.com/maps?q=42.7273,-73.6696&z=6 X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.229 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development <petitboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/petitboot>, <mailto:petitboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/petitboot/> List-Post: <mailto:petitboot@lists.ozlabs.org> List-Help: <mailto:petitboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/petitboot>, <mailto:petitboot-request@lists.ozlabs.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" <petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
IB netboot 2/3: longer hwaddr/guid support
|
expand
|
diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c index 29f8003..a6e24fc 100644 --- a/discover/platform-powerpc.c +++ b/discover/platform-powerpc.c @@ -263,7 +263,7 @@ static int parse_hwaddr(struct interface_config *ifconf, char *str) { unsigned int i; - if (strlen(str) != strlen("00:00:00:00:00:00")) + if (strlen(str) > 3*MAX_HWADDR_SIZE-1) return -1; ifconf->hwaddr_len = strlen(str) / 3 + 1;
Parse any length hardware address from NVRAM, up to the maximum size of the buffer. Signed-off-by: Daniel M. Weeks <weeksd2@rpi.edu> --- discover/platform-powerpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)