From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0706.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe45::706]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id CD8971A1DF3 for ; Wed, 10 Aug 2016 11:13:54 -0700 (PDT) Received: from AT5PR84MB0291.NAMPRD84.PROD.OUTLOOK.COM (10.162.138.25) by AT5PR84MB0289.NAMPRD84.PROD.OUTLOOK.COM (10.162.138.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Wed, 10 Aug 2016 18:13:52 +0000 Received: from AT5PR84MB0291.NAMPRD84.PROD.OUTLOOK.COM ([10.162.138.25]) by AT5PR84MB0291.NAMPRD84.PROD.OUTLOOK.COM ([10.162.138.25]) with mapi id 15.01.0549.025; Wed, 10 Aug 2016 18:13:52 +0000 From: "Cohen, Eugene" To: "edk2-devel@lists.01.org" , "Wu, Jiaxin" Thread-Topic: IP4 Config Troubles with DHCP Thread-Index: AdHzLtnEw2gfDCBbQ1OtxXknLLKMhQ== Date: Wed, 10 Aug 2016 18:13:52 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=eugene@hp.com; x-originating-ip: [15.65.254.4] x-ms-office365-filtering-correlation-id: 4cdbd408-fc28-4969-b210-08d3c14a15c5 x-microsoft-exchange-diagnostics: 1; AT5PR84MB0289; 6:9vhuGdY1kJ6Pw4DKkYFUhtCTIJEXNuNwisfEB2f91HryLM5yMmpFlEBD99PovPwNu7q7+hjRHOh/En9omSuGi/obrkoxCnfPtGrc74KIF1WF3EbBQAcFhf0+3Rkermr8HKEw+AJSs2tKdFi6q8i/RvwYcgO0b20mQbiCKg96Zw3ieRKU/gdPdt7FWQ3iYqZirDpiADYCLWovIfBoDifOXneqyVhfaYn+cGYQOjeOBypVwkQsL/n5dhTL2zIwK228k4obCPHsUxwLOr5wr8+4B0ciAnkai/sbDVlhSKaAiSU=; 5:eRtdfeSgy7uJ/qecymYnummf58q34rJax3O8c/sZOKnpTVTfSGmp07Bso6g3wXwZLs+1um6+pW2Ra4U+jU8m6PCOe5WrdWg4INSo5qvP1pNhtN/k4pCctVkXxpv/eMP74DpaHJ6R+Lt9AXk4pZfDbg==; 24:VYhH5IR79KlmClIPmUbwlVMooHSIi4Fc0tiNorS7D77ptoDsY5XEwhFaunU5GlbXk5ulJhrMcPQ5nLFeUT/gOT47spN0N8l0SP/aRU/hEhU=; 7:JlAcUpOl5xhWdyWybi9FI0dZ7/3XGfkQuOJPjYiLWQHM6BMpY1aTdREb1J7NuhckDM47LsGK4TlnJbhBPFvLrbmNxtW+5/ereDA1qAyXVvnnaQ769NifT+JHZJckP5Vz9MD+R6p9iB0kWp+NJWr+nYrjKh255J/NG705PQz/xNBlOKAvbAWtMBvvMVEVron9xJ0KnPBXWm+6sdQwyshO4Q+VjiHvHUVdhQfLHQwR+AoNj2DZIzA5g01pwbdPx16U x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AT5PR84MB0289; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:AT5PR84MB0289; BCL:0; PCL:0; RULEID:; SRVR:AT5PR84MB0289; x-forefront-prvs: 0030839EEE x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(6602003)(199003)(189002)(74316002)(86362001)(189998001)(8936002)(9686002)(68736007)(87936001)(106356001)(2900100001)(107886002)(10400500002)(2501003)(586003)(33656002)(81166006)(7846002)(5001770100001)(77096005)(7736002)(7696003)(122556002)(305945005)(81156014)(8676002)(97736004)(101416001)(6116002)(102836003)(50986999)(3846002)(54356999)(11100500001)(5002640100001)(66066001)(229853001)(92566002)(2906002)(105586002)(3280700002)(99286002)(3660700001)(19627235001); DIR:OUT; SFP:1102; SCL:1; SRVR:AT5PR84MB0289; H:AT5PR84MB0291.NAMPRD84.PROD.OUTLOOK.COM; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: hp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: hp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2016 18:13:52.4308 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ca7981a2-785a-463d-b82a-3db87dfc3ce6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AT5PR84MB0289 Subject: IP4 Config Troubles with DHCP X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2016 18:13:55 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable We have been running into an issue when trying to configure an interface as= DHCP where if the DHCP process is not yet complete (Ip4Mode.IsConfigured i= s FALSE) the configure process will never succeed. We have a case where we attempt to invoke the UDP4 Configure: Status =3D Nlc->Udp4->Configure(Nlc->Udp4, &Nlc->UdpConfig); We had a retry loop where we keep calling Udp4->Configure until we finally = see Ip4Mode.IsConfigured go TRUE (similar to what you see in Mtftp4GetMappi= ng) - this has worked for many years but recently something broke this. N= ow, even when DHCP succeeds the Ip4Mode.IsConfigured flag is set to FALSE. = =20 Only if we retry by destroying and re-creating new service binding children= can we actually get this logic to succeed. This logic is getting ridiculo= usly complicated so I'm thinking there has to be a better way of doing this= . Do you have an example of specifically how a driver/app should handle the c= ase where the DHCP process is not yet complete and wants to wait? Thanks, Eugene