LWIP, DHCP option 66 supported?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LWIP, DHCP option 66 supported?

Jump to solution
1,691 Views
ping1
Contributor V

Dear All

I have a customer to require DHCP option 66 to be used after a IP address is allocated from DHCP server(router), aiming to receive some configuration messages from the router, I am not sure how to do this, is it supported by the lwip library?

I am using RT1024 & SDK 2.10.0.

Thank you!

Ping Wang

0 Kudos
Reply
1 Solution
1,642 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ping1 ,

   Thanks for your information!

   So, now it is working, right?

  I also get some internal reply:

From the owner of the lwip, I get this information:

The customer could add there own hook to parse the option, https://www.nongnu.org/lwip/2_1_x/group__lwip__opts__hooks.html#gafbbbc574863c0f88988936bd1434f2d2 , they can define a macro in the lwipopt.h to point the function.

 

Just for your reference.

If you still have questions about this case, just let me know.

If your question is solved, please help to mark the correct answer, just to close this case, thanks.

Any new issues, welcome to create the new case.

Best Regards,

kerry

View solution in original post

0 Kudos
Reply
5 Replies
1,672 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ping1 ,

   I am sure the RT10XX can support the DHCP in the LWIP.

  DHCP can be found in the SDK code:

SDK_2_13_0_MIMXRT1024-EVK\boards\evkmimxrt1024\lwip_examples

Which can be downloaded from this link:

https://mcuxpresso.nxp.com/en/builder?hw=MIMXRT1024-EVK

 

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

kerry

0 Kudos
Reply
1,667 Views
ping1
Contributor V

Thanks for reply, I am probably not make the question clear, I am asking DHCP option 66, which able to receive some configuration data from DHCP server when the IP setting is allocated to client. I think it should coming with dhcp->boot_file_name, with lwip option of LWIP_DHCP_BOOTP_FILE. 

I configured my DHCP server with some string, but my product(client) has not received anything when DHCP address is obtained. Not sure I understand this correctly.

Regards!

Ping

0 Kudos
Reply
1,649 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ping1 ,

   Your SDK version is old, please use the newest one:

https://mcuxpresso.nxp.com/en/builder?hw=MIMXRT1024-EVK

 

    About the DHCP option 66 support situation, I already help you to check it internally, any updated information, I will let you know.

   Please keep patient, thanks.

Best Regards,

kerry

0 Kudos
Reply
1,644 Views
ping1
Contributor V

Thank you, Kerry

I think it is option 67, a bit confusing anyway, and I put something on option 67, and received the string. so it is sorting of working.

Ping

0 Kudos
Reply
1,643 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ping1 ,

   Thanks for your information!

   So, now it is working, right?

  I also get some internal reply:

From the owner of the lwip, I get this information:

The customer could add there own hook to parse the option, https://www.nongnu.org/lwip/2_1_x/group__lwip__opts__hooks.html#gafbbbc574863c0f88988936bd1434f2d2 , they can define a macro in the lwipopt.h to point the function.

 

Just for your reference.

If you still have questions about this case, just let me know.

If your question is solved, please help to mark the correct answer, just to close this case, thanks.

Any new issues, welcome to create the new case.

Best Regards,

kerry

0 Kudos
Reply