Home
last modified time | relevance | path

Searched refs:ulLeaseTime (Results 1 – 5 of 5) sorted by relevance

/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_DHCP/
DFreeRTOS_DHCP_utest.c3457 pxEndPoint->xDHCPData.ulLeaseTime = 0; in test_vDHCPProcess_eWaitingAcknowledgeTwoOptionsCorrectServerLeaseTimeZero()
3554 pxEndPoint->xDHCPData.ulLeaseTime = dhcpMINIMUM_LEASE_TIME - 10; in test_vDHCPProcess_eWaitingAcknowledgeTwoOptionsCorrectServerLeaseTimeLessThanMinConfig()
3583 TEST_ASSERT_EQUAL( dhcpMINIMUM_LEASE_TIME, pxEndPoint->xDHCPData.ulLeaseTime ); in test_vDHCPProcess_eWaitingAcknowledgeTwoOptionsCorrectServerLeaseTimeLessThanMinConfig()
3649 pxEndPoint->xDHCPData.ulLeaseTime = dhcpMINIMUM_LEASE_TIME + 10; in test_vDHCPProcess_eWaitingAcknowledge_TwoOptions_CorrectServer_AptLeaseTime()
3679 TEST_ASSERT_EQUAL( dhcpMINIMUM_LEASE_TIME + 10, pxEndPoint->xDHCPData.ulLeaseTime ); in test_vDHCPProcess_eWaitingAcknowledge_TwoOptions_CorrectServer_AptLeaseTime()
3745 pxEndPoint->xDHCPData.ulLeaseTime = dhcpMINIMUM_LEASE_TIME + 10; in test_vDHCPProcess_eWaitingAcknowledge_TwoOptions_NACK()
3830 pxEndPoint->xDHCPData.ulLeaseTime = dhcpMINIMUM_LEASE_TIME + 10; in test_vDHCPProcess_eWaitingAcknowledge_TwoOptions_OFFER()
3872 uint32_t ulLeaseTime = 0x00000096; /* 150 seconds */ in test_vDHCPProcess_eWaitingAcknowledge_AllOptionsCorrectLength() local
3933 *( ( uint32_t * ) &DHCPOption[ 2 ] ) = ulLeaseTime; in test_vDHCPProcess_eWaitingAcknowledge_AllOptionsCorrectLength()
3962 pxEndPoint->xDHCPData.ulLeaseTime = 0; in test_vDHCPProcess_eWaitingAcknowledge_AllOptionsCorrectLength()
[all …]
/FreeRTOS-Plus-TCP-v4.0.0/source/
DFreeRTOS_DHCP.c521 if( EP_DHCPData.ulLeaseTime == 0U ) in vHandleWaitingAcknowledge()
523 EP_DHCPData.ulLeaseTime = dhcpDEFAULT_LEASE_TIME; in vHandleWaitingAcknowledge()
525 else if( EP_DHCPData.ulLeaseTime < dhcpMINIMUM_LEASE_TIME ) in vHandleWaitingAcknowledge()
527 EP_DHCPData.ulLeaseTime = dhcpMINIMUM_LEASE_TIME; in vHandleWaitingAcknowledge()
536 … vDHCP_RATimerReload( ( struct xNetworkEndPoint * ) pxEndPoint, EP_DHCPData.ulLeaseTime ); in vHandleWaitingAcknowledge()
1088 if( pxSet->uxLength == sizeof( EP_DHCPData.ulLeaseTime ) ) in vProcessHandleOption()
1095 EP_DHCPData.ulLeaseTime = FreeRTOS_ntohl( pxSet->ulParameter ); in vProcessHandleOption()
1099 EP_DHCPData.ulLeaseTime >>= 1U; in vProcessHandleOption()
1102 … EP_DHCPData.ulLeaseTime = ( uint32_t ) configTICK_RATE_HZ * ( uint32_t ) EP_DHCPData.ulLeaseTime; in vProcessHandleOption()
1666 …EP_DHCPData.ulLeaseTime = dhcpDEFAULT_LEASE_TIME; /* don't care about lease time. just put anythi… in prvPrepareLinkLayerIPLookUp()
DFreeRTOS_DHCPv6.c501 if( EP_DHCPData.ulLeaseTime == 0U ) in vDHCPv6ProcessEndPoint_HandleReply()
503 EP_DHCPData.ulLeaseTime = dhcpv6DEFAULT_LEASE_TIME; in vDHCPv6ProcessEndPoint_HandleReply()
505 else if( EP_DHCPData.ulLeaseTime < dhcpv6MINIMUM_LEASE_TIME ) in vDHCPv6ProcessEndPoint_HandleReply()
507 EP_DHCPData.ulLeaseTime = dhcpv6MINIMUM_LEASE_TIME; in vDHCPv6ProcessEndPoint_HandleReply()
516 vDHCP_RATimerReload( ( struct xNetworkEndPoint * ) pxEndPoint, EP_DHCPData.ulLeaseTime ); in vDHCPv6ProcessEndPoint_HandleReply()
/FreeRTOS-Plus-TCP-v4.0.0/source/include/
DFreeRTOS_DHCP.h206 uint32_t ulLeaseTime; /**< The maximum time that the IP-address can be leased. */ member
/FreeRTOS-Plus-TCP-v4.0.0/test/unit-test/FreeRTOS_DHCPv6/
DFreeRTOS_DHCPv6_utest.c2787 xEndPoint.xDHCPData.ulLeaseTime = dhcpv6MINIMUM_LEASE_TIME - 1; in test_vDHCPv6Process_vDHCPv6ProcessEndPoint_HandleReply_ShortLeaseTime()
2832 xEndPoint.xDHCPData.ulLeaseTime = dhcpv6MINIMUM_LEASE_TIME + 1; in test_vDHCPv6Process_vDHCPv6ProcessEndPoint_HandleReply_CustomLeaseTime()