1
0
mirror of https://github.com/FreeRTOS/FreeRTOS-Plus-TCP synced 2025-10-23 10:07:43 +08:00
Commit Graph

14 Commits

Author SHA1 Message Date
ActoryOu
bc613e4585 [IPv6] Add Unit Test for FreeRTOS_IP_Utils/FreeRTOS_IPv4_Utils. (#868)
* 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
2023-05-23 16:55:59 +08:00
Tony Josi
20103eeeec Remove coroutine warnings from the unit test build logs (#829)
* fixing error message printed during test build and disabling coroutines flags used in the config files used for test build

* removing  trailing whitespace

* removing configUSE_CO_ROUTINES and configMAX_CO_ROUTINE_PRIORITIES macros from the config files

* Uncrustify: triggered by comment

---------

Co-authored-by: GitHub Action <action@github.com>
2023-04-12 15:41:47 +05:30
Tony Josi
d8fc3200a2 Add backward compatibility with main branch with ipconfigIPv4_BACKWARD_COMPATIBLE (#756)
* 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>
2023-03-07 20:55:27 +05:30
Tony Josi
36172f9b66 Fix unit tests wrt. latest dev/IPv6_Integration changes (#740)
* fix ip timers unit tests

* fix FreeRTOS_IP_Utils_DiffConfig_utest tests

* fixed FreeRTOS_IP_Utils_utest

* fix dns cache unit test

* wip arp utests

* fixing arp unit tests

* fix dhcp errors

* clearing structs before usage

* fix dns parser seg fault

* fix dns parser seg fault in unit test

* fix arp uunit tests

* fix arp unit tests

* fixing dns unit test and updating the CBMC proofs

* fixing udp unit tests

* fixing TCP IP unit tests

* fixing TCP IP diffconfig unit tests

* adding additional header file for ARP for declaring missing stub headers

* minor fix

* Uncrustify: triggered by comment

* fixing comments

---------

Co-authored-by: GitHub Action <action@github.com>
2023-02-24 14:41:13 +05:30
kar-rahul-aws
4553edd116 Change in UDP process flow to drop packet for invalid IPv4 payload length (#716)
* 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>
2023-02-15 10:04:45 +05:30
Tony Josi
16ef9df144 Fix unit test build issues and test failures for IP (#690)
* wip

* fix build failure and test failures for FreeRTOS IP unit tests

* new ip diffconfig 1 included in build

* updating prvProcessUDPPacket() as per PR #689 and fixing tests

* wip ip diffconfig

* added diffconfig2 for ip unit tests wrt to diffconfig with ipconfigCOMPATIBLE_WITH_SINGLE set as zero to enable FreeRTOS_IP_init tests and fixed freertos ip diffconfig unit tests

* minor fix on an ARP unit test

* minor fix with ip utils diffconfig unit tests build

* Fixed build failure with ip diffconfig 1 and 2. Pulled latest changes from dev/v6 branch.

* Removed unused code.
2023-02-07 10:40:24 +05:30
Tony Josi
0639fd45a0 Fix unit test build issues and test failures for IP Utils (#699)
* Fix seg fault

* Remove ipconfigUSE_IPV6

* Add change for FreeRTOS_IP_Utils unit test case

* Fix  comments

* Uncrustify: triggered by comment.

* Fixed build issue with IP utils unit test build.

* Removed calculation of checksum being done twice for debug printf

---------

Co-authored-by: Monika Singh <moninom@amazon.com>
Co-authored-by: Monika Singh <108652024+moninom1@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
2023-02-07 10:19:09 +05:30
Monika Singh
0490d89319 Add Protocol Testing fixes (#694)
* Fix compilation and add Protocol testing fixes

* Update debug function with correct config flag
2023-01-31 21:56:54 +05:30
kar-rahul-aws
44cf8eec96 Update Unit Test for IP_Utils_DiffConfig (#668)
* Update FreeRTOS_IP_Utils_DiffConfig_utest.c and fix the unit test cases.
2023-01-11 19:02:55 +05:30
Tony Josi
c0a5341a29 Fixes the build issue with unit tests for ip utils diffconfig (#606)
* Fixed build issue for IP utils doffconfig utests

* Removed edits made to  global ip config

* Updating branch to latest

* Uncrustify formatting
2022-12-22 12:44:41 +05:30
Paul Bartell
5c845eae4d Remove references to 1200 byte MTU
Setting an MTU below 1500 bytes is very likely to cause interoperability
issues with devices that have a different MTU in the same broadcast domain.
2022-09-13 10:16:33 -07:00
Aniruddha Kanhere
1ab6eb8885 Update version numbers and licensing info (#541)
* 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>
2022-08-12 16:21:44 -07:00
Aniruddha Kanhere
f44d36d5ce Update version number of TCP to development (#516)
* 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
2022-07-06 10:29:48 -07:00
Aniruddha Kanhere
a4124602cc Merge changes to main.
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.
2022-05-26 12:42:45 -07:00