From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=203.199.198.232; helo=imsva.in.megatrends.com; envelope-from=sivaramann@amiindia.co.in; receiver=edk2-devel@lists.01.org Received: from IMSVA.IN.MEGATRENDS.COM (Webmail.amiindia.co.in [203.199.198.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DE531210E3DC7 for ; Thu, 9 Aug 2018 04:09:10 -0700 (PDT) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 94BB782047; Thu, 9 Aug 2018 16:43:38 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7DC9A82046; Thu, 9 Aug 2018 16:43:38 +0530 (IST) Received: from webmail.amiindia.co.in (venus1.in.megatrends.com [10.0.0.5]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS; Thu, 9 Aug 2018 16:43:38 +0530 (IST) Received: from VENUS2.in.megatrends.com ([fe80::2002:4a07:4f17:c09b]) by VENUS1.in.megatrends.com ([fe80::951:7975:6ecf:eae5%14]) with mapi id 14.01.0438.000; Thu, 9 Aug 2018 16:39:06 +0530 From: Sivaraman Nainar To: "Wu, Jiaxin" , "Ye, Ting" , Laszlo Ersek , "edk2-devel@lists.01.org" Thread-Topic: [edk2] reg: HTTP Request Failure over Internet Thread-Index: AdQjRfAWnSCx4+HvRV6Kq9SvrqNFLf//hc4A//41h0D//FOIIP/vwuJA/9it8vD/rlR1cP9XvXRw Date: Thu, 9 Aug 2018 11:09:06 +0000 Message-ID: References: <895558F6EA4E3B41AC93A00D163B727416479D8A@SHSMSX103.ccr.corp.intel.com> <895558F6EA4E3B41AC93A00D163B72741647B49D@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <895558F6EA4E3B41AC93A00D163B72741647B49D@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.84.81] MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1817-8.2.0.1013-24020.006 X-TM-AS-Result: No--39.924-5.0-31-10 X-imss-scan-details: No--39.924-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1817-8.2.1013-24020.006 X-TMASE-Result: 10--39.924100-10.000000 X-TMASE-MatchedRID: EMyCvCfVN1HYfPOPCpnfAqLL4SGBhbizNjuRIfuOU0cTGmw62ZQHqXAW uORm0TIaRV3Jvwv5IonRi4mCIuNUJouwrNxN91/04pdq9sdj8LV4l6XHn8eFliDbJV2PcsBE9WI L8b6fvolbHAuWwt+omI3m80bDJnUooX9PPX0lKYTaize54oCwVHN3sLsG0mhuKhY4DqRiVzklAc 9fLumqhu1CGOxU0BKta5DtGjiUetxAXbiRmn1bD8e31VQ+6yRGhOpaviu47YccVJCT3tVganmd+ 25VkQszME6hFHxBIaZx/Hv6BudnAm7vEKjEI8Lysyw+ZJnFumRuTe9VGO3qvDb9TB28Ubkinoid p36XZFH3NoUOIWAhehRwtLaqYhp8fD+2lpv0nRotMfCdg6KRDRb6RqpiFT/z7VQEPYPezjJi6SC EE/sSJlzULgF4E7EdLoCXC3zpOm/BXlkPaxAt1cu00lnG8+PWB5sxzt03wPjPEefGnUGXGgm2Bz XzjslFRCHhNG7PKfRXReVFmeRD53gQ7j04K+UlHPCema1j/6t9LQinZ4QefKbyPFGTn+O4HOFi+ SY3fPCNo+PRbWqfRJBlLa6MK1y4 X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0 Subject: Re: reg: HTTP Request Failure over Internet X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2018 11:09:11 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Jiaxin, There is no firewall blocking this. The gateway and Remote IP is accessible= from shell. Thanks Siva -----Original Message----- From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com]=20 Sent: Monday, August 6, 2018 1:35 PM To: Sivaraman Nainar; Ye, Ting; Laszlo Ersek; edk2-devel@lists.01.org Subject: RE: [edk2] reg: HTTP Request Failure over Internet Is there any proxy or firewall block the connection? Once you set the stati= c Ip4Gateway via ifconfig shell command, please try to ping the gateway/rem= ote address to check the connection. Thanks, Jiaxin > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of=20 > Sivaraman Nainar > Sent: Saturday, August 4, 2018 5:46 PM > To: Wu, Jiaxin ; Ye, Ting ;=20 > Laszlo Ersek ; edk2-devel@lists.01.org > Subject: Re: [edk2] reg: HTTP Request Failure over Internet >=20 > Hello Jiaxin, >=20 > We have tried both the methods and both failed. Do you have any other=20 > recommendation? >=20 > -Siva > -----Original Message----- > From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com] > Sent: Tuesday, July 31, 2018 7:14 AM > To: Sivaraman Nainar; Ye, Ting; Laszlo Ersek; edk2-devel@lists.01.org > Subject: RE: [edk2] reg: HTTP Request Failure over Internet >=20 > Hi Siva, >=20 > Thanks the report. >=20 > From the code review, it does the problem for HTTP protocol to route=20 > the package over Internet. >=20 > But I'm confused with your patch that how can you get the RouterAddr=20 > since there is no interface for HTTP protocol to get the RouterAddr? >=20 > > + HttpInstance->Tcp4->Routes ( > > + HttpInstance->Tcp4, > > + FALSE, > > + &HttpInstance->RemoteAddr, > > + &Tcp4AP->SubnetMask, > > + &HttpInstance->RouterAddr > > + ); > > + >=20 > So, I prefer it's the UEFI Spec limitation that HTTP protocol doesn't=20 > provide us the interface to set the router info instead of setting it=20 > during HTTP configuration. To mitigate the issue, below two=20 > solution/workaround can be > tried: > 1) Ip4Config2 protocol can be leveraged by your HTTP application to=20 > register one valid Ip4Gateway into the default route table (just like=20 > HttpBootDxe -- HttpBootRegisterIp4Gateway()). The IP policy will route=20 > the packet by using the instance's route table first, if not found,=20 > the default route table will be tried. > 2) Set the static Ip4Gateway via ifconfig shell command. The=20 > Ip4Gateway address also will be set to default route table. >=20 > Thanks, > Jiaxin >=20 >=20 >=20 > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf=20 > > Of Sivaraman Nainar > > Sent: Wednesday, July 25, 2018 5:29 PM > > To: Ye, Ting ; Laszlo Ersek ; > > edk2- devel@lists.01.org > > Subject: Re: [edk2] reg: HTTP Request Failure over Internet > > > > Ting: > > > > Please find the patch for reference. > > > > Index: HttpProto.c > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > > =3D=3D=3D=3D=3D=3D=3D=3D=3D > > --- HttpProto.c > > +++ HttpProto.c > > @@ -622,12 +622,20 @@ > > Status =3D HttpInstance->Tcp4->Configure (HttpInstance->Tcp4, > Tcp4CfgData); > > if (EFI_ERROR (Status)) { > > DEBUG ((EFI_D_ERROR, "HttpConfigureTcp4 - %r\n", Status)); > > return Status; > > } > > > > + HttpInstance->Tcp4->Routes ( > > + HttpInstance->Tcp4, > > + FALSE, > > + &HttpInstance->RemoteAddr, > > + &Tcp4AP->SubnetMask, > > + &HttpInstance->RouterAddr > > + ); > > + > > Status =3D HttpCreateTcp4ConnCloseEvent (HttpInstance); > > if (EFI_ERROR (Status)) { > > return Status; > > } > > > > Status =3D HttpCreateTcp4TxEvent (Wrap); > > > > -Siva > > -----Original Message----- > > From: Ye, Ting [mailto:ting.ye@intel.com] > > Sent: Wednesday, July 25, 2018 1:36 PM > > To: Laszlo Ersek; Sivaraman Nainar; edk2-devel@lists.01.org > > Subject: RE: [edk2] reg: HTTP Request Failure over Internet > > > > Hi Siva, > > > > I didn't receive your patch either. Thanks for reporting the issue,=20 > > we will try to reproduce it firstly. > > > > Thanks, > > Ting > > > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf=20 > > Of Laszlo Ersek > > Sent: Tuesday, July 24, 2018 8:43 PM > > To: Sivaraman Nainar ;=20 > > edk2-devel@lists.01.org > > Subject: Re: [edk2] reg: HTTP Request Failure over Internet > > > > On 07/24/18 14:05, Sivaraman Nainar wrote: > > > Hello all, > > > > > > When an application tried to download the remote file over=20 > > > internet with > > the HTTP Get Request it getting failed. If we try via the Intranet=20 > > then application downloads the target file. > > > > > > The remote file is available in the Apache server. With the=20 > > > attached patch > > the download works fine in Internet and Intranet. > > > > > > Could you review the solution and feedback? > > > > The edk2-devel list software does not reflect attachments to subscriber= s. > > > > While I disagree with that practice in general -- it breaks=20 > > conversations where people justifiedly post small attachments, such=20 > > as PNG screenshots, compressed log files and such --, for posting=20 > > patches specifically, please use git-format-patch and=20 > > git-send-email. The patch should be in the body of the email (please=20 > > do not copy&paste the patch though; that is guaranteed not to work -- p= lease use the git tools). > > > > Official guidelines: > > > > https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Develop > > me > > nt- > > Process > > > > Personal ones from yours truly: > > > > https://github.com/tianocore/tianocore.github.io/wiki/Laszlo's-unkem > > pt > > -git- guide-for-edk2-contributors-and-maintainers > > > > Thanks, > > Laszlo > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel