* Add Unit Tests for coverage for FreeRTOS_DNS_Parser
* Fix CI errors
* Remove pxNewBuffer in TreatNBNS API
* [IPv6] Add Unit Test for FreeRTOS_Sockets & FreeRTOS_IPv4_Sockets. (#870)
* FreeRTOS_IPv4_Sockets UT framework
* Move test cases to IPv4_Sockets
* Fix failing test cases
* File format
* Add IPv6 test cases
* Fix generic API UT build warning
* Fix privates API UT build warning
* Fix TCP API UT build warning
* Fix UDP API UT build warning
* more coverage
* Move IPv46 data structure to FreeRTOS_IP_Common.h
* FreeRTOS_recv
* Change pxTCPSocketLookup input structure
* pxTCPSocketLookup
* Full coverage
* Code beautify
* Remove redundant include
* Fix CI
* Fix comments
* Move static variable to global view
* Sockets: Move stub functions to _stubs.c
* Sockets_DiffConfig formatting
* Sockets_DiffConfig1 formatting
* Sockets_DiffConfig2 formatting
* IPv4_Sockets: formatting
* IPv4_Sockets: Formatting
* Fix coverity
* [IPv6] Add Unit Test for FreeRTOS_TCP_State_Handling & FreeRTOS_TCP_State_Handling_IPV4 (#872)
* Add FreeRTOS_TCP_State_Handling_IPV4 UT framework
* Add test case description & file format
* prvHandleListen_IPV4
* prvHandleListen
* Fix UT description
* prvHandleListen_IPV4 full coverage
* prvHandleSynReceived
* full coverage
* Remove redundant include
* Code beautify
* Spelling
* File formatting
* Remove unnecessary buffer.
* [IPv6] Add Unit Test for FreeRTOS_TCP_State_Handling_IPV6 (#875)
* TCP_State_Handling_IPV6 basic UT framework
* Add input check in function.
* Add unit test for TCP_State_Handling_IPV6
* Update Monika's comment
* Add file format changes
* Uncrustify: triggered by comment.
* Force push
---------
Co-authored-by: ActoryOu <jay2002824@gmail.com>
Co-authored-by: GitHub Action <action@github.com>
* 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>
* 556 Initial Cmake Module definition. #557
* renaming variables that have conflicting names with MSC and *nix headers
* fix build issue for posix port
* Fix warning: -Waddress-of-packed-member when calculating checksum directly from network packets
* fix warnings with prvInitialiseTCPFields declaration
* removing macros that hides the structure fields
* Updating build check enable all config to enable all config macros
* CMake: Fix GIT_REPOSITORY and GIT_TAG (#742)
* moving ipTRUE_BOOL and ipFALSE_BOOL out of #ifndef pdTRUE_SIGNED check as they are not defined in kernel
* minor fix to the cmake files and main file
* Uncrustify: triggered by comment.
* adding doxygen comments to new functions
* Uncrustify: triggered by comment
* Add more warnings check and fix warnings
* Uncrustify: triggered by comment
* fix review feedback and more debug printf warnings fix
* more warnings fix
* fix misra issues
* Uncrustify: triggered by comment
* replace sin_addr with sin_address.ulIP_IPv4 in +TCP demos
* replace sin_addr6 with sin_address.xIP_IPv6 in +TCP demos
* replace freertos_sockaddr6 with freertos_sockaddr in +TCP demos
* review feedback changes
* removing duplicate def for prvStreamBufferAdd from winpcap
* fix more warnings from MSVC
* Uncrustify: triggered by comment
* review feedback changes
* Uncrustify: triggered by comment
---------
Co-authored-by: phelter <paulheltera@gmail.com>
Co-authored-by: Nikhil Kamath <110539926+amazonKamath@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
* add FreeRTOS_GetAddressConfiguration and FreeRTOS_SetAddressConfiguration
* renaming FreeRTOS_GetUDPPayloadBuffer_ByIPType to FreeRTOS_GetUDPPayloadBuffer_Multi
* adding ipconfigIPv4_BACKWARD_COMPATIBLE to all main branch APIs that got changed except hooks
* rename vApplicationIPNetworkEventHook to vApplicationIPNetworkEventHook_Multi when ipconfigIPv4_BACKWARD_COMPATIBLE is disabled
* renaming xApplicationDNSQueryHook to xApplicationDNSQueryHook_Multi when ipconfigIPv4_BACKWARD_COMPATIBLE is disabled
* Uncrustify: triggered by comment
* fix DNS_ParseDNSReply complexity issue
* Uncrustify: triggered by comment
* replacing with ipconfigIPv4_BACKWARD_COMPATIBLE flag
* minor unit test fix
---------
Co-authored-by: GitHub Action <action@github.com>
* Updating tcp utilities
* Some more change in dev_integration_hein.v8
* In FreeRTOS_DNS_Parser.c : use 'ipUDP_PAYLOAD_OFFSET_IPv4' in stead of 'ipIP_PAYLOAD_OFFSET'
* And a few more corrections
* Changes to WinPCap network interface, removed debugging code
* After applying uncrustify
* Oops, I forgot the push changes in include files.
* Now removing it, hopefully
---------
Co-authored-by: Nikhil Kamath <110539926+amazonKamath@users.noreply.github.com>
Co-authored-by: Monika Singh <108652024+moninom1@users.noreply.github.com>
* Change in UDP process flow to drop packet in case of invalid payload length for IPv4
* Uncrustify: triggered by comment.
* Update FreeRTOS_IP.h
---------
Co-authored-by: GitHub Action <action@github.com>
* fixed failing unit tests
* Fixed failing unit tests for dns networking and parser:
* Fixed issue with vReturnEthernetFrame is called twice during DNS_TreatNBNS
* Minor fix with DNS unit test cases
* Changes after testing all other protocols IPv4 and IPv6
* Clear interface/endpoint when creating a network buffer
* After running uncristify
* Didn't mean to update 'TCP_Transmission_IPV4'
* Removed changes from Routing.h to make merging easier
* Reparations and recommendations for the dev/IPv6_integration branch
* Applied uncrustify
* More changes after testing ARP, ICMP4, ICMP6, UDPv4 and UDPv6, DNSv6
* A few changes to DNS after testing it
* Fix FreeRTOS_IP and FreeRTOS_IP_DiffConfig test cases
* Remove test_prvProcessIPEventsAndTimers_eNetworkDownEvent test Case
- eNetworkDownEvent no longer support xNetworkUp variable, the network status
is kept in pxEndPoint->bits.bEndPointUp.
* Run Uncrustify.
Co-authored-by: GitHub Action <action@github.com>
* WIP dns test cases
* WIP DNS unit tests, fix failing tests
* Fix failing tests for DNS cache unit tests
* WIP dns unt test cases fix
* WIP dns unt test cases fix
* WIP failing test cases for DNS unit test
* WIP fix failing test cases for DNS callback
* WIP fix dns networking unit tests
* WIP fix failing unit test cases for DNS parser
* WIP fix failing test cases for the DNS parser unit tests
* Fixed failing test cases for the DNS networking unit tests
* WIP fix failing unit test cases for DNS
* Fixed failing test cases for DNS unit tests
* Fixed failing test cases for the DNS unit tests
* Fix failing test cases for the DNS callback unit tests
* Fixed failing test cases for DNS parser and updted the TreatNBNS function
* xDNS_IP_Preference kept xPreferenceIPv4 by default
* Add common Header size function for IPv6 and IPv4
* MISRA: Fix rule 1.1, 10.3, 20.9 and suppress rule 20.5
Co-authored-by: Monika Singh <moninom@amazon.com>
* Update source location for coverity
* Add coverage checker
* Add build check with default configuration
* Fix build combination and DNS error
* uncrustified and fixed cmakelists
* This commit updates version number in all files to Development-Branch
* Update version number macros
* This commit fixes a typo in version number macro
* Added a 'critical section' to prevent a race condition in stream buffers
* Uncrustify: triggered by comment.
* Fixed unit-tests by adding mocked functions
* Initial commit of file README.md
* Update README.md
* Fix the title of README file in coverity
* Addressed issue comments
* Update command
* Add details about remaining exception
* Move file to original location
* Remove use of sudo in commands
* Fix links; added coverity version note
* Update README.md
* Remove CMake installation instructions
* Update manifest/history and copyright year
* Update kernel version to 10.4.5
* Update remaining copyright year instances
* Update the version number macros
* Update license header titles
* Remove kernel license header and add TCP header
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
* Update source location for coverity
* Add coverage checker
* Add build check with default configuration
* Fix build combination and DNS error
* uncrustified and fixed cmakelists
* This commit updates version number in all files to Development-Branch
* Update version number macros
* This commit fixes a typo in version number macro
This commit brings in the refactoring and restructuring changes
from IntegrationTesting1 branch to the main branch.
It also includes additional unit tests for 100% coverage.
The rationale behind not creating a PR is that the conflicts were too
huge to be resolved correctly. Thus, a force push to the main branch is
being done.