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 02F1321962301 for ; Mon, 13 Aug 2018 02:03:52 -0700 (PDT) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2ACA882047; Mon, 13 Aug 2018 14:38:22 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1463082046; Mon, 13 Aug 2018 14:38:22 +0530 (IST) Received: from webmail.amiindia.co.in (venus1.in.megatrends.com [10.0.0.5]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS; Mon, 13 Aug 2018 14:38:22 +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; Mon, 13 Aug 2018 14:33:49 +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/q6YFcD9V+zIQA== Date: Mon, 13 Aug 2018 09:03:49 +0000 Message-ID: References: <895558F6EA4E3B41AC93A00D163B727416479D8A@SHSMSX103.ccr.corp.intel.com> <895558F6EA4E3B41AC93A00D163B72741647B49D@SHSMSX103.ccr.corp.intel.com> <895558F6EA4E3B41AC93A00D163B727416489CBF@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <895558F6EA4E3B41AC93A00D163B727416489CBF@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-24028.006 X-TM-AS-Result: No--42.777-5.0-31-10 X-imss-scan-details: No--42.777-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1817-8.2.1013-24028.006 X-TMASE-Result: 10--42.776700-10.000000 X-TMASE-MatchedRID: x2HXvaraFokJkGXJpTkmgUraSPuPii4ANjuRIfuOU0cTGmw62ZQHqXAW uORm0TIaRV3Jvwv5IonRi4mCIuNUJgEPJSU5uWO/dAg4yd14qAS4vBuE2X0HlYrVCk5dmxbqjY8 3rbtfmc1pLvBhzkOWmvkK6UisUa6Ooayr11+eKrnx5KZMlKYS/Slj52CeQMtqWltirZ/iPP5S8I Xnn7Cg5d8pD4O2VCsYXRVJlqDPPuF4+z8LHUMl3ZpWgCLYjjT92D/7bUIJlF3dtXorH8YJ0SUBz 18u6aqGiI9g6JBc05OKMFGuL/CzIeMqxRGeJcWtlUgQqGVMqmw026H7nOZLrxL6MU7t349bPpmS 7h7CnDo8noX7PDvCLDryc/h2dYIRi56y2nMsBU8Cg1rav4R3DSDQvhfLY4eVayjbe4qUImOJ1eB Som+0i/iV5nyD7/AaaqBeAiBA+7m12rvYCp8d3e0/o+/4D7DzELbqrOgWzydVaiL9Jo7jBlzmbZ mEF1O43tlvPmiZKm6KE/uQTmGLXGfXF3RG4quA2x/FmlC/aozlPUem/J5c5Cxfh0kL+Aj+2c516 rvzqrt7R0eHcggnQwXOZdORTuqrGAdnzrnkM4/+xOhjarOnHrQQj0i/vAzl1GcRAJRT6POOhzOa 6g8KrZRMZUCEHkRt 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: Mon, 13 Aug 2018 09:03:53 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Jiaxin, With the recommended workaround #1 we can able to make HTTP Requests. Thanks Siva -----Original Message----- From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com]=20 Sent: Friday, August 10, 2018 7:03 AM To: Sivaraman Nainar; Ye, Ting; Laszlo Ersek; edk2-devel@lists.01.org Subject: RE: [edk2] reg: HTTP Request Failure over Internet Hi Siva, Since the gateway and Remote IP is accessible from shell, it means the plat= form already has the valid gateway, then according the IP policy, it should= be ready for the upper layer to access the Internet, UEFI HttpBootDxe driv= er has verified that by registering one valid gateway. So, the problem is q= uite possibly in your Http application. My suggestion is that you can check= the source code and compare with the logic in the HttpBootDxe driver or yo= u need share the source code to me if possible. Thanks, Jiaxin =20 > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of=20 > Sivaraman Nainar > Sent: Thursday, August 9, 2018 7:09 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 > There is no firewall blocking this. The gateway and Remote IP is=20 > accessible from shell. >=20 > Thanks > Siva > -----Original Message----- > From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com] > 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 >=20 > Is there any proxy or firewall block the connection? Once you set the=20 > static Ip4Gateway via ifconfig shell command, please try to ping the=20 > gateway/remote address to check the connection. >=20 > Thanks, > Jiaxin >=20 >=20 > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf=20 > > Of 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 > > > > Hello Jiaxin, > > > > We have tried both the methods and both failed. Do you have any=20 > > other recommendation? > > > > -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;=20 > > edk2-devel@lists.01.org > > Subject: RE: [edk2] reg: HTTP Request Failure over Internet > > > > Hi Siva, > > > > Thanks the report. > > > > From the code review, it does the problem for HTTP protocol to route=20 > > the package over Internet. > > > > 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? > > > > > + HttpInstance->Tcp4->Routes ( > > > + HttpInstance->Tcp4, > > > + FALSE, > > > + &HttpInstance->RemoteAddr, > > > + &Tcp4AP->SubnetMask, > > > + &HttpInstance->RouterAddr > > > + ); > > > + > > > > So, I prefer it's the UEFI Spec limitation that HTTP protocol=20 > > doesn't provide us the interface to set the router info instead of=20 > > setting it during HTTP configuration. To mitigate the issue, below=20 > > two 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=20 > > like HttpBootDxe -- HttpBootRegisterIp4Gateway()). The IP policy=20 > > will route the packet by using the instance's route table first, if=20 > > not found, 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. > > > > Thanks, > > Jiaxin > > > > > > > > > -----Original Message----- > > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On=20 > > > Behalf Of Sivaraman Nainar > > > Sent: Wednesday, July 25, 2018 5:29 PM > > > To: Ye, Ting ; Laszlo Ersek=20 > > > ; > > > 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=20 > > > issue, we will try to reproduce it firstly. > > > > > > Thanks, > > > Ting > > > > > > -----Original Message----- > > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On=20 > > > Behalf 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 subscrib= ers. > > > > > > While I disagree with that practice in general -- it breaks=20 > > > conversations where people justifiedly post small attachments,=20 > > > such as PNG screenshots, compressed log files and such --, for=20 > > > posting patches specifically, please use git-format-patch and=20 > > > git-send-email. The patch should be in the body of the email=20 > > > (please do not copy&paste the patch though; that is guaranteed not=20 > > > to work -- > please use the git tools). > > > > > > Official guidelines: > > > > > > https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Devel > > > op > > > me > > > nt- > > > Process > > > > > > Personal ones from yours truly: > > > > > > https://github.com/tianocore/tianocore.github.io/wiki/Laszlo's-unk > > > em > > > 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 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel