Commit Graph

72 Commits (50dc98a5a6a521e45adc3b6b7351691a27ab85b7)

Author SHA1 Message Date
Aniruddha Kanhere 50dc98a5a6
MISRA v5 ()
Aniruddha Kanhere 2621e60124
TCP: Update version number and History.txt ()
* Update the version number
* Update History.txt
alfred gedeon 6b502b5dd3
Build: replace scons with makefile ()
* Build: transform scons into Makefile
* Build: add Makefile dependencies
* Build: remove some tabs from Makefile
* Build: Make builds out of source, move wait for event to kernel port
* Test: update the full test to print status messages
* Build: replace lpthread with pthread

Co-authored-by: Alfred Gedeon <gedeonag@amazon.com>
Aniruddha Kanhere c1b06040fe
TCP: Update History.txt file ()
* Update the History.txt
Aniruddha Kanhere 889d3e8667
Create a new branch and address 10.8 warnings ()
Aniruddha Kanhere 05b4d4fc64
Address various MISRA warnings v3 ()
* Add a branch and make MISRA changes

* initialize the value

* Update after Gary's comments
Aniruddha Kanhere cacf4ad7f9
Address various MISRA warnings v2 ()
* Address some MISRA warnings

* Change the return type

* Update FreeRTOS_Sockets.c
Aniruddha Kanhere 0341050048
Address MISRA errors of various kinds ()
* MISRA 21.15 changes

* MISRA 11.8 changes
Aniruddha Kanhere 18d238ad5c
Address a few MISRA 2.2 violations in FreeRTOS_IP.c ()
* Make changes for MISRA rule 2.2

* Add comments to explain changes

* Fix a typo

* Actually fix a typo

I missed a spot in the previous commit.
Gary Wicker e2ab092351
Address MISRA 21.15 violations in FreeRTOS_Sockets.c ()
* Use unsigned types/constants where needed.

* Address MISRA 21.15 violations in FreeRTOS_Sockets.c

Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
Aniruddha Kanhere 7cb57324fd
TCP: Address MISRA rule 11.3 violations (Part 2) ()
Gary Wicker bcd5dec6c4
Use unsigned types/constants where needed. ()
Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
Aniruddha Kanhere 3fc432f7be
TCP: Address MISRA rule11.3 violations ()
Aniruddha Kanhere 0b48e6a3b5
Utility macros to improve readability/static analysis. ()
* Update FreeRTOS_IP_Private.h

* Update FreeRTOS_Sockets.h

* Update FreeRTOS_DNS.c

* Correct version number

* Update version number

* Update version number
alfred gedeon 638262fab1
Fix Posix demo build and remove src directory ()
* Fix: build errors, remove src directory and bring all files up
* Fix: Remove not needed header
* Doc: fix main comments
* Doc: fix comment

Co-authored-by: Alfred Gedeon <gedeonag@amazon.com>
Aniruddha Kanhere 08af68ef90
Remove dependency of CBMC on Patches ()
* Changes to DHCP

* CBMC DNS changes

* Changes for TCP_IP

* Changes to TCP_WIN

* Define away static to nothing

* Remove patches

* Changes after Mark's comments v1

* Update MakefileCommon.json

* Correction!
Aniruddha Kanhere a7fec906a4
Misc changes ()
Aniruddha Kanhere 07cf5e07e4
MISRA compliance changes for FreeRTOS+TCP headers ()
* misra changes

* Update FreeRTOS_IP_Private.h

* Update FreeRTOS_IP_Private.h
Aniruddha Kanhere e903ac0fed
UPD MISRA changes ()
Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
Aniruddha Kanhere 97551bf44e
MISRA changes in FreeRTOS_TCP_WIN.c ()
Aniruddha Kanhere f2611cc5e5
MISRA compliance changes in FreeRTOS_Sockets{.c/.h} ()
* MISRA changes Sockets

* add other changes

* Update FreeRTOSIPConfig.h

* Update FreeRTOSIPConfig.h

* Update FreeRTOSIPConfig.h

* Update FreeRTOSIPConfig.h

* correction

* Add 'U'

* Update FreeRTOS_Sockets.h

* Update FreeRTOS_Sockets.h

* Update FreeRTOS_Sockets.c

* Update FreeRTOS_Sockets.h

* Update after Gary's comments

* Correction reverted
Aniruddha Kanhere ae4d4d38d9
MISRA compliance changes for FreeRTOS_TCP_IP.c ()
* MISRA tcp-ip changes

* Changes after Hein's comments on original PR

* Update FreeRTOS_TCP_IP.c

Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
Aniruddha Kanhere e0d62163b0
Sync with +TCP amazon-FreeRTOS ()
* DNS.c commit

* IP.c commit

* Add various source & header files
Hein Tibosch c720c18ada
FreeRTOS+TCP Adding the combined driver for SAM4E and SAME70 v2 ()
* Adding a combined +TCP driver for SAM4E and SAME70

* Changes after review from Aniruddha

Co-authored-by: Hein Tibosch <hein@htibosch.net>
Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
Aniruddha Kanhere 4237049b12
Add changes from 2225-2227 amazon-FreeRTOS ()
Aniruddha Kanhere d5fedeaa96
Add checks in FreeRTOS_Socket.c ()
* Add fail-safes to FreeRTOS_Socket.c

* Use all 'pd' errors

* Correction after Hein's comments

* Correction after Hein's comments v2

* Changes after Hein's comments

* Update after Gary's comments
Aniruddha Kanhere a9b2aac4e9
Folder structure change + Fix broken Projects ()
* Update folder structure

* Correct project files

* Move test folder

* Some changes after Yuki's comments
Hein Tibosch 98bfc38bf3
FreeRTOS+TCP : add memory statistics and dump packets, v3 ()
* FreeRTOS+TCP : add memory statistics and dump packets, v3

* Two changes as requested by Aniruddha

Co-authored-by: Hein Tibosch <hein@htibosch.net>
Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
Aniruddha Kanhere f11bcc8acc
Fix a Bug and corresponding CBMC patch ()
* Update remove-static-in-freertos-tcp-ip.patch

* Update FreeRTOS_TCP_IP.c

* Update remove-static-in-freertos-tcp-ip.patch

* Update remove-static-in-freertos-tcp-ip.patch

Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
Aniruddha Kanhere 6efc39f44b
Add Project for running integration tests v2 ()
* Project for integration tests

* relative paths in project files

* relative paths in project files-1

* relative paths in project files-2

* addressed comments

* addressed comments v2

Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
Aniruddha Kanhere cb7edd2323
Sync with a:FR ()
* AFR sync

* AFR sync: CBMC

* AFR sync: CBMC: remove .bak files

* AFR sync: CBMC: more cleanup

* Corrected CBMC proofs

* Corrected CBMC patches

* Corrected CBMC patches-1

* Corrected CBMC patches-2

* remove .bak files (3)

Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
alfred gedeon 6557291e54
Test: Add Linux Networking support with demo application ()
* Test: Add Linux Networking support with demo application

* Test: revert files affected by uncrustify

* Test: revert files affected by uncrustify

Co-authored-by: Alfred Gedeon <gedeonag@amazon.com>
Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
Hein Tibosch 5003d17fed
FreeRTOS+TCP : renewing DHCP lease while network is down ()
Co-authored-by: Hein Tibosch <hein@htibosch.net>
Co-authored-by: Gary Wicker <14828980+gkwicker@users.noreply.github.com>
AniruddhaKanhere 40a31b6d35 'uL' -> 'UL'
AniruddhaKanhere 5b3a289b69 Changes after Gary's comments
AniruddhaKanhere edf68637dd Update FreeRTOS_ARP.c
AniruddhaKanhere 35f3ac32a8 correct debug output
AniruddhaKanhere 5e12a70db4 Debugging flag check added
AniruddhaKanhere 4e8ac8de25 Comment style consistency and Yuhui's suggestions
AniruddhaKanhere e43f7cd086 Cleanup
AniruddhaKanhere ab3b51c7a0 Update after Gary's comments
AniruddhaKanhere 97f7009699 Update after richard's comments
AniruddhaKanhere a9fcafc074 Corrected the formatting
- visual studio had messed up the formatting
AniruddhaKanhere c381861014 commit 2 after gary's comments
AniruddhaKanhere 75677a8d85 Commit after Gary's comments
AniruddhaKanhere 666c0da366 Update after Yuhui's comments
- removed (void) from before memcpy, memset etc.
- corrected memcpy style as suggested by Yuhui
- Added logging for xNetworkInterfaceOutput. No need to configASSERT
AniruddhaKanhere 4a1148d15b Coverity + MISRA compliance
Modified code to conform to the MISRA directives more closely.
AniruddhaKanhere ecf0f12aa1
Sync up with Amazon-freertos repo (10th March 2020) ()
* Sync up with amazon-freertos

* Sync up with amazon-freertos

* Sync up with amazon-freertos
AniruddhaKanhere c40a6da2e4
pass payload length when calling UDP callback ()
* pass payload length when calling UDP callback
AniruddhaKanhere 7e1a4bf563
Fix DHCP option Client-identifier ()