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

401 Commits

Author SHA1 Message Date
Tony Josi
f50a76b937 Fix DNS to use correct DNS IP preference (#1109)
* Fix xDNS_IP_Preference to be IPv4 in the else case

* Fix UTs

* Fix DNS IP preference

* Uncrustify: triggered by comment

* Fix UTs

---------

Co-authored-by: GitHub Action <action@github.com>
2024-02-28 13:03:52 +05:30
Tony Josi
b098c07b98 Fixes ARP messages from being sent through wrong endpoints (#1105)
* Fixes the Incoming IPv4 destination IP check when ipconfigETHERNET_DRIVER_FILTERS_PACKETS is disabled

* Add new API FreeRTOS_OutputARPRequest_Multi

* Fix UTs

* Fixes an issue which resulted in the response to a Neighbor Solicitation to be sent out the wrong interface.
Enforces that pxNetworkBuffer, pxNetworkBuffer->pxInterface, and pxNetworkBuffer->pxEndPoint are non-NULL for received packets.

* Adds proper loppback checks. Thanks @tony-josi-aws

* Update assert to checks

* Fix cbmc

* Remove repeated proof

* Fix unit tests

* Fix C90: Wno-declaration-after-statement

* Fix unit tests

* Uncrustify: triggered by comment

* Fix MISRA

* Fix build

* Uncrustify: triggered by comment

* Fix CBMC proofs

* Fix CBMC proof

* Uncrustify: triggered by comment

* Fix CBMC and UTs

* Uncrustify: triggered by comment

* Revert "Fix C90: Wno-declaration-after-statement"

This reverts commit b63cc50e61.

* Add comments as per review suggestions

* Uncrustify: triggered by comment

* Fix UTs

* Update with review suggestions

* Fix UTs and CBMC

* Fix CBMC

* Fix build

* Uncrustify: triggered by comment

* Remove unused comments

---------

Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
Co-authored-by: GitHub Action <action@github.com>
2024-02-28 09:52:48 +05:30
Tony Josi
ef14a0871f Fix declarations after statements (#1106)
* Fix C90: Wno-declaration-after-statement

* Uncrustify: triggered by comment

---------

Co-authored-by: GitHub Action <action@github.com>
2024-02-23 17:52:12 +05:30
Emil Popov
a87f489935 Neighbor Solicitation Response Fix (#1096)
* Fixes an issue which resulted in the response to a Neighbor Solicitation to be sent out the wrong interface.
Modifies prvHandleEthernetPacket() to ensure prvProcessEthernetPacket() never gets called with a NULL pointer
Modifies prvProcessEthernetPacket() to cleanly handle pxNetworkBuffer->pxInterface and  pxNetworkBuffer->pxEndPoint being NULL.

* Fix unit tests

* Fix unit tests

* Uncrustify: triggered by comment

---------

Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
Co-authored-by: Tony Josi <tonyjosi@amazon.com>
Co-authored-by: GitHub Action <action@github.com>
2024-02-13 13:32:20 +05:30
Emil Popov
503a6edb55 Fix for the incoming IPv4 destination IP check (#1086)
* Fixes the Incoming IPv4 destination IP check when ipconfigETHERNET_DRIVER_FILTERS_PACKETS is disabled

* Adds proper loppback checks. Thanks @tony-josi-aws

* Fix unit tests

* Uncrustify: triggered by comment

---------

Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
Co-authored-by: tony-josi-aws <tonyjosi@amazon.com>
Co-authored-by: GitHub Action <action@github.com>
2024-02-13 13:25:07 +05:30
Hein Tibosch
7a58ae819c Remove xCheckLoopback function (#1098)
* Remove xCheckLoopback function because we now have a loopback endpoint.

* Remove xCheckLoopback CBMC proof

* Remove xCheckLoopback UTs

---------

Co-authored-by: tony-josi-aws <tonyjosi@amazon.com>
2024-02-10 23:45:36 +05:30
Tony Josi
c91e982b5d Fix build warnings and update CI build checks to cover library header files (#1091)
* fix minor docs formatting with FreeRTOS_get_tx_base

* Fix build with C90

* Add snprintf inside printf flags

* Remove unused code

* Move eGetDHCPState

* Fix eGetDHCPState UTs

* Fix UTs related to dead code removal in FreeRTOS_UDP_IPv6.c

* Remove unused variables

* Uncrustify: triggered by comment

* Address review feedback

* Remove stale comment in the cmake file

---------

Co-authored-by: GitHub Action <action@github.com>
2024-02-05 19:19:22 +05:30
Tony Josi
0d74d497e7 Fix MISRA 2012 issues (#1083)
* Fix coverity MISRA issues

* fix misra 12.2

* More MISRA fixes

* More MISRA fixes

* Adding MISRA coverity suppressions

* Add MISRA suppression reasoning

* Uncrustify: triggered by comment

* Fix misra exception comments

* Fix clang warnings

* Revert "Fix clang warnings"

This reverts commit 9d00a1448b.

---------

Co-authored-by: GitHub Action <action@github.com>
2024-02-02 17:46:19 +05:30
Hein Tibosch
0cb2d7576c Do not clear pxEndPoint in TCPReturnPacket() (#1078)
* Do not clear pxEndPoint in TCPReturnPacket()

* Don't release pxNetworkBuffer two times

* Repair unit tests

* Add full test coverage

* Uncrustify: triggered by comment

---------

Co-authored-by: Tony Josi <tonyjosi@amazon.com>
Co-authored-by: GitHub Action <action@github.com>
2024-01-25 14:35:06 +05:30
Holden
631fd0502b Macro usage cleanup (#1080)
* Remove duplicate definitions of macros, and move static assertion definition to FreeRTOSIPConfigDefaults.h
---------
Authored-by: Holden <holden@zenithaerotech.com>
2024-01-24 06:11:18 -08:00
Tony Josi
4471af64de Update loopback checks to discard bad loopback packets originating outside of the network (#1075)
* 009 Fail - Change dest add of loopback 127.0.0.1 addr

* Fix unit tests
2024-01-17 16:33:37 +05:30
Hein Tibosch
163ae3ffa3 Avoid network buffer leak in FreeRTOS_ND.c (#1074)
* Avoid network buffer leak in FreeRTOS_ND.c

* Updat unit tests

---------

Co-authored-by: Tony Josi <tonyjosi@amazon.com>
2024-01-10 16:54:21 -08:00
Mikhail Paulyshka
bedefe0e35 Fix compilation with -Wpedantic on GCC (#1059)
* Enable -Wpedantic for GCC by default

* cmake: add -Wno-pedantic for FreeRTOS_Sockets.c && GCC

* Fix warnings with enum eFrameProcessingResult

* Fix unit tests

* Fix unit tests

---------

Co-authored-by: tony-josi-aws <tonyjosi@amazon.com>
2024-01-10 20:28:55 +05:30
Holden
7af0bfe578 Stream Buffer Const Correctness (#1067)
* Stream Buffer Const Correctness

* cleanup & simplify

* Uncrustify: triggered by comment.

* fix test

* add const for pass by value parameters

* don't change parameters

* remove pass by value parameter consts

---------

Co-authored-by: Holden <holden-zenithaerotech.com>
Co-authored-by: Holden <68555040+holden-zenith@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Holden <holden@zenithaerotech.com>
Co-authored-by: Tony Josi <tonyjosi@amazon.com>
2024-01-10 10:06:44 +05:30
Emil Popov
15b2f81bd4 No searching for end-points when responding to mDNS/LLMNR/NBNS (#1064)
* When responding to a mDNS/LLMNR/NBNS query, uses the endpoint selected during the reception of the query instead of searching for one.

* Removes prvFindEndPointOnNetMask( NetworkBufferDescriptor_t * pxNetworkBuffer ) which is no longer needed.

* Updates the DNS parser unit test. Thanks @htibosch

* Fix CBMC proof for prepareReplyDNSMessage

* Updates the DNS parser unit test. Thanks @htibosch

* Uncrustify: triggered by comment

---------

Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
Co-authored-by: Tony Josi <tonyjosi@amazon.com>
Co-authored-by: GitHub Action <action@github.com>
2024-01-09 18:32:08 +05:30
Holden
280dd142b1 Fix declaration of socket functions without TCP (#1068)
* Fix declaration of socket ID functions without TCP

* Don't require TCP for GetIPType

---------

Co-authored-by: Holden <holden-zenithaerotech.com>
Co-authored-by: Holden <holden@zenithaerotech.com>
Co-authored-by: Tony Josi <tonyjosi@amazon.com>
2024-01-09 11:39:23 +05:30
microcris
90c9321ae4 Update FreeRTOS_debug_printf in comments (#1050)
* Update FreeRTOS_Routing.c

In line 855, the #if directive is checking for the "ipconfigHAS_PRINTF" conditional expression. Following this conditional check, line 872 should have a "FreeRTOS_printf" instead a "FreeRTOS_debug_printf".
It also fixes the "variable 'xRetNtopFrom' set but not used" compilation warning

* Uncrustify: triggered by comment.

* Update comment

* Uncrustify: triggered by comment.

* Update one more occurance

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
Co-authored-by: Tony Josi <tonyjosi@amazon.com>
Co-authored-by: Monika Singh <moninom@amazon.com>
2024-01-08 13:29:11 +05:30
Soren Ptak
30b980944b Update word list (#1072)
* Use GNU/Linux sort instead of MacOS Sort

* Add new common words to the cSpellWordList.txt

* Fix all spelling mistakes but the unit test name one

* Fix spelling mistake for test_xTCPCheckNewClient_Not_Found_Not_Accept
2024-01-06 12:14:41 +05:30
Monika Singh
fcd2de0039 Remove unused FreeRTOS_flush_logging (#1066)
* Remove unused FreeRTOS_flush_logging

* Fix CBMC failures

---------

Co-authored-by: tony-josi-aws <tonyjosi@amazon.com>
2024-01-02 12:29:15 +05:30
Hein Tibosch
af07ccf4c4 Avoid critical sections where possible (#1063)
* Avoid critical sections where possible

* Repair unit test FreeRTOS_Sockets

---------

Co-authored-by: Tony Josi <tonyjosi@amazon.com>
2024-01-02 12:07:53 +05:30
Hein Tibosch
10b5171dbd Set ipBUFFER_PADDING to 14 bytes by default on 64 bit targets v2 (#1061)
* Set ipBUFFER_PADDING to 14 bytes by default on 64 bit targets v2

* Added U suffix to some literal values like 0xFFFFFFFFU

* Corrected the offset/size table in the comments

* Changes ipBUFFER_PADDING checks after review Monika and Tony

---------

Co-authored-by: Tony Josi <tonyjosi@amazon.com>
2023-12-26 17:18:13 +05:30
Mikhail Paulyshka
f42d53ad8b phyHandling: Fix compilation with Clang, fix incorrect log output (#1060)
* phyHandling: fix write to uninitialized variable, fix broken logging

* phyHandling: remove ulPHYLinkStatus variable
2023-12-12 17:09:41 +05:30
Monika Singh
c8d98d443b Fix MISRA issue (#1049)
Fix following MISRA issues :

MISRA Rule 8_5 : Symbol "FreeRTOS_inet_ntop6" is declared more than once.
MISRA Rule 8_9 : Symbol "FreeRTOS_in6addr_loopback" should be defined at block scope.
MISRA Rule 8_8 : missing static storage modifier for "prvCloseDHCPSocket" which has internal linkage.
MISRA Rule 9_1 : Using uninitialized value "xRemoteIP.xIs_IPv6" when calling "pxTCPSocketLookup".
MISRA Rule 9_1 : Using uninitialized value "pxAddress->sin_family" when calling "prvSocketBindAdd".
MISRA Rule 11_3 : A cast shall not be performed between two pointer of different object type.
MISRA Rule 12_1 : Missing parentheses on sub-expression of the operator.
MISRA Rule 14.4 : The condition expression 0 does not have an essentially boolean type
MISRA Rule 15_6 : The body of the "then" branch of the "if" statement is not a compound statement.
MISRA Rule 17_7 : The return value of a non-void function "memset" is unused.
MISRA Rule 20_5 : Using "#undef".
MISRA Rule 20_10 : Use of "#" or "##" preprocessor operator.
MISRA Rule 21_1 : Defining or undefining a reserved name "_static", which is an identifier or macro name beginning with an underscore.
MISRA Rule 21_15 : Calling function "memcmp" with incompatible types "void " and "uint8_t const ()[6]".
2023-12-08 10:37:49 +05:30
microcris
8133702da8 Update FreeRTOS_debug_printf in ipARP_REPLY (#1048)
Replace ipconfigHAS_PRINTF by FreeRTOS_debug_printf in the ipARP_REPLY debug print
2023-11-30 22:30:47 +05:30
Błażej Sowa
c80540ccf3 Fix issue with strncpy truncating null character from source string 2023-11-27 12:52:46 -08:00
Hein Tibosch
c263e33d60 Wrong test in function prvTCPSendLoop() (#1043)
* Wrong test in function prvTCPSendLoop()

* fix unit tests

---------

Co-authored-by: tony-josi-aws <tonyjosi@amazon.com>
2023-11-14 22:27:38 +05:30
Emil Popov
9abe2d11c6 Changes the ND cache full behavior when the Neighbor Discovery cache fills up. (#1040)
* Changes the ND cache full behavior: If the Neighbor Discovery cache ever gets full, trying to store a new entry will overwrite the oldest existing entry.

* Adds casting to avoid warnings

---------

Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
Co-authored-by: Tony Josi <tonyjosi@amazon.com>
2023-11-06 09:22:32 +05:30
Emil Popov
7c129b6938 Fixes the allocation size when sending a neighbor solicitation packet to avoid having to always reallocate the buffer. (#1039)
Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
2023-11-03 13:44:32 +05:30
Holden
be2555b3b0 Improve Default Macros (#782)
* Delete duplicate default defines

* Remove errno definitions that exist in projdefs.h

* Clean & Organize FreeRTOSIPConfigDefaults.h

* Move deprecated definitions to their own file

* Definitions Documentation Improvements

* Tracing default definitions improvements

* Organize and add to deprecated definitions

* Remove FreeRTOS_errno_TCP.h

* Fixes for definitions updates

* Address review comments

* Start enforcing macro value limits and make some doc more succinct

* enforce ipconfig macro bounds

* repair config default and reduce unnecessary changes

* 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>

* remove enabled checks

* Remove enable checks from trace macros

* Update cmake sources

* add missing defines

* revert unnecessary changes

* formatting

* fix lexicon

* fix build issue and remove deprecated macro usage from tests

* fix build issues and formatting

* disable pdFREERTOS_ERRNO_EAFNOSUPPORT check

* update kernel submodule for tests

* macro definition fixes

* fix some test build issues

* Temporary passing state

* Fix unittest

* Fix CBMC

* Update CBMC proof

* Update Macro comments

* revert changes

* Fix MISRA 4.4

* Fix MISRA 20.7 violation

* Fix spell checker

* Update Hein's comment

---------

Co-authored-by: Holden <holden-zenithaerotech.com>
Co-authored-by: ActoryOu <jay2002824@gmail.com>
Co-authored-by: Emil Popov <evpopov@gmail.com>
Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
Co-authored-by: Monika Singh <moninom@amazon.com>
Co-authored-by: ActoryOu <ousc@amazon.com>
2023-11-01 12:33:52 +05:30
Hein Tibosch
1474378a29 Give header files a uniform indentation (#1034)
* Give header files a uniform indentation

* Uncrustify: triggered by comment.

* A few more removals of /* ifndef ...*/

* After applying formattingChanges.patch

* Undo indent to avoid huge white space changes

* Undo more indent to avoid huge white space changes

* Undo two more indent to avoid huge white space changes

* Undo 15 more indent to avoid huge white space changes

* Undo 3 more indent to avoid huge white space changes

* Undo 4 more indent to avoid huge white space changes

* Undo 3 more indent to avoid huge white space changes

* It seems that core_cm55.h was not yet formatted

* More files in MPS3_AN552 were not yet formatted.

* And the last one

* Uncrustify: triggered by comment.

* Just a push to restart CI-checks

* Placed some extern "c" comments again

* Formatting fixes

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Co-authored-by: ActoryOu <jay2002824@gmail.com>
Co-authored-by: Monika Singh <moninom@amazon.com>
2023-10-25 12:02:25 +08:00
Emil Popov
8761f51659 SAME70 driver xTXDescriptorSemaphore issue (#1033)
* Fixes and issue with the SAME70 port where and error in gmac_dev_write() causes the counting  xTXDescriptorSemaphore to not be returned and eventually exhausting it.

* fix formatting

* Allows release of the network buffer if gmac_dev_write() fails and the ero-copy driver is being used.
Thanks @htibosch

* Fix typo

---------

Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
Co-authored-by: tony-josi-aws <tonyjosi@amazon.com>
Co-authored-by: ActoryOu <jay2002824@gmail.com>
2023-10-25 11:04:54 +08:00
Hein Tibosch
2131f011f2 STM32H7xx driver check result of HAL_ETH_Init v3 (#1035)
* STM32H7xx driver check result of HAL_ETH_Init v3

* One more change to networkInterface.c

* Updating FreeRTOS kernel submodule

* Once again commit kernel

---------

Co-authored-by: ActoryOu <jay2002824@gmail.com>
2023-10-25 10:22:22 +08:00
Tony Josi
56b33741a3 Update STM32Hxx port to use HW MAC hashtable filter (#970)
* 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

* enable multicast packets in MAC

* use multi cast MAC filter

* fix formatting

* update naming and comments

* update comments and formatting

* rename function

* fix formatting

* fix spell check

* Uncrustify: triggered by comment

---------

Co-authored-by: GitHub Action <action@github.com>
2023-10-12 14:15:43 +05:30
Błażej Sowa
c0f5ba0c82 Fix network down up process (#1030)
* Disable DHCP timer when network goes down

* Don't stop checking the Network Timer

* Fix network down when using RA

* Revert "Don't stop checking the Network Timer"

This reverts commit f5d8d98856.

* Add vSetNotAllNetworksUp function

* Fix unit tests

* Update comments

* Store DHCPv4 socket locally for all endpoints

* Add vDHCPStop and vDHCPv6Stop functions

* Fix IP Utils tests

* Fix most of DHCP unit tests

* Fix formatting

* Change vSetNotAllNetworksUp into a more generic vSetAllNetworksUp

* Fix almost all of DHCP unit tests

* Fix formatting

* Add tests for vDHCPStop and vDHCPv6Stop functions

* Fix formatting

* Remove redundant MISRA comment

* Set all fields of xAddress when binding DHCP socket

* Fix unit test coverage of prvCreateDHCPSocket

* Fix DHCP CBMC memory proof

---------

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Co-authored-by: Tony Josi <tonyjosi@amazon.com>
2023-10-10 16:22:22 +05:30
Devaraj Ranganna
3d5ee0e821 Add Ethernet driver for Corstone-300 FVP (MPS3_AN552) (#1009)
* networkinterface: Add Ethernet driver for Corstone-300 FVP (MPS3_AN552)

The Corstone-300 FVP models SMSC 91C111 Ethernet controller. Add a
network interface based on CMSIS ethernet driver for SMSC 91C111.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>

* ci: Update spell-check dictionary

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>

* networkinterface: Fix formatting issues

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>

---------

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2023-10-09 10:16:25 +05:30
Hein Tibosch
160fa292b8 Check minimum size of ICMPv6 packets (#994)
* Not all ICMPv6 packets have the same minimum length

* More precise length checking

* Repaired unit tests / coverage

* Running uncrustify

---------

Co-authored-by: Tony Josi <tonyjosi@amazon.com>
Co-authored-by: ActoryOu <jay2002824@gmail.com>
Co-authored-by: kar-rahul-aws <118818625+kar-rahul-aws@users.noreply.github.com>
Co-authored-by: Monika Singh <moninom@amazon.com>
2023-10-06 16:36:10 +05:30
Hein Tibosch
16a74c3ae9 Preparing library to use loopback device (#1020)
* Preparing library to use loopback device

* Repaired FreeRTOS_AddEndPoint() as well

* Minor changes for Doxygen

* Uncrustify: triggered by comment.

* Added IPv6.h and removed call to xIsIPv6Loopback

* Conditional compilation of xIPv6_GetIPType()

* Do not call xBadIPv4Loopback() when IPv4 is not enabled

* Repaired unit tests

* In FreeRTOS_AddEndPoint(), set next to NULL

* One more change in FreeRTOS_AddNetworkInterface()

* FreeRTOS_FillEndPoint: save pxNext before clearing entire endpoint struct

* Uncrustify: triggered by comment.

* Changes after review by Shub

* Changes after review by Shub, part 2

* Uncrustify: triggered by comment.

* Replace pxUDPPacket with pxIPacket in function prvAllowIPPacketIPv4()

* utest: replace xIPv6UnspecifiedAddress with FreeRTOS_in6addr_any

* Checked unit-tests and coverage

* ut: Repaired GetIPType loopback test

* Update test/unit-test/FreeRTOS_IPv6_ConfigDriverCheckChecksum/FreeRTOS_IPv6_ConfigDriverCheckChecksum_stubs.c

Co-authored-by: ActoryOu <jay2002824@gmail.com>

* Update test/unit-test/FreeRTOS_IPv6/ut.cmake

Co-authored-by: ActoryOu <jay2002824@gmail.com>

* Remove test for 'ipIPv4_FRAME_TYPE'

* Repairing tu again

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Monika Singh <moninom@amazon.com>
Co-authored-by: Tony Josi <tonyjosi@amazon.com>
Co-authored-by: ActoryOu <jay2002824@gmail.com>
2023-10-06 16:27:45 +05:30
Tony Josi
3cc5d1c024 Update sockets header to include ntop/pton IPv4/v6 API declarations (#1031)
* update sockets header to include ntop / pton IPv4/v6 API declarations

* Uncrustify: triggered by comment

---------

Co-authored-by: GitHub Action <action@github.com>
2023-10-06 15:40:42 +05:30
Hein Tibosch
382ddb0795 Make use of FreeRTOS_inet_addr_quick() when applicable (#1032) 2023-10-05 13:56:32 +08:00
Hein Tibosch
d3ce35f78b New helper function: FreeRTOS_get_tx_base (#544)
* IPv4/single: new function: FreeRTOS_get_tx_base

* Changed some code comments and repaired a typo.

* Attempt to repair utest

* Changes after CI checks

* utest: Added tests for get_tx_base

* Do not use const socket type in FreeRTOS_get_tx_base()

* Removed comments from cmake  file ut

* Repaired UT

* Removed a nested if/endif couple

---------

Co-authored-by: Hein Tibosch <hein@htibosch.net>
2023-10-04 12:19:57 +05:30
Archit Gupta
ce11071d3b Fix uninitialized variable in TM4C NetworkInterface.c (#1028)
* Fix uninitialized variable in TM4C NetworkInterface.c

* Uncrustify: triggered by comment.

* Update macro

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Monika Singh <moninom@amazon.com>
2023-09-26 11:15:16 +05:30
Emil Popov
c9e63fcbe8 Fixes the TCP zero-copy functionality... (#1018)
* Fixes the TCP zero-copy functionality... looks like this somehow just got overlooked.

* Update unit tests

---------

Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
Co-authored-by: tony-josi-aws <tonyjosi@amazon.com>
2023-09-20 15:41:02 +05:30
Hein Tibosch
222a36dbe3 The new loopback network interface (#1022)
Co-authored-by: Tony Josi <tonyjosi@amazon.com>
2023-09-19 12:32:59 +05:30
Jonathan Reichelt Gjertsen
ce7b689db3 Use GCC-compatible alignment specifier in TM4C NetworkInterface.c (#1027)
* Use GCC-compatible alignment specifier in TM4C NetworkInterface.c

Replace the CCS-only pragma with GCC attribute. Fixing this along with #1206 will make this file build without warnings on the ARM GNU toolchain.

The CCS compiler does support this attribute, see section 5.17.2 in: https://www.ti.com/lit/ug/spnu151w/spnu151w.pdf?ts=1695011722091

* Uncrustify: triggered by comment.

---------

Co-authored-by: GitHub Action <action@github.com>
2023-09-18 12:46:47 -07:00
Tony Josi
5e55153f4a Update FreeRTOS_get_tx_head to create TX stream if not created already (#1023)
* TCP zero copy update FreeRTOS_get_tx_head()

* fix unit tests

* Uncrustify: triggered by comment

* updating with review feedback

---------

Co-authored-by: GitHub Action <action@github.com>
2023-09-13 15:07:17 +05:30
Tony Josi
0ebf0c220d Merge branch 'main' into NetParamsCleanup_PR 2023-09-07 11:08:01 +05:30
Peter R Herrmann
a91c3116ba DriverSAM/NetworkInterface.c warning cleanup - purely refactoring (#1016)
* warning cleanup - purely refactoring

* Incorporated PR feedback
- Made vCheckBuffersAndQueue() static
- Added uxLowestSemCount back into prvEMACHandlerTask, now modifying global instead of shadowing

* Uncrustify: triggered by comment.

* Fix formatting

* Uncrustify: triggered by comment.

* Un-doing uncrustify commit that breaks formatting rules

* formatting fix

* formatting fix

---------

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Rahul Kar <karahulx@amazon.com>
2023-09-07 09:38:37 +05:30
Emil Popov
9f33e6e680 removes the xNetworkAddressing and xDefaultAddressing structs as they appear to be obsolete. 2023-09-06 13:59:07 -04:00
Tony Josi
f590724b47 Add integer overflow checks to buffer allocation APIs (#1017)
* Add checks to verify integer overflows doesnt occur during buffer allocations

* Uncrustify: triggered by comment

* updating review feedback

---------

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Co-authored-by: GitHub Action <action@github.com>
2023-09-06 16:52:00 +05:30
Soren Ptak
eed294c0ec CI-CD Updates (#1014)
* Use new version of CI-CD Actions,  checkout@v3 instead of checkout@v2 on all jobs
* Use cSpell spell check, and use ubuntu-20.04 for formatting check
* Add in bot formatting action
2023-09-05 14:31:24 -07:00