mirror of
https://github.com/espressif/openthread.git
synced 2026-09-04 00:00:06 +00:00
Remove Preferred and Valid Lifetimes from otNetifAddress. (#1110)
- Replace Preferred and Valid Lifetimes with a flag. - Introduce new otDhcpAddress type for maintaining Preferred and Valid Lifetimes. - Reduces RAM usage by 128 bytes.
This commit is contained in:
+1
-1
@@ -248,7 +248,7 @@ private:
|
||||
|
||||
otNetifAddress mSlaacAddresses[OPENTHREAD_CONFIG_NUM_SLAAC_ADDRESSES];
|
||||
#if OPENTHREAD_ENABLE_DHCP6_CLIENT
|
||||
otNetifAddress mDhcpAddresses[OPENTHREAD_CONFIG_NUM_DHCP_PREFIXES];
|
||||
otDhcpAddress mDhcpAddresses[OPENTHREAD_CONFIG_NUM_DHCP_PREFIXES];
|
||||
#endif // OPENTHREAD_ENABLE_DHCP6_CLIENT
|
||||
|
||||
otInstance *mInstance;
|
||||
|
||||
Reference in New Issue
Block a user