Skip to content

Commit d6ed447

Browse files
AniruddhaKanherehtiboschHein TiboschmarkrtuttleMark R. Tuttle
authored
Add unit-tests for FreeRTOS_ARP.c (#209)
* Fix compiler warnings when the TCP Window is not used (#124) * Fix warnings when TCP window is not used * Uncrustify * Move local variables to inner loop in prvNetworkInterfaceInput() (#144) Co-authored-by: Hein Tibosch <[email protected]> Co-authored-by: Aniruddha Kanhere <[email protected]> * Update litani submodule (#147) Co-authored-by: Mark R. Tuttle <[email protected]> * Fix doxygen check (#149) * Update doxygen version * update the config file * TCP_WIN: fix compile warning on x86_64 (#148) * TCP_WIN: fix compile warning on x86_64 Fix the following warning when building for 64 bit: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} changes value from ‘18446744073709551615’ to ‘4294967295’ [-Woverflow] uint32_t ulReturn = ~0UL; ^ * Update FreeRTOS_TCP_WIN.c Co-authored-by: Aniruddha Kanhere <[email protected]> Co-authored-by: Thomas Pedersen <[email protected]> Co-authored-by: Aniruddha Kanhere <[email protected]> * fix deprecated volatile compound assignment (#152) * fixed deprecated volatile compound assignment C++20 deprecates some undefined or unclear use cases of 'volatile' like compound assignments and compliant compilers warn about those deprecated operations. In vStreamBufferMoveMid the deprecated compound assignment and other direct accesses to volatile 'StreamBuffer_t->uxMid' is replaced using a local variable stored back when done. * Uncrustify Co-authored-by: Aniruddha Kanhere <[email protected]> Co-authored-by: Aniruddha Kanhere <[email protected]> * FreeRTOS_ARP.c : store local addresses only (#120) * FreeRTOS_ARP.c : store local addresses only * Added the function xARPWaitResolution() * Added an entry to lexicon.txt. * Ran Uncrustify * Update unit test file * Update * Declared xARPWaitResolution() in FreeRTOS_IP.h * Compare the result of xIsCallingFromIPTask() with pdFALSE in stead of 0 Co-authored-by: Hein Tibosch <[email protected]> Co-authored-by: Aniruddha Kanhere <[email protected]> Co-authored-by: Aniruddha Kanhere <[email protected]> * Remove unnecessary #ifndef (#186) * Add entropy * remove warning * Remove unnecessary ifndef * Remove unwanted changes * Don't Fragment Flags patch. (#179) * Moves all IP flag defines in FreeRTOS_IP_Private.h so that they are accessible to all protocols Adds definitions for the IP fragmentation flags Modifies the fragmentation check for incoming frames to drop both the first and later fragments. Sets the "don't fragment" flag for all outgoing IP frames ( ICMP, DNS, UDP, TCP ) Removes ipGET_UDP_PAYLOAD_OFFSET_FOR_FRAGMENT as it appears obsolete. The stack never outputs fragments. * Uncrustified * Uncrustify * Fixes the fragment offset and fragmentation flags masks ( 0x0FFF and 0xF000 -> 0x1FFF and 0xE000 ) Adds a configuration define ( ipconfigADVERTISE_DONT_FRAGMENT_FLAG ) as suggested by htibosch with a default value of zero for backwards compatibility Updates the comment that explains the discarding of incoming fragments as discussed with Aniruddha Kanhere * Adds the 'U' qualifier as requested by hs2gh fixes a typo in FreeRTOSIPConfigDefaults.h * Shortens the comment in FreeRTOSIPConfigDefaults as per htibosch's suggestion. * Renames ipconfigADVERTISE_DONT_FRAGMENT to ipconfigFORCE_IP_DONT_FRAGMENT * same as last commit, simply forgot to save this before pushing. Co-authored-by: Emil Popov <[email protected]> Co-authored-by: Aniruddha Kanhere <[email protected]> * fix IP buffer padding check on 64bit (#146) * fix IP buffer padding check on 64bit On 64 bit systems, FreeRTOS_IPInit() would assert ipconfigBUFFER_PADDING was equal to 14 to "make sure there is enough space in pucEthernetBuffer to store a pointer." This prevents the driver from requesting additional padding, so make the assert greater than or equal to 14. Also use the final ipBUFFER_PADDING value instead of ipconfigBUFFER_PADDING, which is probably what was intended? * Update after comments Co-authored-by: Thomas Pedersen <[email protected]> Co-authored-by: Aniruddha Kanhere <[email protected]> * Update readme.md (#189) Just fixing the "table of 3 types of STH32H7" so that it renders in github webpage. I had a tough time reading that table until I looked at the md source. You could also just put code fences around it: ~~~ /** * RAM area H747 H743 H742 Location * ------------------------------------------------ * DTCM 128k 128k 128k 0x20000000 * AXI-SRAM 511k 511k 384k 0x24000000 * * SRAM1 128k 128k 32k 0x30000000 * SRAM2 128k 128k 16k 0x30020000 * SRAM3 32k 32k - 0x30040000 * SRAM4 64k 64k 64k 0x38000000 * Backup SRAM 4k 4k 4k 0x38800000 */ ~~~ Co-authored-by: Aniruddha Kanhere <[email protected]> * Update files referencing aws_application_version.h to use iot_application_version.h (#188) * Update files referencing aws_application_version.h to use iot_application_version.h * Remove pic32 ethernet _Command_Version function to remove dependency on iot_application_version.h from amazon-freertos repository. * Remove function defs from header files (#190) * Add entropy * remove warning * Remove function defs from headers * Some corrections * More fixes and uncrustify * Remove the BaseType min function * Doxygen * Fix one CBMC proof * More cbmc proof fixes * More cbmc fixes * Some doxygen additions * Update last CBMC proof * Doxygen comments * Doxygen updates * Doxygen and spell check * Spell check and unit-test * Unit test fix * Update after comments * Update 2 after comments * Move function around * Uncrustify * Update after comments Co-authored-by: Gary Wicker <[email protected]> * Do not release a network buffer if it equals to NULL (#191) Co-authored-by: Hein Tibosch <[email protected]> Co-authored-by: Aniruddha Kanhere <[email protected]> * Circumvent Qemu MPS2 networking bug (#142) * Add support for MPS2 networking with lan9118/lan9220 * Fix uncrustify errors * Enable network interrupt handling * Add network interrupt support to Qemu MPS2 AN385 * Fix function comment * Fix Uncrustify errors * Fix Uncrustify errors * Fix Uncrustify Errors * Fix typo * Cirumvent Qemu MPS2 network bug * Remove commented code, add doxygen comment * Add a project for static analysis (#195) * Add entropy * remove warning * Remove unwanted changes * Update tcp_mem_stats.c * Add Coverity * Remove unused files * Add some features * clean up * More clean up * Unwanted additions removal * Clean up * Add 32-bit compile option * Update after comments * Uncrustify * Create uncrustify.yml * Update uncrustify.yml * Update uncrustify.yml * Update uncrustify.yml * Update uncrustify.yml * Update uncrustify.yml * Update uncrustify.yml * Update uncrustify.yml * Update uncrustify.yml * Update uncrustify.yml * Update uncrustify.yml * Update uncrustify.yml * Update uncrustify.yml * Add header in the socket file * Remove unwanted file * remove unwanted changes * First commit * Cleanup * Update: working version * Coverage of eARPGetCacheEntry * Update * Unit-test and clenaup * 100% line and function coverage * Uncrustify and update * 100% all coverage * Move files to correct location * Fix tests * uncrustified * Update ci.yml * Update * uncrustify and update after Hein's comments * Empty commit * Clenaup after @yanjos-dev's review * Update CI * Cleanup - pass 1 * Remove gdb * Uncrustify * Remove litani changes * Clean up * Uncrustify Co-authored-by: Hein Tibosch <[email protected]> Co-authored-by: Hein Tibosch <[email protected]> Co-authored-by: Mark Tuttle <[email protected]> Co-authored-by: Mark R. Tuttle <[email protected]> Co-authored-by: Thomas Pedersen <[email protected]> Co-authored-by: Thomas Pedersen <[email protected]> Co-authored-by: Hartmut Schaefer <[email protected]> Co-authored-by: evpopov <[email protected]> Co-authored-by: Emil Popov <[email protected]> Co-authored-by: shrewmouse1 <[email protected]> Co-authored-by: Paul Bartell <[email protected]> Co-authored-by: Gary Wicker <[email protected]> Co-authored-by: alfred gedeon <[email protected]>
1 parent e2c17a4 commit d6ed447

File tree

17 files changed

+1364
-339
lines changed

17 files changed

+1364
-339
lines changed

.github/lexicon.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ bwinscaling
8989
bytecount
9090
callbacklist
9191
calloc
92+
cambridge
9293
camen
9394
carriersense
9495
castingmacrofunctions
@@ -184,6 +185,7 @@ eagain
184185
eapplicationprocesscustomframehook
185186
earpcachehit
186187
earpcachemiss
188+
earpgetcacheentry
187189
earptimerevent
188190
ec
189191
ecantsendpacket
@@ -387,6 +389,7 @@ isdhcpsocket
387389
isn
388390
isp
389391
isr
392+
isrs
390393
iss
391394
itemvalue
392395
jd
@@ -427,6 +430,7 @@ lmaxlength
427430
lminlength
428431
lnetlength
429432
loffset
433+
longjmp
430434
loopback
431435
loopbackmode
432436
loptionname
@@ -743,6 +747,7 @@ pxdestinationaddress
743747
pxdnsmessageheader
744748
pxduplicatenetworkbufferwithdescriptor
745749
pxevent
750+
pxgetnetworkbuffer
746751
pxgetnetworkbufferwithdescriptor
747752
pxhandleconnected
748753
pxhandlereceive
@@ -917,6 +922,7 @@ srdbl
917922
srtt
918923
ss
919924
starttx
925+
stderr
920926
stmicroelectronics
921927
strcmp
922928
streambuffer

.github/workflows/ci.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ jobs:
2222
git submodule update --init vendor/unity
2323
cd ../..
2424
sudo apt-get install -y lcov
25-
cmake -S test/unit-test -B test/unit-test/build/ \
26-
-G "Unix Makefiles" \
27-
-DCMAKE_BUILD_TYPE=Debug \
28-
-DCMAKE_C_FLAGS='--coverage -Wall -Wextra -DNDEBUG'
25+
sudo apt-get install -y unifdef
26+
cmake -S test/unit-test -B test/unit-test/build/
2927
make -C test/unit-test/build/ all
3028
- name: Test
3129
run: |
@@ -35,11 +33,7 @@ jobs:
3533
- name: Coverage
3634
run: |
3735
make -C test/unit-test/build/ coverage
38-
lcov --rc lcov_branch_coverage=1 --remove test/unit-test/build/coverage.info '*test*' --output-file test/unit-test/build/coverage.info
39-
lcov --rc lcov_branch_coverage=1 --remove test/unit-test/build/coverage.info '*CMakeCCompilerId*' --output-file test/unit-test/build/coverage.info
40-
lcov --rc lcov_branch_coverage=1 --remove test/unit-test/build/coverage.info '*third-party*' --output-file test/unit-test/build/coverage.info
41-
lcov --rc lcov_branch_coverage=1 --remove test/unit-test/build/coverage.info '*mocks*' --output-file test/unit-test/build/coverage.info
42-
lcov --list test/unit-test/build/coverage.info
36+
lcov --list --rc lcov_branch_coverage=1 test/unit-test/build/coverage.info
4337
4438
spell-check:
4539
runs-on: ubuntu-latest
@@ -81,7 +75,7 @@ jobs:
8175
- name: Run Uncrustify
8276
run: |
8377
uncrustify --version
84-
find . -iname "*.[hc]" -exec uncrustify --check -c tools/uncrustify.cfg {} +
78+
find . -not -path '.*catch_assert.h' -iname "*.[hc]" -exec uncrustify --check -c tools/uncrustify.cfg {} +
8579
- name: Check For Trailing Whitespace
8680
run: |
8781
set +e

FreeRTOS_ARP.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ BaseType_t xARPWaitResolution( uint32_t ulIPAddress,
808808
break;
809809
}
810810

811+
/* Decrement the count. */
811812
uxSendCount--;
812813
}
813814
}

include/FreeRTOS_DNS.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
/* Application level configuration options. */
3434
#include "FreeRTOSIPConfig.h"
35+
#include "FreeRTOSIPConfigDefaults.h"
3536
#include "IPTraceMacroDefaults.h"
3637

3738

include/FreeRTOS_Sockets.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
/* FreeRTOS includes. */
3737
#include "FreeRTOS.h"
38+
#include "task.h"
3839

3940
/* Application level configuration options. */
4041
#include "FreeRTOSIPConfig.h"

test/unit-test/CMakeLists.txt

Lines changed: 96 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
cmake_minimum_required ( VERSION 3.13.0 )
2-
project ( "FreeRTOS-Plus-TCP test"
3-
VERSION 1.0.0
4-
LANGUAGES C )
1+
# Set the required version.
2+
cmake_minimum_required( VERSION 3.13.0 )
3+
4+
# Set the unit-test project.
5+
project( "FreeRTOS-Plus-TCP test"
6+
VERSION 1.0.0
7+
LANGUAGES C )
58

69
# Allow the project to be organized into folders.
710
set_property( GLOBAL PROPERTY USE_FOLDERS ON )
811

912
# Use C90.
10-
set( CMAKE_C_STANDARD 90 )
13+
set( CMAKE_C_STANDARD 99 )
1114
set( CMAKE_C_STANDARD_REQUIRED ON )
1215

1316
# Do not allow in-source build.
@@ -16,8 +19,26 @@ if( ${PROJECT_SOURCE_DIR} STREQUAL ${PROJECT_BINARY_DIR} )
1619
endif()
1720

1821
# Set global path variables.
19-
get_filename_component(__MODULE_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
20-
set(MODULE_ROOT_DIR ${__MODULE_ROOT_DIR} CACHE INTERNAL "FreeRTOS-Plus-TCP repository root.")
22+
get_filename_component( __MODULE_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE )
23+
set( MODULE_ROOT_DIR ${__MODULE_ROOT_DIR} CACHE INTERNAL "FreeRTOS-Plus-TCP repository root." )
24+
25+
# Set the unit-test directory.
26+
set( UNIT_TEST_DIR ${MODULE_ROOT_DIR}/test/unit-test CACHE INTERNAL "Unit-test directory." )
27+
28+
set( KERNEL_DIRECTORY ${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel )
29+
30+
# See if FreRTOS-Kernel is submoduled
31+
if( NOT EXISTS ${KERNEL_DIRECTORY}/include )
32+
# Inform the user of the actions
33+
message( STATUS "FreeRTOS-Kernel is required for this build. Submoduling it..." )
34+
execute_process( COMMAND git submodule update --init --checkout ${KERNEL_DIRECTORY}
35+
WORKING_DIRECTORY ${MODULE_ROOT_DIR} )
36+
endif()
37+
38+
# Set the include directories
39+
string( APPEND GLOBAL_INCLUDES "-I ${MODULE_ROOT_DIR}/include ")
40+
string( APPEND GLOBAL_INCLUDES "-I ${UNIT_TEST_DIR}/ConfigFiles " )
41+
string( APPEND GLOBAL_INCLUDES "-I ${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/include " )
2142

2243
# Configure options to always show in CMake GUI.
2344
option( BUILD_CLONE_SUBMODULES
@@ -29,17 +50,73 @@ set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
2950
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
3051
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
3152

32-
# ===================================== Coverity Analysis Configuration =================================================
3353

34-
# Include filepaths for source and include.
35-
include( ${MODULE_ROOT_DIR}/test/unit-test/TCPFilePaths.cmake )
54+
# Set TCP includes.
55+
set( TCP_INCLUDES "${MODULE_ROOT_DIR}/include/FreeRTOS_IP.h"
56+
"${MODULE_ROOT_DIR}/include/FreeRTOS_ARP.h"
57+
"${MODULE_ROOT_DIR}/include/FreeRTOS_Sockets.h"
58+
"${MODULE_ROOT_DIR}/include/FreeRTOS_IP_Private.h"
59+
"${MODULE_ROOT_DIR}/include/FreeRTOS_UDP_IP.h"
60+
"${MODULE_ROOT_DIR}/include/FreeRTOS_DHCP.h"
61+
"${MODULE_ROOT_DIR}/include/FreeRTOS_DNS.h"
62+
"${MODULE_ROOT_DIR}/include/FreeRTOS_TCP_IP.h"
63+
"${MODULE_ROOT_DIR}/include/FreeRTOS_TCP_WIN.h"
64+
"${MODULE_ROOT_DIR}/include/NetworkBufferManagement.h"
65+
"${MODULE_ROOT_DIR}/include/NetworkInterface.h" )
66+
67+
# Create a directory for the modified files
68+
file( MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/Annexed_TCP )
69+
# ===========================================================================
70+
71+
# ===========================================================================
72+
# Preprocess the TCP include files as they will be mocked later.
73+
foreach( file ${TCP_INCLUDES} )
74+
get_filename_component( MODIFIED_FILE ${file} NAME_WLE )
75+
76+
string(TOUPPER ${MODIFIED_FILE} Guard)
77+
78+
if(${MODIFIED_FILE} STREQUAL "NetworkBufferManagement" )
79+
set( Guard "NETWORK_BUFFER_MANAGEMENT_H" )
80+
else()
81+
set( Guard ${Guard}_H )
82+
endif()
83+
84+
# Remove IPConfigDefaults from the file
85+
execute_process( COMMAND sed "s,#include \"FreeRTOSIPConfigDefaults.h\",,g" ${file}
86+
OUTPUT_FILE ${CMAKE_BINARY_DIR}/Annexed_TCP/${MODIFIED_FILE}_tmp1.h )
87+
88+
# Add the FreeRTOSIPConfig file to each directory
89+
execute_process( COMMAND sed "1 i\#include \"FreeRTOSIPConfig.h\"" ${CMAKE_BINARY_DIR}/Annexed_TCP/${MODIFIED_FILE}_tmp1.h
90+
OUTPUT_FILE ${CMAKE_BINARY_DIR}/Annexed_TCP/${MODIFIED_FILE}_tmp.h )
3691

37-
# Target for Coverity analysis that builds the library.
38-
#add_library( coverity_analysis
39-
# ${MQTT_SOURCES}
40-
# ${MQTT_SERIALIZER_SOURCES} )
92+
# Use this tool to process all conditional declarations.
93+
execute_process( COMMAND unifdefall -U${Guard} -I ${MODULE_ROOT_DIR}/tools/CMock/vendor/unity/src
94+
-I ${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/include
95+
-I ${UNIT_TEST_DIR}/ConfigFiles
96+
-I ${MODULE_ROOT_DIR}/include
97+
-I ${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
98+
${CMAKE_BINARY_DIR}/Annexed_TCP/${MODIFIED_FILE}_tmp.h
99+
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
100+
OUTPUT_FILE ${CMAKE_BINARY_DIR}/Annexed_TCP/${MODIFIED_FILE}.h
101+
OUTPUT_QUIET )
41102

42-
# ==================================== Test Configuration ========================================
103+
# Add the guards back to the files
104+
execute_process( COMMAND sed -i "1 i\#ifndef ${Guard}" ${CMAKE_BINARY_DIR}/Annexed_TCP/${MODIFIED_FILE}.h )
105+
execute_process( COMMAND sed -i -e "$ a\#endif" ${CMAKE_BINARY_DIR}/Annexed_TCP/${MODIFIED_FILE}.h )
106+
107+
execute_process( COMMAND sed -i -E "s,[ ]*extern ipDECL_CAST_.*,,g" ${CMAKE_BINARY_DIR}/Annexed_TCP/${MODIFIED_FILE}.h )
108+
109+
endforeach()
110+
# ===========================================================================
111+
112+
113+
114+
# ===================================== Include the cmake configurations =================================================
115+
116+
# Include filepaths for source and include.
117+
include( ${UNIT_TEST_DIR}/TCPFilePaths.cmake )
118+
119+
# ==================================== Test Configuration ========================================
43120

44121
# Define a CMock resource path.
45122
set( CMOCK_DIR ${MODULE_ROOT_DIR}/tools/CMock CACHE INTERNAL "CMock library source directory." )
@@ -71,15 +148,16 @@ add_cmock_targets()
71148
# Add function to enable CMock based tests and coverage.
72149
include( ${MODULE_ROOT_DIR}/test/unit-test/cmock/create_test.cmake )
73150

151+
set(FILE_UNDER_TEST FreeRTOS_ARP)
152+
74153
# Include unit-test build configuration
75-
include( unit_test_build.cmake )
154+
include( ${UNIT_TEST_DIR}/FreeRTOS_ARP/ut.cmake )
76155

77156
# ==================================== Coverage Analysis configuration ========================================
78157

79158
# Add a target for running coverage on tests.
80159
add_custom_target( coverage
81160
COMMAND ${CMAKE_COMMAND} -P ${MODULE_ROOT_DIR}/test/unit-test/cmock/coverage.cmake
82-
DEPENDS cmock unity FreeRTOS_TCP_Unit_test
161+
DEPENDS cmock unity FreeRTOS_ARP_utest
83162
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
84163
)
85-

test/unit-test/ConfigFiles/FreeRTOSConfig.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#ifndef FREERTOS_CONFIG_H
3030
#define FREERTOS_CONFIG_H
3131

32-
#include <unity.h>
32+
#include <assert.h>
3333

3434
/*-----------------------------------------------------------
3535
* Application specific definitions.
@@ -79,9 +79,7 @@
7979
/* Run time stats gathering configuration options. */
8080
unsigned long ulGetRunTimeCounterValue( void ); /* Prototype of function that returns run time counter. */
8181
void vConfigureTimerForRunTimeStats( void ); /* Prototype of function that initialises the run time counter. */
82-
#define configGENERATE_RUN_TIME_STATS 1
83-
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() vConfigureTimerForRunTimeStats()
84-
#define portGET_RUN_TIME_COUNTER_VALUE() ulGetRunTimeCounterValue()
82+
#define configGENERATE_RUN_TIME_STATS 1
8583

8684
/* Co-routine related configuration options. */
8785
#define configUSE_CO_ROUTINES 1
@@ -117,7 +115,7 @@ void vConfigureTimerForRunTimeStats( void ); /* Prototype of function that in
117115
* uses the same semantics as the standard C assert() macro. */
118116
extern void vAssertCalled( unsigned long ulLine,
119117
const char * const pcFileName );
120-
#define configASSERT( x ) if( x == 0 ) TEST_ABORT()
118+
#define configASSERT( x ) assert( x )
121119

122120
#define configINCLUDE_MESSAGE_BUFFER_AMP_DEMO 0
123121
#if ( configINCLUDE_MESSAGE_BUFFER_AMP_DEMO == 1 )

test/unit-test/ConfigFiles/FreeRTOSIPConfig.h

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,10 @@
3232

3333
#define _static
3434

35-
#define ipconfigUSE_ARP_REMOVE_ENTRY 1
36-
#define ipconfigUSE_ARP_REVERSED_LOOKUP 1
37-
3835
/* Set to 1 to print out debug messages. If ipconfigHAS_DEBUG_PRINTF is set to
3936
* 1 then FreeRTOS_debug_printf should be defined to the function used to print
4037
* out the debugging messages. */
41-
#define ipconfigHAS_DEBUG_PRINTF 0
38+
#define ipconfigHAS_DEBUG_PRINTF 0
4239
#if ( ipconfigHAS_DEBUG_PRINTF == 1 )
4340
#define FreeRTOS_debug_printf( X ) configPRINTF( X )
4441
#endif
@@ -300,11 +297,18 @@ extern uint32_t ulRand();
300297
#define ipconfigSOCKET_HAS_USER_WAKE_CALLBACK ( 1 )
301298
#define ipconfigUSE_CALLBACKS ( 0 )
302299

300+
#define ipconfigUSE_NBNS ( 1 )
301+
302+
#define ipconfigUSE_LLMNR ( 1 )
303+
304+
#define ipconfigDNS_USE_CALLBACKS 1
305+
#define ipconfigUSE_ARP_REMOVE_ENTRY 1
306+
#define ipconfigUSE_ARP_REVERSED_LOOKUP 1
307+
308+
#define ipconfigETHERNET_MINIMUM_PACKET_BYTES ( 200 )
303309

304-
#define portINLINE
310+
#define ipconfigARP_STORES_REMOTE_ADDRESSES ( 1 )
305311

306-
void vApplicationMQTTGetKeys( const char ** ppcRootCA,
307-
const char ** ppcClientCert,
308-
const char ** ppcClientPrivateKey );
312+
#define ipconfigARP_USE_CLASH_DETECTION ( 1 )
309313

310314
#endif /* FREERTOS_IP_CONFIG_H */

0 commit comments

Comments
 (0)