Hi Karunakar,

According the UEFI Spec, the Ip4Config2DataTypeManualAddress, 
Ip4Config2DataTypeGateway and Ip4Config2DataTypeDnsServer configuration data 
are not
allowed to set via SetData() if the policy is DHCP. So, the clear feature is 
only for the manual configuration. This is our design  purpose and also the 
reason why the feature is not apply to the 
Ip4Config2DataTypeInterfaceInfo/Ip4Config2DataTypePolicy.

Thanks,
Jiaxin


> -----Original Message-----
> From: edk2-devel [mailto:[email protected]] On Behalf Of
> Karunakar P
> Sent: Friday, September 15, 2017 5:41 PM
> To: '[email protected]' <[email protected]>
> Subject: Re: [edk2] Failed to clear configuration in Ip4Config2 Protocol
> 
> Hello All,
> 
> Could you please anyone provide comment on this?
> 
> Thank you,
> karunakar
> 
> From: Karunakar P
> Sent: Wednesday, September 13, 2017 7:04 PM
> To: '[email protected]'
> Subject: RE: RE: Failed to clear configuration in Ip4Config2 Protocol
> 
> Hello All,
> 
> I was trying to verify the feature "Allow SetData to clear configuration in
> Ip4Config2/Ip6Config Protocol" , But SetData returns with Write Protected
> Error Status
> 
> [Steps followed]
> 
> 1.       I've taken the above feature changes.
> 
> 2.       I've a UEFI test Application which call to SetData with DataSize is 
> 0 and
> Data is NULL
> 
>     Status = Ip4Cfg2->SetData (
> 
>                         Ip4Cfg2,
> 
>                         Ip4Config2DataTypeManualAddress,
> 
>                         0,
> 
>                         0
> 
>                         );
> 
> 3.       But SetData returns with Write Protected Error Status        // 
> Status =
> Write Protected
> 
> 4.        Faced the same error for setting Gateway & DnsServer
> 
> Guess the return is happening from
> Ip4Config2SetManualAddress() ->
> ...
>   if (Instance->Policy != Ip4Config2PolicyStatic) {
>     return EFI_WRITE_PROTECTED;
>   }
> ...
> 
> Could you please help on this whether am I missing anything or anything else
> need to be done to resolve this?
> 
> Thanks,
> karunakar
> 
> 
> From: Karunakar P
> Sent: Wednesday, September 13, 2017 7:00 PM
> To: [email protected]<mailto:[email protected]>
> Subject: RE: Failed to clear configuration in Ip4Config2 Protocol
> 
> Hello All,
> 
> I was trying to verify the feature "Allow SetData to clear configuration in
> Ip4Config2/Ip6Config Protocol" , But SetData returns with Write Protected
> Error Status
> 
> [Steps followed]
> 
> 1.       I've taken the above feature changes.
> 
> 2.       I've a UEFI test Application which call to SetData with DataSize is 
> 0 and
> Data is NULL
> 
>     Status = Ip4Cfg2->SetData (
> 
>                         Ip4Cfg2,
> 
>                         Ip4Config2DataTypeManualAddress,
> 
>                         0,
> 
>                         0
> 
>                         );
> 
> 3.       But SetData returns with Write Protected Error Status        // 
> Status =
> Write Protected
> 
> 4.        Faced the same error for setting Gateway &DnsServer
> 
> Guess the error is happening from
> 
> 
> Thanks,
> karunakar
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to