Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Revision:
119:8e1a7805b801
Parent:
101:a677d8aee6dd
Child:
137:cf6e7db0e985
--- 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;
 
 }