mirror of
https://github.com/espressif/openthread.git
synced 2026-08-13 22:27:47 +00:00
DHCP: implement simple Server/Client (solicit/reply) (#884)
* DHCP implementation - implementation Dhcp client/server (solicit/reply) - two build options --enable-dhcp6-server --enable-dhcp6-client (default disable) - add Cert_5_3_09_AddressQuery for Dhcp Client/Server test in travis
This commit is contained in:
+5
-1
@@ -45,6 +45,7 @@
|
||||
#include <cli/cli_server.hpp>
|
||||
#include <net/icmp6.hpp>
|
||||
#include <common/timer.hpp>
|
||||
#include <dhcp6/dhcp6_client.h>
|
||||
|
||||
namespace Thread {
|
||||
|
||||
@@ -234,7 +235,10 @@ private:
|
||||
uint32_t sInterval;
|
||||
Timer sPingTimer;
|
||||
|
||||
otNetifAddress mAutoAddresses[kMaxAutoAddresses];
|
||||
otNetifAddress mSlaacAddresses[OPENTHREAD_CONFIG_NUM_SLAAC_ADDRESSES];
|
||||
#if OPENTHREAD_ENABLE_DHCP6_CLIENT
|
||||
otNetifAddress mDhcpAddresses[OPENTHREAD_CONFIG_NUM_DHCP_PREFIXES];
|
||||
#endif // OPENTHREAD_ENABLE_DHCP6_CLIENT
|
||||
|
||||
otInstance *mInstance;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user