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

54 Commits

Author SHA1 Message Date
Emil Popov
b72e2b6eab eARPGetCacheEntryGateWay() return value with no valid gateway (#1103)
* Fixes the eARPGetCacheEntryGateWay() return value when a gateway is not found.

* Updates the unit test. Thanks @kstribrnAmzn

---------

Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
Co-authored-by: tony-josi-aws <tonyjosi@amazon.com>
2024-03-18 10:03:14 +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
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
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
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
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
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
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
Tony Josi
44765e4840 Fix coverity issues in ARP (#1003)
Co-authored-by: ActoryOu <jay2002824@gmail.com>
2023-08-10 18:06:21 +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
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
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
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
ActoryOu
04afe5f5b5 [IPv6] Fix coverity (#933)
* Fix coverity

* Fix UT

* Fix build combination

* Suppress rule 17.2

* Fix 11.3 and 15.7 violations
2023-06-26 11:18:05 +05:30
ActoryOu
e3c2abed64 [IPv6] Add CBMC test for xCheckLoopback and xCheckRequiresARPResolution. (#916)
* xCheckLoopback

* xCheckRequiresARPResolution

* Formatting and spelling

* Fix comment

---------

Co-authored-by: Tony Josi <tonyjosi@amazon.com>
2023-06-22 19:10:57 +05:30
kar-rahul-aws
1d227c489a UnitTest Coverage for ARP (#889)
* Add UT for ARP: 99.2%

* Fix spell check

* Update lexicon.txt

* Update FreeRTOS_ARP.c

Spell check for unnecessary

* Update FreeRTOS_ARP.c

Spell check issue

* Removing the variable name

Fix spell check issue

* Fix ARP UT coverage : 100%

* Fix Build Error

* Fix xTaskGetTickCount value for coverage

* Remove comment , as source code changed
2023-06-06 10:14:46 +05:30
Tony Josi
1f98752059 Adding IPv4/v6 build level separation: integration branch (#855)
* use matching endpoint instead of first endpoint

* update with @htibosch  latest changes

* fix formatting

* fix misra and spellings

* code clean up

* wip separation IP

* separation IP

* separation IP

* wip buils separation

* fixing unit tests

* fix unit tests

* fix formatting

* wip , next prvProcessNetworkDownEvent

* adding build separation to ip utils

* fix unit tests

* fix formatting

* update xCheckRequiresARPResolution

* update vARPAgeCache

* update vARPAgeCache

* misra checks

* fix formatting

* fix misra

* wip s/w: FreeRTOS_recvfrom

* wip sockets till prvSocketBindAdd

* adding  build separation to FreeRTOS_Sockets.c

* add build config support to FreeRTOS_inet_pton FreeRTOS_inet_ntop FreeRTOS_GetIPType

* adding build config support

* fix build  issues

* check misra

* minor fix

* fix unit tests

* fix unit tests build

* Uncrustify: triggered by comment

* fix formatting

* build separate FreeRTOS_TCP_IP.c

* build separate FreeRTOS_TCP_Reception.c

* misra fix

* build separate FreeRTOS_TCP_State_Handling.c

* build separate FreeRTOS_TCP_Transmission.c

* build separate FreeRTOS_TCP_Transmission.c fix build

* adding build separation for FreeRTOS_TCP_Utils.c and FreeRTOS_TCP_Transmission.c

* fix formatting

* UDP: Build Separation Changes

Changes in UDP files to support IPv4 and IPv6 Build Separation.

* fix IPv4 build issues post build sep merge

* IPv4 only build

* more - fix IPv4 build issues post build sep merge

* fix DHCP v4

* fix v6 build

* add v6 build checks

* separate v4v6 tcp files

* fix rebase conflicts

* fix formatting

* fix build when TCP disabled

* add more build checks

* adding more ipv4 flags to v4 specific files

* fix udp unit tests

* add build config build tests to CI

* fix formatting

* fix build checks yml

* DNS: Build Separation Changes

Changes for supporting IPv4 and IPv6 build separation in DNS.

* Routing: Build Separtion Changes

Changes for supporting IPv4 and IPv6 build separation in Routing.

* DNS build fix and rebase to latest changes

* fix formatting

* fix unit tests

* fix formatting

* fix MISRA

* updaating ARP functions to be available on all configs

* plus_tcp_demo_cli build config changes

* fix formatting, guard FreeRTOS_FillEndPoint inside ipconfigUSE_IPv4 check

* more build sepration changes to routing

* build separation plus_tcp_demo_cli.c

* fixing issues with routing, fix formatting

* adding pxFindEndpoint of plus_tcp_demo_cli inside ipconfigUSE_IPv6 != 0 check

* minor build fix

* moving usDNSType of endpoint struct out of ipconfigUSE_IPv6 check

* update code to use IP family while using socket APIs

* moving vSetMultiCastIPv4MacAddress to FreeRTOS_IPv4_Utils.c

* fix routing

* build DNS only if IPv4 is enabled

* fix review feedback

* fix build

* fix build

* fix formatting

* fix comment

* fix wrt reeview feedback

* fix unit tests

* cleanup FreeRTOS_MatchingEndpoint

* fix FreeRTOS_MatchingEndpoint to handle cusstom frames

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: shubnil <103672514+shubnil@users.noreply.github.com>
2023-05-09 19:48:59 +05:30
Hein Tibosch
af710fafbd dev/int: pass correct networkbuffer to vNDSendNeighbourSolicitation (#854) 2023-04-28 15:55:34 +05:30
Kody Stribrny
f15537303c Fix Clang warnings (#809)
Corrects several warnings from Clang flags
for Clang 13.

Inspired by @phelter's bug report
https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/issues/558
2023-04-18 11:00:00 +00:00
Tony Josi
76e880a3bc Minor documentation fix and refactoring changes for DHCP CBMC proofs (#744)
* Minor changes to the CBMC DHCP proof to make the code more readable

* minor documentation fix

* fix unit tests

* Uncrustify: triggered by comment

* minor update

---------

Co-authored-by: GitHub Action <action@github.com>
2023-02-28 15:54:53 +05:30
Monika Singh
9a955f27ac Add changes for Coverity fix (#729)
* Fix Coverity issues

* Fix Misra 4.4 violation:The comment resembles a code snippet

* Misra: Rule 10.4 violations

* Misra: Rule 11.8 violations

* Misra: Rule 12.1 violations

* Misra: Rule 8.2, 8.4, 8.5, and 8.9 violations

* Misra: Rule 5.3, 5.8, 21.1 and 21.2  violations

* Misra: Rule 5.7 violations

* Misra: Rule 8.3 violations

* Misra: Rule Reverse NULL violations

* Misra: Rule 10.3, 10.8 and 8.13 violations

* Fix 11.3 and suppress 11.4

* Misra: Rule 14.3, 15.7, 17.2 and 17.7 violations

* Misra: Rule 2.2 and 2.7 violation

* Misra: Rule 21.6, 8.5 and 8.13 violation

* Fix UT compilation

* Update comments

* Fix Spell checker

* Update snprintf
2023-02-28 12:55:20 +05:30
Tony Josi
0e9628796c Fixing doxygen comments (#728)
* updating doxygen config

* fixing doxygen comments

* adding IPv6 files and fixing comments

* fix doxygen cfg and file names in comments

* wip doxygen v6 docs

* adding doxygen comments

* include RA src file to doxgendocs generation

* fix spell check issues

* Uncrustify: triggered by comment.

* fix minor build issue

* fix spell check issues

* Uncrustify: triggered by comment

* fix trailing white space

* Dev integration hein.v8 (#738)

* Updating tcp utilities

* Some more change in dev_integration_hein.v8

* In FreeRTOS_DNS_Parser.c : use 'ipUDP_PAYLOAD_OFFSET_IPv4' in stead of 'ipIP_PAYLOAD_OFFSET'

* And a few more corrections

* Changes to WinPCap network interface, removed debugging code

* After applying uncrustify

* Oops, I forgot the push changes in include files.

* Now removing it, hopefully

---------

Co-authored-by: Nikhil Kamath <110539926+amazonKamath@users.noreply.github.com>
Co-authored-by: Monika Singh <108652024+moninom1@users.noreply.github.com>

* Fix CBMC proofs for DNS (#718)

* Use CBMC XML output to enable VSCode debugger (#673)

Prior to this commit, CBMC would emit logging information in plain text
format, which does not contain information required for the CBMC VSCode
debugger. This commit makes CBMC use XML instead of plain text.

Co-authored-by: Mark Tuttle <tuttle@acm.org>

* wip

* wip DNSgetHostByName

* wip DNSgetHostByName

* fixed cbmc proof for DNS_ReadNameField

* wip DNSgetHostByName_a_harness

* Fix CBMC prooff for DNSgetHostByName

* wip fix DNSgetHostByName_a CBMC proof

* fixed cbmc target func not called issue in DNSclear

* fixed cbmc target func not called issue in DNSlookup

* fix DNSgetHostByName_a CBMC proof

* update comments

* more asserts

* fixing formatting

* updating as per review comments

* fix dns after review comments

* adding more asserts

* adds more asserts

* minor fix

* fixing comments

* fixing comments

* fixing minor issue

* fixing DNS_ReadReply() signature

* making code more consistant

* adding more  asserts

* making code more consistent

---------

Co-authored-by: Kareem Khazem <karkhaz@amazon.com>
Co-authored-by: Mark Tuttle <tuttle@acm.org>

* Uncrustify: triggered by comment

* fixing formatting

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Hein Tibosch <hein_tibosch@yahoo.es>
Co-authored-by: Nikhil Kamath <110539926+amazonKamath@users.noreply.github.com>
Co-authored-by: Monika Singh <108652024+moninom1@users.noreply.github.com>
Co-authored-by: Kareem Khazem <karkhaz@amazon.com>
Co-authored-by: Mark Tuttle <tuttle@acm.org>
2023-02-24 13:58:53 +05:30
Hein Tibosch
ff11a1484a Dev integration hein.v8 (#738)
* Updating tcp utilities

* Some more change in dev_integration_hein.v8

* In FreeRTOS_DNS_Parser.c : use 'ipUDP_PAYLOAD_OFFSET_IPv4' in stead of 'ipIP_PAYLOAD_OFFSET'

* And a few more corrections

* Changes to WinPCap network interface, removed debugging code

* After applying uncrustify

* Oops, I forgot the push changes in include files.

* Now removing it, hopefully

---------

Co-authored-by: Nikhil Kamath <110539926+amazonKamath@users.noreply.github.com>
Co-authored-by: Monika Singh <108652024+moninom1@users.noreply.github.com>
2023-02-23 14:50:27 +05:30
Monika Singh
fd5303dd51 Initialise pxSourceEndPoint for ARP clash detection (#736) 2023-02-20 15:01:48 +05:30
Monika Singh
310859f9d3 Add changes to IP-clash detection in ARP (#732)
* Add changes to detect and handle if there is a clash with another device for this IP address.
* Remove commented code
2023-02-20 10:21:56 +05:30
kar-rahul-aws
31a549b73a A new algorithm to select the endpoint for received packets[ PR #713 ] (#726)
* End Point changes #PR 713

* Fix build issues in PR#713 : extra */ in FreeRTOS_Routing.c

* Fix Mathcing EndPoint function in Zynq Interface

* Update FreeRTOS_ARP.c

* Spell check fix

* Fix build check issue : add const in xIPv6_GetIPType declaration

* Uncrustify: triggered by comment.

---------

Co-authored-by: GitHub Action <action@github.com>
2023-02-17 19:22:13 +05:30
holden-zenith
3062666f80 Uncrustify (#730)
* uncrustify

* Uncrustify: triggered by comment.

* Update FreeRTOS_ARP.c

* Fix whitespace changes

---------

Co-authored-by: Holden <holden-zenithaerotech.com>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
2023-02-17 12:06:39 +05:30
Monika Singh
96a90c5e79 Add ARP packet drop cases. (#704) 2023-02-08 18:08:16 +05:30
Hein Tibosch
d6ddb24a83 Changes after testing all other protocols IPv4 and IPv6 (#689)
* Changes after testing all other protocols IPv4 and IPv6

* Clear interface/endpoint when creating a network buffer

* After running uncristify

* Didn't mean to update 'TCP_Transmission_IPV4'

* Removed changes from Routing.h to make merging easier
2023-01-31 21:20:06 +05:30
Hein Tibosch
f88dea60ca Reparations and recommendations for the dev/IPv6_integration branch (#664)
* Reparations and recommendations for the dev/IPv6_integration branch
* Applied uncrustify
* More changes after testing ARP, ICMP4, ICMP6, UDPv4 and UDPv6, DNSv6
* A few changes to DNS after testing it
2023-01-25 18:33:44 +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
30b61a28ea Fixed failing test cases for ARP unit tests (#674)
* WIP fix tests for failing ARP unit tests

* WIP fix failing test cases for ARP unit tests

* WIP fix failing test cases for the ARP unit test cases

* Fixed failing test cases for the FreeRTOS_ARP_DataLenLessThanMinPacket_utest unit tests

* Fixed failing test cases for ARP unit tests
2023-01-16 16:08:46 +05:30
kar-rahul-aws
bf32bf336e Demo changes for IPv4 Endpoint changes (#660)
* Update FreeRTOS_ARP.c
* Update FreeRTOS_UDP_IPv4.c
* Update FreeRTOS_TCP_Transmission_IPV4.c
* Update FreeRTOS_IP.c
* Update FreeRTOS_DHCP.c
* Update FreeRTOS_DNS.c
* Update NetworkInterface.c

Add Functions  To avoid scheduler suspension: xPacketBouncedBack and prvStreamBufferAdd
2023-01-10 19:27:49 +05:30
Monika Singh
4624fb0e00 Remove use of ipconfigCOMPATIBLE_WITH_SINGLE (#646)
As ipconfigCOMPATIBLE_WITH_SINGLE is never enabled and used partially, removing the rest of the instances of the same.
Ran uncrustify.
2022-12-21 20:09:40 +05:30
Tony Josi
7e778de0e0 Fix unit tests for ARP file (#640)
* Fix build issues for arp utests

* Added fix for ARP utests  build failure
2022-12-19 21:54:23 +05:30
xuelix
1b8cb751bb Fixing MISRA violations for FreeRTOS_TCP* files (#620)
Fix TCP compilation errors
Add missing fix of TCP compilation
Update for TCP misra violation fix
2022-12-19 15:34:54 +05:30
Monika Singh
536fab9079 Fix uncrustify erros (#617)
Fix uncrusitfy whitespace errors.
Fix Build error in ARP related files.
2022-12-16 17:12:43 +05:30
Monika Singh
58eab85964 Fix compilation with end point changes (#612)
Add changes to fix compilation with End point changes being added on TCP/UDP.
Run Uncrusitfy.
2022-12-15 22:59:58 +05:30
Monika Singh
70492ce2b4 Fix Compilation Errors (#609)
Fix compilation errors after adding Endpoint changes in ARP file.
Run uncrustify.
2022-12-14 23:27:58 +05:30
shubnil
dca79a1fce ARP changes to support IPv6 (#608)
The changes includes generic ARP and ARP endpoint changes
to support IPv6.
2022-12-14 21:44:56 +05:30
shubnil
ab6958d394 ARP changes to support IPv6 (#597)
The change is to include endpoint related changes
in ARP to support IPv6.
2022-12-13 11:24:21 +05:30
Monika Singh
1d3f1a4e88 Add endpoint changes to DHCP files (#593)
* DHCP.c changes and compilation fix
* Update end point changes
* Run uncrustify
2022-12-08 11:30:24 +05:30
Monika Singh
5e56f7739f Add IPv6 data path changes to FreeRTOS_Socket.c (#583)
* Add EndPoint changes to FreeRTOS_Socket.c

* Split Socket.c to IPv4 and IPv6 files

* Combine freertos_sockaddr for IPv4 and IPv6

* Update sendto and recv function to handle IPv4 and IPv6 case

* Run uncrustify
2022-12-05 13:48:17 +05:30
Monika Singh
6b20f521dd Add IPv6 specific header files and structures. (#566)
* Add IPv6 specific header files.

* Update according to Coding Guidelines and Uncrustify

* Adding common IP file to handle common strctures

Co-authored-by: Monika Singh <moninom@amazon.com>
2022-11-04 14:03:43 +05:30
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
80876f5301 Consolidate all misra inline violation justifications into a single file (#521)
* Consolidate all misra inline violation justification into a single file

* Style: fix formatting error

* Style: fix formatting error

* Fix build error

* fix merge errors

* fix merge conflicts

* Style: improve misra exception file

* Updated the justification for MISRA rule 2.2 violation

* Fix comments and justification for MISRA rule 8.9

* Update justification for MISRA rule 11.3

* Updated wording of violation of rule 11.4 ref 5

* Updated the justification of rule 11.4 ref 29

* Fixed comment and justification for ref 31

* Update rule 11.6

* Fix some violations

* Update justifications of various violations

* Fix formatting

* Remove the previous verison of violation table

* Update formatting to separate reference numbers from the text

* Update ref for rule 2.2 and 8.9

* Update rule 11.3 references

* Added rule 11.4

* Added rule 11.6

* Added rule 11.8

* Update refs in MISRA.md

* Add rule 14.3

* Fix 21.6, 17.2 and 20.10

* Fix spell check

* Fix mis-spelled words and address review comments

* Add link to 8.9

* Add 11.3 link

* Add link for 11.4

* Add links for 14.3

* Add remaining links

* Updated some justifications and simplified code to remove deviation

* Fixed spelling errors

* Fix justification for rule 11.3 violation

* Update the link to be a hyperlink

* Update comments for misaligned access

* Add link to project wide suppression file

* Updated wording in MISRA config

* Fix grammar and reorder file

* Address comments

Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
2022-07-26 11:30:42 -07:00
xuelix
ab519329f4 Misra rule 11.3, 11.4 suppression and 4.6 fix (#512)
* Misra rule 11.3 inline suppression

* Added several MISRA deviations

* MISRA Rule 11.4 inline suppression

* Misra violation fix 4.6

* Misra rule 1.2 suppression
2022-07-12 14:20:52 -07:00