lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] DHCP.h need to include "lwip/prot/dhcp.h" ?


From: address@hidden
Subject: Re: [lwip-users] DHCP.h need to include "lwip/prot/dhcp.h" ?
Date: Fri, 8 Sep 2017 22:15:23 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

antonio wrote:
I have an application that requires including dhcp.h, however, since the
DHCP state messages are in prot/dhcp.h
I got a compile error..
" error: 'DHCP_STATE_BOUND' undeclared (first use in this function)
                  if (new_state == DHCP_STATE_BOUND) {"

when I included  "lwip/prot/dhcp.h"  the error was gone..

Maybe in the main repository, dhcp.h needs to include "lwip/prot/dhcp" ...

No. This change is on purpose. Having an application depend on the dhcp client's state is not really good design. The state defines are deliberately not part of the "public" API of dhcp.h any more. You're free of course to override this and include prot/dhcp.h in your application.

Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]