Re: [edk2] IP4 Config Troubles with DHCP

2016-08-16 Thread Wu, Jiaxin
Eugene, > > Yeah. When I was drafting the UDP APP to test the new fix, I found the > > same case you mentioned. We must issue another UDP Configure () to > > clean the previous state once the Ip4Mode.IsConfigured is TRUE. So, > > the above example is not accurate with my the current > >

Re: [edk2] IP4 Config Troubles with DHCP

2016-08-16 Thread Cohen, Eugene
Jiaxin, > Yeah. When I was drafting the UDP APP to test the new fix, I found the > same case you mentioned. We must issue another UDP Configure () to > clean the previous state once the Ip4Mode.IsConfigured is TRUE. So, > the above example is not accurate with my the current > implementation:(.

Re: [edk2] IP4 Config Troubles with DHCP

2016-08-15 Thread Wu, Jiaxin
> > Actually, you don't need to retry the UDP configuration loop according > > the Ip4Mode.IsConfigured flag. You are only recommended to set a timer > > to check the mapping status after the configuration: > > > > For example: > > Status = Nlc->Udp4->Configure(Nlc->Udp4, >UdpConfig); > > if

Re: [edk2] IP4 Config Troubles with DHCP

2016-08-15 Thread Cohen, Eugene
Jiaxin, > Actually, you don't need to retry the UDP configuration loop according > the Ip4Mode.IsConfigured flag. You are only recommended to set a > timer to check the mapping status after the configuration: > > For example: > Status = Nlc->Udp4->Configure(Nlc->Udp4, >UdpConfig); > if

Re: [edk2] IP4 Config Troubles with DHCP

2016-08-13 Thread Wu, Jiaxin
gt; Cohen, Eugene > Sent: Friday, August 12, 2016 8:35 PM > To: Wu, Jiaxin <jiaxin...@intel.com>; edk2-devel@lists.01.org > Subject: Re: [edk2] IP4 Config Troubles with DHCP > > > Eugene, > > > > I can reproduce the issue now. And root cause as below: > >

Re: [edk2] IP4 Config Troubles with DHCP

2016-08-12 Thread Cohen, Eugene
> Eugene, > > I can reproduce the issue now. And root cause as below: > > #1. Set policy to DHCP. > #2. If DHCP process is not complete yet, then run one App to invoke the > UDP4 Configure with "UseDefaultAddress = TRUE" (loop to keep calling > Udp4->Configure until Ip4Mode.IsConfigured changes

Re: [edk2] IP4 Config Troubles with DHCP

2016-08-11 Thread Wu, Jiaxin
Thanks Eugene, I will try to reproduce the issue and dig it out. Any process will inform you. Best Regards! Jiaxin > -Original Message- > From: Cohen, Eugene [mailto:eug...@hp.com] > Sent: Thursday, August 11, 2016 10:31 PM > To: Wu, Jiaxin ; edk2-devel@lists.01.org

[edk2] IP4 Config Troubles with DHCP

2016-08-10 Thread Cohen, Eugene
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 =