mirror of
https://github.com/espressif/openthread.git
synced 2026-07-08 13:20:25 +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:
+2
-2
@@ -748,8 +748,8 @@ ThreadError Interpreter::ProcessIpAddrAdd(int argc, char *argv[])
|
||||
|
||||
SuccessOrExit(error = otIp6AddressFromString(argv[0], &aAddress.mAddress));
|
||||
aAddress.mPrefixLength = 64;
|
||||
aAddress.mPreferredLifetime = 0xffffffff;
|
||||
aAddress.mValidLifetime = 0xffffffff;
|
||||
aAddress.mPreferred = true;
|
||||
aAddress.mValid = true;
|
||||
error = otAddUnicastAddress(mInstance, &aAddress);
|
||||
|
||||
exit:
|
||||
|
||||
Reference in New Issue
Block a user