public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* IP4 Config Troubles with DHCP
@ 2016-08-10 18:13 Cohen, Eugene
  2016-08-11  6:57 ` FW: " Wu, Jiaxin
  0 siblings, 1 reply; 10+ messages in thread
From: Cohen, Eugene @ 2016-08-10 18:13 UTC (permalink / raw)
  To: edk2-devel@lists.01.org, Wu, Jiaxin

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 is FALSE) the configure process will never succeed.

We have a case where we attempt to invoke the UDP4 Configure:

Status = 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 Mtftp4GetMapping) - this has worked for many years but recently something broke this.   Now, even when DHCP succeeds the Ip4Mode.IsConfigured flag is set to FALSE.  

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 ridiculously 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 case where the DHCP process is not yet complete and wants to wait?

Thanks,

Eugene





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-08-16 19:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-10 18:13 IP4 Config Troubles with DHCP Cohen, Eugene
2016-08-11  6:57 ` FW: " Wu, Jiaxin
2016-08-11 14:31   ` Cohen, Eugene
2016-08-12  0:19     ` Wu, Jiaxin
2016-08-12  8:27     ` Wu, Jiaxin
2016-08-12 12:34       ` Cohen, Eugene
2016-08-13  7:51         ` Wu, Jiaxin
2016-08-15 14:10   ` Cohen, Eugene
2016-08-16  1:27     ` Wu, Jiaxin
2016-08-16 19:44       ` Cohen, Eugene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox