Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: ip6/icmp/ndp/ra.c
- Revision:
- 119:8e1a7805b801
- Parent:
- 101:a677d8aee6dd
- Child:
- 137:cf6e7db0e985
diff -r 067cb5bce7e3 -r 8e1a7805b801 ip6/icmp/ndp/ra.c
--- a/ip6/icmp/ndp/ra.c	Sat Jan 26 18:57:27 2019 +0000
+++ b/ip6/icmp/ndp/ra.c	Tue Jan 29 15:07:14 2019 +0000
@@ -48,7 +48,7 @@
     NdpHopLimit             = pHeader->hop;
     NdpManagedConfiguration = pHeader->mo & 0x80;
     NdpOtherConfiguration   = pHeader->mo & 0x40;
-    NdpLifetime = NetToHost16(pHeader->lifetime);
+    NdpSetLease  (NetToHost16(pHeader->lifetime)); //This resets the NdpElapsedTimer
     
     if (RaTrace)
     {
@@ -59,8 +59,6 @@
     }
     NdpDecodeOptions(pData, dataLength, NdpRouterMac, NULL);
     
-    NdpResetLife();
-    
     return DO_NOTHING;
 
 }