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:
Jonathan Hui
2017-01-04 13:37:25 -08:00
committed by GitHub
parent 85ee5e6493
commit d61b878d34
17 changed files with 90 additions and 66 deletions
+1 -1
View File
@@ -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;