1
0
mirror of https://github.com/FreeRTOS/FreeRTOS-Plus-TCP synced 2025-10-21 15:10:39 +08:00
Commit Graph

347 Commits

Author SHA1 Message Date
Monika Singh
bb654636d2 Add README for ports (#992)
* Add readme for ports which are not ested

* Update name

* Add readme for pic32mzef
2023-08-09 11:38:30 +05:30
Tony Josi
8b90477e51 IAR warning fixes (#991)
* remove forward declarations

* Revert "remove forward declarations"

This reverts commit a20213d314.

* supress IAR warnings
2023-08-08 17:08:26 +05:30
ActoryOu
40c16fef7b Update function names in libslirp interface. (#990) 2023-08-08 09:23:39 +08:00
Monika Singh
67b9e1c281 Update File names (#989)
* Update File names
2023-08-07 14:32:28 +05:30
Tony Josi
941cad721d Gratuituous ARP fixes (#988)
* 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
2023-08-04 16:43:35 +05:30
ActoryOu
ae3cd02438 Create IPv6 socket for DHCPv6 flow (#987) 2023-08-04 17:14:53 +08:00
Tony Josi
62f5d3a1fd DNS callback to use new xDNSDoCallback API (#985)
* fix issue with DNS callback

* update test cli code

* fix formatting

* fix build warnings

* fix formatting

* clang build fix
2023-08-04 11:24:49 +05:30
ActoryOu
df5aed9e58 Check user related headers can be included independently. (#982)
* 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>
2023-07-31 12:10:29 +08:00
Tony Josi
9b903bd627 Update Renesas RX network interface port (#983)
* wip basic compilation fix

* add BSP_MCU_RX72N to checks

* wip

* build fix

* testing with buffer allocation 1 of +TCP

* clean up code

* use macro instead of magic numbers

* fix formatting

* update review comments
2023-07-28 11:21:14 +05:30
Emil Popov
1c7623da4e Improves the calculation of the offset at which we store the IP version value (#979)
* 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>
2023-07-28 10:55:34 +05:30
Monika Singh
574b646147 Fix Clang warnings (#984)
* CMAKe update

* Fix Wdocumentation errors

* Fix Wconditional-uninitialized

* Fix [-Wformat-pedantic

* Fix Wcompound-token-split-by-space and Wgnu-statement-expression

* Add suppression

* Uncrustify: triggered by comment.

* Fix coverity

---------

Co-authored-by: GitHub Action <action@github.com>
2023-07-28 10:25:24 +05:30
Monika Singh
b23fa86ac4 Add and fix -Wconversion errors (#980)
* Fix Wconverstion

* Enable Wconversion warning

* Add fix

* Fix MISRA

* Fix coverity

* Add comments
2023-07-27 15:56:36 +05:30
Monika Singh
14b3e241f5 Fix use of extern C block (#981)
* Fix use of extern C block

* Uncrustify: triggered by comment.

---------

Co-authored-by: GitHub Action <action@github.com>
2023-07-26 13:59:06 +05:30
ActoryOu
5e1c991c06 Remove duplicate configurations (#978)
* Remove duplicate configurations

* Move LLMNR/NBNS back before USE_DNS
2023-07-25 16:09:58 +05:30
Tony Josi
b863f68a2b [PR#482] - Update ARP cache from gratuitous ARP packets v2 (#974)
* 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>
2023-07-24 15:10:25 +05:30
Monika Singh
6a0ce6674a Fixes mDNS over IPv6 (#977)
* Add more descriptions of ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM (#947)

* Fixes mDNS over IPv6. (#949)

Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
Co-authored-by: ActoryOu <jay2002824@gmail.com>
Co-authored-by: Monika Singh <moninom@amazon.com>

---------

Co-authored-by: ActoryOu <jay2002824@gmail.com>
Co-authored-by: Emil Popov <evpopov@gmail.com>
Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
2023-07-24 00:02:54 +05:30
Tony Josi
245d587990 Merge branch 'main' into main 2023-07-21 14:09:01 +05:30
ActoryOu
efef1221e7 Add NXP RT1060 network interface (#961)
* Original driver

* Support multiple endpoints & interfaces

* check if endpoint not found

---------

Co-authored-by: Monika Singh <moninom@amazon.com>
2023-07-21 11:07:20 +08:00
Soren Ptak
ecd1307f1e Uncrustify PR Check Update (#969)
* 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
---------
2023-07-20 16:21:57 -07:00
tony-josi-aws
4cfdf8957f remove trailing whitespaces 2023-07-20 22:35:47 +05:30
tony-josi-aws
7fb47c9df2 fix formatting 2023-07-20 22:23:31 +05:30
tony-josi-aws
6d6ef3c392 revert cube IDE auto generated code related changes 2023-07-20 22:22:22 +05:30
tony-josi-aws
c64bef1957 Merge branch 'main' into miguel_main 2023-07-20 22:19:23 +05:30
tony-josi-aws
172733b5b7 revert cube IDE auto generated code related changes 2023-07-20 22:17:32 +05:30
Tony Josi
ea6072ea7c Merge branch 'main' into atmel_same54_port_dbg 2023-07-20 16:12:57 +05:30
Hein Tibosch
929a658fbd IPv4/single: some minor comments after the MISRA changes (#531)
* 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>
2023-07-20 17:31:16 +08:00
Tony Josi
5721783ebd Merge branch 'main' into atmel_same54_port_dbg 2023-07-20 14:15:37 +05:30
ActoryOu
822363267f Add ipconfigPORT_SUPPRESS_WARNING to suppress warning messages in portable layer. (#971)
* Fix always warning in Zynq port

* Add ipconfigPORT_SUPPRESS_WARNING to suppress warning messages in portable layer.
2023-07-20 16:13:16 +08:00
Hein Tibosch
758fc0d917 IPv4/single: resubmit ARP cache changes found in PR #366 (#483)
* IPv4/single: resubmit ARP cache changes found in PR #366

---------

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>
Co-authored-by: ActoryOu <ousc@amazon.com>
Co-authored-by: ActoryOu <jay2002824@gmail.com>
2023-07-20 15:49:25 +08:00
Tony Josi
7f7b5a6475 Merge branch 'main' into fix_buffers_getting_lost 2023-07-19 16:01:26 +05:30
tony-josi-aws
67e5fa31be fix formattting 2023-07-19 15:02:04 +05:30
Tony Josi
e847ee5835 free old buffer once duplicate has been made 2023-07-19 14:59:31 +05:30
Tony Josi
615da6f3c3 Merge branch 'main' into fix_stm32f_port_build 2023-07-19 11:03:51 +05:30
Xiaodong Li
8197dde3f7 Update poll event in libslirp backend for winSim demo (#972)
* update poll event for winSim demo

---------

Co-authored-by: Xiaodong Li <xiaodonn@amazon.com>
2023-07-18 17:03:19 -07:00
Tony Josi
6b0ce1351b Merge branch 'main' into fix_stm32f_port_build 2023-07-18 16:57:37 +05:30
Xiaodong Li
a7b8a27020 Update Libslirp Network Interface (#966)
* Modified libslirp backend file to cover different libslirp library versions
* Update libslirp network interface
* Add check to avoid memory leak and configASSERT() Null checks for malloc calls

---------

Co-authored-by: Xiaodong Li <xiaodonn@amazon.com>
Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Co-authored-by: Soren Ptak <skptak@amazon.com>
2023-07-17 17:35:20 -07:00
Tony Josi
05695d6636 Fix for STM32H port - IPv6 MAC filter and build (#965)
* fix

* MAC filter updated for DAD and IPv6 all nodes multicast

* add more comments

* fix formatting

* fix comments

* fix review comments

* fix formatting

* update review comments
2023-07-14 18:10:09 +05:30
Tony Josi
8cd4240c29 Merge branch 'main' into atmel_same54_port_dbg 2023-07-14 17:09:09 +05:30
Aniruddha Kanhere
086a9b41aa Fix RX network interface to create task only once (#968) 2023-07-14 14:17:32 +05:30
Tony Josi
b61158f638 Merge branch 'main' into fix_stm32f_port_build 2023-07-13 14:55:11 +05:30
Tony Josi
07e99855c7 Linux port update to have port specific version of pxFillInterfaceDescriptor (#963)
* add port specific pxFillInterfaceDescriptor

* add port specific pxFillInterfaceDescriptor

* adding declaration

* build fix

* fix review comments
2023-07-12 14:34:50 +05:30
Tony Josi
d43fd06268 Merge branch 'main' into atmel_same54_port_dbg 2023-07-12 14:10:09 +05:30
Tony Josi
878c78f6be update with review comments 2023-07-12 14:08:32 +05:30
tony-josi-aws
d981db59a9 fix formatting 2023-07-12 11:53:50 +05:30
Tony Josi
e499fbc00b update debug logs, fix stm32f build when ipconfigSUPPORT_NETWORK_DOWN_EVENT is enabled 2023-07-12 11:49:45 +05:30
ActoryOu
dd9a203249 [IPv6] Fix checksum calculation of IPv6 with extension headers. (#952)
* Fix IPv6 checksum calculation

* Use HW support option to see if we need to calculate TX checksum on NS/NA/RS packets.
2023-07-11 10:52:03 +08:00
Miguel Freitas
e0871ca464 spacing/identation fixes (uncrustify) 2023-07-10 14:49:49 -03:00
Miguel Freitas
389ff69598 implement hacks described in readme.md to avoid conflict with original HAL driver. 2023-07-09 21:24:16 -03:00
Miguel Freitas
9c29975b50 port notes updates and suggestions on how to avoid clashing with original HAL driver. 2023-07-09 21:22:53 -03:00
Miguel Freitas
84dcdef58e compilation warning fixes 2023-07-09 21:20:47 -03:00