* pxDuplicateNetworkBufferWithDescriptor
* pxUDPPayloadBuffer_to_NetworkBuffer NULL
* Add IPv4 Utils
* Add description for unit test and separate IP_Utils/IPv4_Utils
* usGenerateProtocolChecksum
* prvChecksumProtocolCalculate
* Add description of test cases
* pxUDPPayloadBuffer_to_NetworkBuffer & prvProcessNetworkDownEvent & usGenerateProtocolChecksum
* usGenerateProtocolChecksum
* Full coverage
* Remove dedundant include
* Code beautify
* IPv4_Utils full coverage
* Remove redundant include in IPv4_Utils unit test
* Fix IPv4 UT building
* Fix spelling.
* Add macro for minimum TCP offset.
* Fix doxygen
* Fix again
* Move Stub functions to _stubs.c and fix compile warning
* Update diffconfig UT
* Initial changes
* UT for vNDSendRouterSolicitation
* Remove unused/unreachable code
* Add UT for coverage
* 100% line coverage
* Enable test for RA
* Initialise values
* Update vDHCP_RATimerReload_Ignore to vDHCP_RATimerReload_ExpectAnyArgs
* Fix spell checker
* Use endpoint's DHCP timer.
* Add test case description
* Remove useless check in MACRO
* Add test cases for xNetworkTimer and xCalculateSleepTime
* vCheckNetworkTimers
* Remove redundant header files
* full coverage
* Code beautify
* Fix spelling
* Add network down test in prvIPTask
* Align IP test configurations
* Remove redundant define check
* Fix unit test cases
* Fix stubs in some UT
* Add test cases for DHCPv6 and backward compatible
* Add test cases for FreeRTOS_GetUDPPayloadBuffer_Multi IPv6
* Test case for FreeRTOS_IPInit_Multi
* FreeRTOS_ReleaseUDPPayloadBuffer
* FreeRTOS_GetEndPointConfiguration
* FreeRTOS_GetAddressConfiguration
* FreeRTOS_GetEndPointConfiguration
* FreeRTOS_SetEndPointConfiguration
* FreeRTOS_GetAddressConfiguration
* Fix UT
* eConsiderFrameForProcessing
* prvProcessIPPacket
* vReturnEthernetFrame
* FreeRTOS_GetIPAddress
* Move IPv4 test under IPv4.
* Move IPv4 unit test cases from IP folders to IPv4 folders.
* prvProcessIPPacket
* vReturnEthernetFrame
* FreeRTOS_GetIPAddress
* FreeRTOS_IsNetworkUp
* FreeRTOS_AllEndPointsUp
* uxIPHeaderSizeSocket
* IP coverage
* FreeRTOS_SetIPAddress
* FreeRTOS_GetGatewayAddress
* FreeRTOS_GetDNSServerAddress
* FreeRTOS_GetNetmask
* FreeRTOS_UpdateMACAddress
* FreeRTOS_GetMACAddress
* FreeRTOS_SetNetmask
* FreeRTOS_SetGatewayAddress
* FreeRTOS_GetUDPPayloadBuffer_Multi
* IP coverage
* Code beautify
* prvAllowIPPacketIPv4
* prvCheckIP4HeaderOptions
* Remove legacy ipLOCAL_IP_ADDRESS_POINTER
* Add descriptions for IP test cases
* Remove redundant includes in test files.
* Add test description for IPv4 unit test
* Remove unnecessary config change
* Code beautify.
* Spelling
* Fix UT
* Basic DHCPv6 UT framework.
* Add test cases for eGetDHCPv6State
* Add reset test case
* Add test cases for solicit happy path.
* Refine test flow
* Add test cases for advertise.
* Add final timeout & test case on waiting reply.
* Add DHCP address lease unit test case
* Add test case for socket creation failed.
* Disable debug print
* Fix coverage scan
* Add test cases for wrong msg type & transaction ID.
* Add more error handling case.
* Add test cases for prvIsOptionLengthValid
* Rename test case
* Add test case for prvDHCPv6_handleStatusCode
* Add test cases for vDHCPv6ProcessEndPoint_HandleReply
* Add test case for xDHCPv6ProcessEndPoint_HandleAdvertise
* Add test case for xDHCPv6ProcessEndPoint_HandleState
* Refine again.
* Refine again.
* Remove fall back function, not implemented for IPv6.
* Remove unnecessary check
* Add expect state mismatch test.
* Add test cases for create/close sockets.
* Add error handling and UT
* Ignore unknown sub-option.
* Add coverage for prvStateName
* Fix corner case for sub-option.
* Fix spelling & build
* Code beautify and remove unnecessary define
* Remove list_macros.h in DHCPv6 unit test.
* Add FreeRTOS_IPv6 unit test framework
* Add test cases for prvAllowIPPacketIPv6
* Add test cases for eHandleIPv6ExtensionHeaders
* Add test cases for IPv6 for first configuration
* AddIPv6 different configuration framework
* Add test cases for xCheckIPv6SizeFields
* FreeRTOS_Sockets_IPv6_utest setup and initial tests
* wip
* more tests till prv_ntop6_write_zeros
* adding more comments
* more unit tests
* covering all functions
* 100% UT coverage for IPv6_Sockets
* updating cmake file to includeew unit test and coverage
* fix formatting
* fix spell check
* fix review feedbacks
* fix review feedbacks
* DNS NBNS repaired and tested
* Worked on spelling and called crustify
* Changed parameter to xApplicationDNSQueryHook()
* unit test didn't like the new asserts
* Replaced another assert
* Unit test DNS_Parser.c
* And uncrustify
* One more change to unit-testing
* Spelling
* Added a cast to when calling xApplicationDNSQueryHook()
---------
Co-authored-by: ActoryOu <jay2002824@gmail.com>
* Add option length check.
* Check buffer boundary in option status code
* Reduce array size in prvDHCPv6_handleStatusCode.
* Cast structure type for xApplicationDHCPHook_Multi.
* Use IP_Address_t in DHCPMessage_IPv6_t and fix coverity.
---------
Co-authored-by: Monika Singh <108652024+moninom1@users.noreply.github.com>
* Correct GCC warnings
Corrects warnings with current GCC flags
for GCC 7.5.0. The only suppressed warning pertains
to function to object pointer conversion which is
required and common for socket callbacks.
* PR feedback
---------
Co-authored-by: Ubuntu <ubuntu@ip-10-0-137-67.ec2.internal>
Co-authored-by: Nikhil Kamath <110539926+amazonKamath@users.noreply.github.com>
* DHCPv6 repaired and tested
* More changes
* Added entries to lexicon.txt
* Ran uncrustify on tools/tcp_utilities
* Formatting STM32Fxx
* Uncrusitfy tcp_mem_stats.c
* Remove trailing space
* I didn't mean to update the tcp_utilities directory yet
* Changes after Actory's review
* Replaced tabs with spaces
* Fix spelling.
* Changed the application hook for IPv6 and set the correct IPv6 defaults when failed
* Add a macro as maximum send buffer size.
* Fix formatting & build test.
* Replace xApplicationDHCPHook with xApplicationDHCPHook_Multi.
* Fix comments for xDNSServers & uxDNSCount.
* Fix ApplicationDHCPHook_Multi parameters.
---------
Co-authored-by: ActoryOu <jay2002824@gmail.com>
Co-authored-by: ActoryOu <ousc@amazon.com>
* Check IPv6 packet length.
* Fix unused compile warnings.
* Move xCheckSizeFields to static function and fix unit test cases.
* Add minimum length check for IPv6 transport layer.
* Compare endpoint IP address in TCP.
* Replace ipLOCAL_IP_ADDRESS_POINTER with endpoint.
* Set ipLOCAL_IP_ADDRESS_POINTER in DHCP/network down events.
* Check endpoint in DNS_TreatNBNS.
* Fix MISRA.
* Remove DNS_Parser part.