* adding more checks for GARP
* adding more checks for GARP
* adding more checks for GARP
* more debug logs
* more debug logs
* more testing
* verify subnet
* fix formatting, cleaning up
* fix formatting, cleaning up
* adding unit tests
* updating review comments
* Header fix part 1
* IP_Private
* TEST_HEADER_INC_ONLY_IPv4
* NetworkBufferManagement and NetworkInterface
* Add CI flow to check user related headers can be included independently
* Revert some redundant change
* Add CI flow and fix formatting
* Use -include compile option to test header self contain.
---------
Co-authored-by: Monika Singh <moninom@amazon.com>
* Defines ipUDP_PAYLOAD_IP_TYPE_OFFSET as an offset dependent on the IPv6 and UDP headers.
Calculates ipIP_TYPE_OFFSET automatically based on the sizes it depends on instead of using a hardcoded number.
Removes the definitions of ipIP_TYPE_OFFSET and ipUDP_PAYLOAD_IP_TYPE_OFFSET from FreeRTOS_IPv6_Private.h because they are already defined in FreeRTOS_IPv4_Private.h
Makes ipIP_TYPE_OFFSET define signed so asserts can properly check for negative values.
Adds an assert to ensure that storing of the IP-Type for IPv4 frames does not result in overwriting the ethernet header which would be the case if ipIP_TYPE_OFFSET somehow became negative or zero.
Adds a comment to the code storing of the IP-Type byte for IPv6 frames emphasizing that it is not required and only used for debugging.
* Uncrustify: triggered by comment.
* Correct the comment of ipUDP_PAYLOAD_IP_TYPE_OFFSET.
---------
Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: ActoryOu <jay2002824@gmail.com>
Co-authored-by: Tony Josi <tonyjosi@amazon.com>
* Let the TCP timer becomes expired in stead of active
* Renamed parameter of function vIPSetTCPTimerExpiredState
* Adapt unit tests to use the new name and field
* Change bActive to bExpired
* Empty commit
* Fix spell check
* When a gratuitous ARP is received, use it to update the ARP cache entry
* wip
* adding comments on matching endpoint for Gratuitous ARP
* adding unit tests for Gratuitous ARP processing, fix formatting
* fix build
* fix formatting
* fix formatting
* fic CBMC
* adding review changes
---------
Co-authored-by: Hein Tibosch <hein@htibosch.net>
Co-authored-by: Hein Tibosch <hein_tibosch@yahoo.es>
Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
* Update uncrustify to use version other repos use, clean up the way it runs, formatting changes to needed files
* Moving the lexicon.txt to where it lives in all other repos
* Removing executable permissions from .c files
---------
* IPv4/single: some minor comments after the MISRA changes
* Added the "V" in the version macro
* Corrected the call to memset()
* Update source/FreeRTOS_DNS_Networking.c
Aniruddha suggestion to clear uxPayloadXXX when recv() failed
Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
* Undo the change to the macro ipFR_TCP_VERSION_NUMBER
* Remove redundant variablein DNS_Networking.c.
---------
Co-authored-by: Hein Tibosch <hein@htibosch.net>
Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
Co-authored-by: ActoryOu <jay2002824@gmail.com>
Co-authored-by: ActoryOu <ousc@amazon.com>