From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [14.98.235.2]) by mx.groups.io with SMTP id smtpd.web08.2824.1607495783858731074 for ; Tue, 08 Dec 2020 22:36:24 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=SPF record not found (domain: amiindia.co.in, ip: 14.98.235.2, mailfrom: sivaramann@amiindia.co.in) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A0C1782047; Wed, 9 Dec 2020 12:15:42 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4B59E82046; Wed, 9 Dec 2020 12:15:42 +0530 (IST) Received: from webmail.amiindia.co.in (venus1.in.megatrends.com [10.0.0.5]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS; Wed, 9 Dec 2020 12:15:42 +0530 (IST) Received: from VENUS1.in.megatrends.com ([fe80::951:7975:6ecf:eae5]) by VENUS1.in.megatrends.com ([::1]) with mapi id 14.01.0438.000; Wed, 9 Dec 2020 12:06:18 +0530 From: "Sivaraman Nainar" To: "devel@edk2.groups.io" , "Rabeda, Maciej" Subject: reg: [edk2-devel] [PATCH] Adding the MAC in the HTTP Boot Title Thread-Topic: reg: [edk2-devel] [PATCH] Adding the MAC in the HTTP Boot Title Thread-Index: AdbN9ZgMt+YsjZ/vS5yVY4/2vgKYkw== Date: Wed, 9 Dec 2020 06:36:17 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.3.115] MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1817-8.6.0.1013-25838.004 X-TM-AS-Result: No--18.881-5.0-31-10 X-imss-scan-details: No--18.881-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1817-8.6.1013-25838.004 X-TMASE-Result: 10--18.880800-10.000000 X-TMASE-MatchedRID: c3w2mcpA+Hf4miWUEaTQPn4neC0h7SAD3FYvKmZiVnP/SxGp1my2dhLs uBikYmTKdZ7fu9NDAa4S+yDvHl1a8SxppiUy9o4cA9lly13c/gGi8D/o42y/StWb/MXO2XdLWnU riKCYxGk22uoEm245flgUFTT7Y9QpYTZ2mX+nxwwbrq24GKfh0NoKfgOoKJc21xLW0OKX8iPIeA QugZMNBFtyNHRhmjtfAllRMNbKfG3a8AiR/nR5g8KVNVkgZd/IHiG5YR9Ep+kXM2Z1UyweuO2VV VLUIzQw2X0MdweWjLjQACPgtyOvxWU/kxuVGOMeaFAKyqG5M2LFxHThxfGLZrLLTvamG8BJo8WM kQWv6iXgT2zXYa9/nT3qzHKAhsUYIAcCikR3vq8ashxDWzQ2GUDRSvVESsOJbJ2aHKmJgm2ArFR YJa97KEedNaZqwukK X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_B4DE137BDB63634BAC03BD9DE765F19702E3D8C47BVENUS1inmegat_" --_000_B4DE137BDB63634BAC03BD9DE765F19702E3D8C47BVENUS1inmegat_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello all: Here with added the patch for displaying the MAC Address along with the HTT= P Boot Option Title. Please review and comment. --- NetworkPkg/HttpBootDxe/HttpBootConfig.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/NetworkPkg/HttpBootDxe/HttpBootConfig.c b/NetworkPkg/HttpBootD= xe/HttpBootConfig.c index 646c907b12..677d913a09 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootConfig.c +++ b/NetworkPkg/HttpBootDxe/HttpBootConfig.c @@ -629,6 +629,18 @@ HttpBootConfigFormInit ( NULL ); + OldMenuString =3D HiiGetString ( + CallbackInfo->RegisteredHandle, + STRING_TOKEN (STR_HTTP_BOOT_CONFIG_FORM_TITLE), + NULL + ); + UnicodeSPrint (MenuString, 128, L"MAC:%s-%s", MacString,OldMenuStr= ing); + HiiSetString ( + CallbackInfo->RegisteredHandle, + STRING_TOKEN (STR_HTTP_BOOT_CONFIG_FORM_TITLE), + MenuString, + NULL + ); FreePool (MacString); FreePool (OldMenuString); --_000_B4DE137BDB63634BAC03BD9DE765F19702E3D8C47BVENUS1inmegat_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello all:

 

Here with added the patch for displaying the MAC Add= ress along with the HTTP Boot Option Title. Please review and comment.=

 

---
 NetworkPkg/HttpBootDxe/HttpBootConfi= g.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)=

diff --git a/NetworkPkg/HttpBootDxe/HttpBo= otConfig.c b/NetworkPkg/HttpBootDxe/HttpBootConfig.c
index 646c907b12..677d913a09 100644=
--- a/NetworkPkg/HttpBootDxe/HttpBootConfi= g.c
+++ b/NetworkPkg/HttpBootDxe/H= ttpBootConfig.c
@@ -629,6 +629,18 @@ HttpBootConfigFor= mInit (
       NULL
       );

+    OldMenuString =3D HiiGe= tString (
+          &n= bsp;               CallbackInfo->Regi= steredHandle,
+          &n= bsp;               STRING_TOKEN (STR_HTT= P_BOOT_CONFIG_FORM_TITLE),
+          &n= bsp;               NULL
+          &n= bsp;               );
+        UnicodeSP= rint (MenuString, 128, L"MAC:%s-%s", MacString,OldMenuString);&nb= sp;    
+        HiiSetStr= ing (
+          Ca= llbackInfo->RegisteredHandle,
+          ST= RING_TOKEN (STR_HTTP_BOOT_CONFIG_FORM_TITLE),
+          Me= nuString,
+          NU= LL
+          );=
     FreePool (MacString);<= /span>
     FreePool (OldMenuStrin= g);

--_000_B4DE137BDB63634BAC03BD9DE765F19702E3D8C47BVENUS1inmegat_--