public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Re: Failed to clear configuration in Ip4Config2 Protocol
@ 2017-09-13 13:29 Karunakar P
  2017-09-13 13:33 ` Karunakar P
  0 siblings, 1 reply; 8+ messages in thread
From: Karunakar P @ 2017-09-13 13:29 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

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


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

* Re: Failed to clear configuration in Ip4Config2 Protocol
  2017-09-13 13:29 Failed to clear configuration in Ip4Config2 Protocol Karunakar P
@ 2017-09-13 13:33 ` Karunakar P
  2017-09-15  9:40   ` Karunakar P
  0 siblings, 1 reply; 8+ messages in thread
From: Karunakar P @ 2017-09-13 13:33 UTC (permalink / raw)
  To: 'edk2-devel@lists.01.org'

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: edk2-devel@lists.01.org
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


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

* Re: Failed to clear configuration in Ip4Config2 Protocol
  2017-09-13 13:33 ` Karunakar P
@ 2017-09-15  9:40   ` Karunakar P
  2017-09-18  2:16     ` Wu, Jiaxin
  0 siblings, 1 reply; 8+ messages in thread
From: Karunakar P @ 2017-09-15  9:40 UTC (permalink / raw)
  To: 'edk2-devel@lists.01.org'

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: 'edk2-devel@lists.01.org'
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: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
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


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

* Re: Failed to clear configuration in Ip4Config2 Protocol
  2017-09-15  9:40   ` Karunakar P
@ 2017-09-18  2:16     ` Wu, Jiaxin
  2017-09-18  4:22       ` Karunakar P
  0 siblings, 1 reply; 8+ messages in thread
From: Wu, Jiaxin @ 2017-09-18  2:16 UTC (permalink / raw)
  To: Karunakar P, 'edk2-devel@lists.01.org', Ye, Ting

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:edk2-devel-bounces@lists.01.org] On Behalf Of
> Karunakar P
> Sent: Friday, September 15, 2017 5:41 PM
> To: 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
> 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: 'edk2-devel@lists.01.org'
> 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: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> 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
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


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

* Re: Failed to clear configuration in Ip4Config2 Protocol
  2017-09-18  2:16     ` Wu, Jiaxin
@ 2017-09-18  4:22       ` Karunakar P
  2017-09-18  4:57         ` Wu, Jiaxin
  0 siblings, 1 reply; 8+ messages in thread
From: Karunakar P @ 2017-09-18  4:22 UTC (permalink / raw)
  To: 'Wu, Jiaxin', 'edk2-devel@lists.01.org', Ye, Ting

Hi Jiaxin,

Thank you very much for your info, Yes it works fine for manual configuration.

And also could you please provide steps to verify "Add DNS device path node" feature. 

Thanks,
karunakar

-----Original Message-----
From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com] 
Sent: Monday, September 18, 2017 7:46 AM
To: Karunakar P; 'edk2-devel@lists.01.org'; Ye, Ting
Subject: RE: [edk2] Failed to clear configuration in Ip4Config2 Protocol

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:edk2-devel-bounces@lists.01.org] On Behalf Of 
> Karunakar P
> Sent: Friday, September 15, 2017 5:41 PM
> To: 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
> 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: 'edk2-devel@lists.01.org'
> 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: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> 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
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


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

* Re: Failed to clear configuration in Ip4Config2 Protocol
  2017-09-18  4:22       ` Karunakar P
@ 2017-09-18  4:57         ` Wu, Jiaxin
  2017-09-19 10:52           ` Karunakar P
  0 siblings, 1 reply; 8+ messages in thread
From: Wu, Jiaxin @ 2017-09-18  4:57 UTC (permalink / raw)
  To: Karunakar P, 'edk2-devel@lists.01.org', Ye, Ting

Hi karunakar,

You can verify the DNS device path with HTTP boot feature. After the successful HTTP boot DNS parsing,  the device path should be like: //....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv4(...)[/Dns(...)]/Uri(...).

That is recommend way for the verification.

Besides, you can also draft the App to call  the DevPathFromTextDns and DevPathToTextDns libraries for the more verification.

Thanks,
Jiaxin
  

> -----Original Message-----
> From: Karunakar P [mailto:karunakarp@amiindia.co.in]
> Sent: Monday, September 18, 2017 12:22 PM
> To: Wu, Jiaxin <jiaxin.wu@intel.com>; 'edk2-devel@lists.01.org' <edk2-
> devel@lists.01.org>; Ye, Ting <ting.ye@intel.com>
> Subject: RE: [edk2] Failed to clear configuration in Ip4Config2 Protocol
> 
> Hi Jiaxin,
> 
> Thank you very much for your info, Yes it works fine for manual configuration.
> 
> And also could you please provide steps to verify "Add DNS device path
> node" feature.
> 
> Thanks,
> karunakar
> 
> -----Original Message-----
> From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com]
> Sent: Monday, September 18, 2017 7:46 AM
> To: Karunakar P; 'edk2-devel@lists.01.org'; Ye, Ting
> Subject: RE: [edk2] Failed to clear configuration in Ip4Config2 Protocol
> 
> 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:edk2-devel-bounces@lists.01.org] On Behalf Of
> > Karunakar P
> > Sent: Friday, September 15, 2017 5:41 PM
> > To: 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
> > 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: 'edk2-devel@lists.01.org'
> > 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: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> > 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
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel


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

* Re: Failed to clear configuration in Ip4Config2 Protocol
  2017-09-18  4:57         ` Wu, Jiaxin
@ 2017-09-19 10:52           ` Karunakar P
  2017-09-20  2:11             ` Wu, Jiaxin
  0 siblings, 1 reply; 8+ messages in thread
From: Karunakar P @ 2017-09-19 10:52 UTC (permalink / raw)
  To: 'Wu, Jiaxin', 'edk2-devel@lists.01.org', Ye, Ting

Hi Jiaxin,

Many thanks for your help.

After the successful HTTP boot DNS parsing, I can see the DNS Node, But it have bit difference form UEFI2.7 spec
//....../MAC(D8CB8ADEBBAA,0x0)/IPv4(0.0.0.0)/Dns(192.168.184.1)/Uri(https://www.cloudboot.com:443/EFI/Shell.efi)
//....../MAC(D8CB8ADEBBAA,0x0)/IPv6(2001:0DB8:0000:0001:0000:0000:0000:0001)/Dns(2001:0DB8:0000:0001:0000:0000:0000:0001)/Uri(https://www.cloudbootip6.com:443/EFI/Shell.efi)

I can see Only DNS Server IP address in DNS Node i.e. Dns(192.168.184.1)
But UEFI2.7 spec says(24.7.3.1 Device Path, page 1329) like below
Dns(192.168.22.100, 192.168.22.101) for IPv4
Dns(2016::100, 2016::101   for IPv6,  DNS node have DNS Server IP and some other IP address too.

Why I'm getting this difference, is there anything wrong or I'm I missing anything?  

Thanks,
Karunakar

-----Original Message-----
From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com] 
Sent: Monday, September 18, 2017 10:28 AM
To: Karunakar P; 'edk2-devel@lists.01.org'; Ye, Ting
Subject: RE: [edk2] Failed to clear configuration in Ip4Config2 Protocol

Hi karunakar,

You can verify the DNS device path with HTTP boot feature. After the successful HTTP boot DNS parsing,  the device path should be like: //....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv4(...)[/Dns(...)]/Uri(...).

That is recommend way for the verification.

Besides, you can also draft the App to call  the DevPathFromTextDns and DevPathToTextDns libraries for the more verification.

Thanks,
Jiaxin
  

> -----Original Message-----
> From: Karunakar P [mailto:karunakarp@amiindia.co.in]
> Sent: Monday, September 18, 2017 12:22 PM
> To: Wu, Jiaxin <jiaxin.wu@intel.com>; 'edk2-devel@lists.01.org' <edk2- 
> devel@lists.01.org>; Ye, Ting <ting.ye@intel.com>
> Subject: RE: [edk2] Failed to clear configuration in Ip4Config2 
> Protocol
> 
> Hi Jiaxin,
> 
> Thank you very much for your info, Yes it works fine for manual configuration.
> 
> And also could you please provide steps to verify "Add DNS device path 
> node" feature.
> 
> Thanks,
> karunakar
> 
> -----Original Message-----
> From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com]
> Sent: Monday, September 18, 2017 7:46 AM
> To: Karunakar P; 'edk2-devel@lists.01.org'; Ye, Ting
> Subject: RE: [edk2] Failed to clear configuration in Ip4Config2 
> Protocol
> 
> 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:edk2-devel-bounces@lists.01.org] On Behalf 
> > Of Karunakar P
> > Sent: Friday, September 15, 2017 5:41 PM
> > To: 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
> > 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: 'edk2-devel@lists.01.org'
> > 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: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> > 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
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel


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

* Re: Failed to clear configuration in Ip4Config2 Protocol
  2017-09-19 10:52           ` Karunakar P
@ 2017-09-20  2:11             ` Wu, Jiaxin
  0 siblings, 0 replies; 8+ messages in thread
From: Wu, Jiaxin @ 2017-09-20  2:11 UTC (permalink / raw)
  To: Karunakar P, 'edk2-devel@lists.01.org', Ye, Ting

Hi Karunakar,

DNS Device Path is used to list all the instances of the DNS server address. If there are multiple DNS server address reported from DHCP server, it will like the Spec example: Dns(192.168.22.100, 192.168.22.101). Here, according your DNS Node, there is only one DNS server returned from DHCP.

Thanks,
Jiaxin

> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> Karunakar P
> Sent: Tuesday, September 19, 2017 6:53 PM
> To: Wu, Jiaxin <jiaxin.wu@intel.com>; 'edk2-devel@lists.01.org' <edk2-
> devel@lists.01.org>; Ye, Ting <ting.ye@intel.com>
> Subject: Re: [edk2] Failed to clear configuration in Ip4Config2 Protocol
> 
> Hi Jiaxin,
> 
> Many thanks for your help.
> 
> After the successful HTTP boot DNS parsing, I can see the DNS Node, But it
> have bit difference form UEFI2.7 spec
> //....../MAC(D8CB8ADEBBAA,0x0)/IPv4(0.0.0.0)/Dns(192.168.184.1)/Uri(https
> ://www.cloudboot.com:443/EFI/Shell.efi)
> //....../MAC(D8CB8ADEBBAA,0x0)/IPv6(2001:0DB8:0000:0001:0000:0000:0000:
> 0001)/Dns(2001:0DB8:0000:0001:0000:0000:0000:0001)/Uri(https://www.clou
> dbootip6.com:443/EFI/Shell.efi)
> 
> I can see Only DNS Server IP address in DNS Node i.e. Dns(192.168.184.1)
> But UEFI2.7 spec says(24.7.3.1 Device Path, page 1329) like below
> Dns(192.168.22.100, 192.168.22.101) for IPv4
> Dns(2016::100, 2016::101   for IPv6,  DNS node have DNS Server IP and some
> other IP address too.
> 
> Why I'm getting this difference, is there anything wrong or I'm I missing
> anything?
> 
> Thanks,
> Karunakar
> 
> -----Original Message-----
> From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com]
> Sent: Monday, September 18, 2017 10:28 AM
> To: Karunakar P; 'edk2-devel@lists.01.org'; Ye, Ting
> Subject: RE: [edk2] Failed to clear configuration in Ip4Config2 Protocol
> 
> Hi karunakar,
> 
> You can verify the DNS device path with HTTP boot feature. After the
> successful HTTP boot DNS parsing,  the device path should be like:
> //....../Mac(...)[/Vlan(...)][/Wi-Fi(...)]/IPv4(...)[/Dns(...)]/Uri(...).
> 
> That is recommend way for the verification.
> 
> Besides, you can also draft the App to call  the DevPathFromTextDns and
> DevPathToTextDns libraries for the more verification.
> 
> Thanks,
> Jiaxin
> 
> 
> > -----Original Message-----
> > From: Karunakar P [mailto:karunakarp@amiindia.co.in]
> > Sent: Monday, September 18, 2017 12:22 PM
> > To: Wu, Jiaxin <jiaxin.wu@intel.com>; 'edk2-devel@lists.01.org' <edk2-
> > devel@lists.01.org>; Ye, Ting <ting.ye@intel.com>
> > Subject: RE: [edk2] Failed to clear configuration in Ip4Config2
> > Protocol
> >
> > Hi Jiaxin,
> >
> > Thank you very much for your info, Yes it works fine for manual
> configuration.
> >
> > And also could you please provide steps to verify "Add DNS device path
> > node" feature.
> >
> > Thanks,
> > karunakar
> >
> > -----Original Message-----
> > From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com]
> > Sent: Monday, September 18, 2017 7:46 AM
> > To: Karunakar P; 'edk2-devel@lists.01.org'; Ye, Ting
> > Subject: RE: [edk2] Failed to clear configuration in Ip4Config2
> > Protocol
> >
> > 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:edk2-devel-bounces@lists.01.org] On Behalf
> > > Of Karunakar P
> > > Sent: Friday, September 15, 2017 5:41 PM
> > > To: 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
> > > 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: 'edk2-devel@lists.01.org'
> > > 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: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> > > 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
> > > 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


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

end of thread, other threads:[~2017-09-20  2:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-13 13:29 Failed to clear configuration in Ip4Config2 Protocol Karunakar P
2017-09-13 13:33 ` Karunakar P
2017-09-15  9:40   ` Karunakar P
2017-09-18  2:16     ` Wu, Jiaxin
2017-09-18  4:22       ` Karunakar P
2017-09-18  4:57         ` Wu, Jiaxin
2017-09-19 10:52           ` Karunakar P
2017-09-20  2:11             ` Wu, Jiaxin

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