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

15 Commits

Author SHA1 Message Date
ActoryOu
7adc5c3955 [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
2023-05-26 09:47:43 +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
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
Tony Josi
061a24db85 Fix unit tests and build issues (#712)
* build fix

* fixed faiing tests for FreeRTOS_TCP_IP

* fixed faiing tests for FreeRTOS_TCP_IP_diffconfig

* fixed faiing tests for FreeRTOS_TCP_Transmission

* fixed minor issue with prepareReplyDNSMessage

* fix arp test failures

* fix ARP tests

* wip FreeRTOS_DNS utest

* fix DNS utest failure

* testing coverage

* testing coverage

* updating comments

* disable coverage check
2023-02-15 14:25:33 +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
Monika Singh
7315e4b3ba Fix FreeRTOS_IP test cases (#666)
* 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>
2023-01-16 21:07:57 +05:30
Tony Josi
b3d41fb58e Fix TCP IP failing unit test cases (#649)
* WIP fix failing test cases for tcp ip utests

* Fixed TCP IP failing unit test cases

* Fixed failing unit tests for TCP IP diffconfig unit tests
2023-01-06 12:28:34 +05:30
Tony Josi
605c9fbf71 Fixes the build issue with unit tests for tcp reception (#629)
* Fixed build issues with the tcp_ip diffconfig

* Uncrustify formatting
2022-12-21 09:49:12 +05:30
Hein Tibosch
188a9d02f4 IPv4/single: connect() should return immediately after a protocol error and other things (#559)
* IPv4/single: Let connect() return as soon as socket gets closed

* Let both connect() and accept() return after a 'eSOCKET_CLOSED' event

* Included hang protection of orphaned socket from PR #545

* Lexicon.txt change

* Remove a variable that was not used

* Update source/FreeRTOS_Sockets.c

Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>

* Update source/FreeRTOS_TCP_IP.c

Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>

* moved declaration to beginning of block

* Update source/FreeRTOS_TCP_IP.c

Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>

* Uncrustify: triggered by comment.

* Fix unit test expectations

* Avoid a recursive call to vTCPStateChange()

* Uncrustify: triggered by comment.

* Fix CBMC proof assumptions

* Get unit-test coverage up

* Fix timers unit-tests

* Socket unit-test for closed socket

* Fix a unit-test expectations

* Fix spell check

* Uncrustify: triggered by comment.

* Using debug_printf in stead of printf for logging.

* Use debug printf instead of printf in 2 locations

Co-authored-by: Hein Tibosch <hein@htibosch.net>
Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
2022-10-11 14:20:13 -07:00
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
alfred gedeon
0ceebc2685 MISRA: suppress rule 10.5 (#506)
* MISRA: suppress rule 10.5

* Fix misra rule 10.5 violations

* Fix format error and missing include

* Change variable name to match type

* Merge: fix conflicts

* Fix pr comments

* Spell: remove spelling error comments

* Fix ut failure
2022-07-20 09:24:22 -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
xuelix
4fb9674de0 Misra check fix and update (#476)
* Misra check fix and update
2022-06-06 17:47:09 -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