Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1iMpq8-0006kj-6Z for mharc-grub-devel@gnu.org; Tue, 22 Oct 2019 04:48:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48853) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMpq6-0006jS-HP for grub-devel@gnu.org; Tue, 22 Oct 2019 04:48:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMpq5-0004rY-Hr for grub-devel@gnu.org; Tue, 22 Oct 2019 04:48:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48906) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iMpq5-0004rO-CW for grub-devel@gnu.org; Tue, 22 Oct 2019 04:48:25 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7552485365 for ; Tue, 22 Oct 2019 08:48:24 +0000 (UTC) Received: by mail-wr1-f70.google.com with SMTP id 7so8836334wrl.2 for ; Tue, 22 Oct 2019 01:48:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2OjaIe2TmDjCv3epilLm7abYjzBV03XIN5QzP0DWFXM=; b=ILlQ8agDj7naU0GV6/5k12SElMl4b0XJgBv1iPOXSypwnrVY8Rqn4XIiAFVtZu16TB oDt1uScuQDxrEt4i3dZjcEk1pA+2OMYUm9pM6ulJtqkutpVBexqKFWzSaYi5qgML8vNr 4NQYptqGfAy7x3mpZLyEdjCSAF4ZKaSS8AkhebdxoC3BvqI5XrIjuuEsiV48VSR5YY1g tAze76nCEk9IXE6MThsjOVkFSJ/DHoPLFEVI4jxABHfvgopeXVJHJu47+767H5uYvLsC kyNzL1KSGhAw8b12P4154LZrASoJ0s9jY1xisul8r++DEN2d34m2ZlC36Hzh3Ym2iktq 2xcg== X-Gm-Message-State: APjAAAVTylnqLLCfRlDAwijxK62Ere9iaGrMQAx8OcnBdB/WYACl7X54 hPWCY7KuFiwOHr40iKcXWpA0Cy0YRbePrsbAAGFOcgxMNb0zNfpPuulHxOJ2LZ5WeWCw9OCYHs4 pkVh3j0vOnu8= X-Received: by 2002:a5d:6a03:: with SMTP id m3mr460616wru.90.1571734102725; Tue, 22 Oct 2019 01:48:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4ZU6USiU4R/q37qNAArsXVb8lxrw9IVoefjVNvf9oZZlz2KRR5K4ZsxfwJAuNJQHugBLaow== X-Received: by 2002:a5d:6a03:: with SMTP id m3mr460604wru.90.1571734102526; Tue, 22 Oct 2019 01:48:22 -0700 (PDT) Received: from minerva.redhat.com ([90.168.169.92]) by smtp.gmail.com with ESMTPSA id u1sm28276092wru.90.2019.10.22.01.48.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 01:48:21 -0700 (PDT) From: Javier Martinez Canillas To: grub-devel@gnu.org Cc: Vladimir Serbinenko , Daniel Kiper , Paulo Flabiano Smorigo , Javier Martinez Canillas Subject: [PATCH v3 2/5] net/dhcp: Consistently use hexadecimal numbers for options enum Date: Tue, 22 Oct 2019 10:48:11 +0200 Message-Id: <20191022084814.8071-3-javierm@redhat.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191022084814.8071-1-javierm@redhat.com> References: <20191022084814.8071-1-javierm@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Oct 2019 08:48:27 -0000 The bootp/dhcp options enum values are a mixture of hexadecimal and decim= al numbers. Change this to consistently use hexadecimal numbers for all valu= es. Suggested-by: Daniel Kiper Signed-off-by: Javier Martinez Canillas --- Changes in v3: - Add patch to cleanup bootp/dhcp options enum. Changes in v2: None include/grub/net.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/grub/net.h b/include/grub/net.h index 4a9069a1474..a6982990ab0 100644 --- a/include/grub/net.h +++ b/include/grub/net.h @@ -462,13 +462,13 @@ enum GRUB_NET_BOOTP_DOMAIN =3D 0x0f, GRUB_NET_BOOTP_ROOT_PATH =3D 0x11, GRUB_NET_BOOTP_EXTENSIONS_PATH =3D 0x12, - GRUB_NET_DHCP_REQUESTED_IP_ADDRESS =3D 50, - GRUB_NET_DHCP_OVERLOAD =3D 52, - GRUB_NET_DHCP_MESSAGE_TYPE =3D 53, - GRUB_NET_DHCP_SERVER_IDENTIFIER =3D 54, - GRUB_NET_DHCP_PARAMETER_REQUEST_LIST =3D 55, - GRUB_NET_DHCP_TFTP_SERVER_NAME =3D 66, - GRUB_NET_DHCP_BOOTFILE_NAME =3D 67, + GRUB_NET_DHCP_REQUESTED_IP_ADDRESS =3D 0x32, + GRUB_NET_DHCP_OVERLOAD =3D 0x34, + GRUB_NET_DHCP_MESSAGE_TYPE =3D 0x35, + GRUB_NET_DHCP_SERVER_IDENTIFIER =3D 0x36, + GRUB_NET_DHCP_PARAMETER_REQUEST_LIST =3D 0x37, + GRUB_NET_DHCP_TFTP_SERVER_NAME =3D 0x42, + GRUB_NET_DHCP_BOOTFILE_NAME =3D 0x43, GRUB_NET_BOOTP_END =3D 0xff }; =20 --=20 2.21.0