Skip to content

Commit 6020036

Browse files
committed
Updating build check enable all config to enable all config macros
1 parent c9305da commit 6020036

File tree

6 files changed

+48
-6
lines changed

6 files changed

+48
-6
lines changed

source/FreeRTOS_DHCPv6.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static void prvCreateDHCPv6Socket( NetworkEndPoint_t * pxEndPoint );
177177
static void prvCloseDHCPv6Socket( NetworkEndPoint_t * pxEndPoint );
178178

179179
#if ( ipconfigHAS_DEBUG_PRINTF == 1 )
180-
static const char * prvStateName( eDHCPState_t eState );
180+
const char * prvStateName( eDHCPState_t eState );
181181
#endif
182182

183183
static BaseType_t xDHCPv6Process_PassReplyToEndPoint( struct xNetworkEndPoint * pxEndPoint );
@@ -1386,7 +1386,7 @@ static BaseType_t prvDHCPv6Analyse( const uint8_t * pucAnswer,
13861386
* @return A descriptive string.
13871387
*/
13881388
#if ( ipconfigHAS_DEBUG_PRINTF == 1 )
1389-
static const char * prvStateName( eDHCPState_t eState )
1389+
const char * prvStateName( eDHCPState_t eState )
13901390
{
13911391
const char * pcName;
13921392

source/FreeRTOS_DNS.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@
127127
/**
128128
* @brief The IPv6 link-scope multicast MAC address
129129
*/
130-
const
131130
const MACAddress_t xLLMNR_MacAdressIPv6 = { { 0x33, 0x33, 0x00, 0x01, 0x00, 0x03 } };
132131
#endif /* ipconfigUSE_LLMNR && ipconfigUSE_IPv6 */
133132

source/FreeRTOS_DNS_Parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@
11441144
#endif
11451145

11461146
#if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
1147-
if( xApplicationDNSQueryHook( xSet.pcName ) != pdFALSE )
1147+
if( xApplicationDNSQueryHook( ( const char * ) ucNBNSName ) != pdFALSE )
11481148
#else
11491149
if( xApplicationDNSQueryHook_Multi( &( xEndPoint ), ( const char * ) ucNBNSName ) != pdFALSE )
11501150
#endif /* if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 ) */

source/FreeRTOS_ND.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
NetworkEndPoint_t ** ppxEndPoint );
9393

9494
#if ( ipconfigHAS_PRINTF == 1 )
95-
static const char * pcMessageType( BaseType_t xType );
95+
const char * pcMessageType( BaseType_t xType );
9696
#endif
9797

9898
/** @brief Find the first end-point of type IPv6. */
@@ -820,7 +820,7 @@
820820
*
821821
* @return A null-terminated string that represents the type the kind of message.
822822
*/
823-
static const char * pcMessageType( BaseType_t xType )
823+
const char * pcMessageType( BaseType_t xType )
824824
{
825825
const char * pcReturn;
826826

test/build-combination/AllEnable/FreeRTOSIPConfig.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,29 @@
3434
#ifndef FREERTOS_IP_CONFIG_H
3535
#define FREERTOS_IP_CONFIG_H
3636

37+
#define ipconfigUSE_DHCPv6 1
38+
#define ipconfigIPv4_BACKWARD_COMPATIBLE 1
39+
#define ipconfigUSE_ARP_REVERSED_LOOKUP 1
40+
#define ipconfigUSE_ARP_REMOVE_ENTRY 1
41+
#define ipconfigARP_STORES_REMOTE_ADDRESSES 1
42+
#define ipconfigUSE_LINKED_RX_MESSAGES 1
43+
#define ipconfigFORCE_IP_DONT_FRAGMENT 1
44+
#define ipconfigUDP_PASS_ZERO_CHECKSUM_PACKETS 1
45+
#define ipconfigDHCP_FALL_BACK_AUTO_IP 1
46+
#define ipconfigARP_USE_CLASH_DETECTION 1
47+
#define ipconfigUSE_LLMNR 1
48+
#define ipconfigUSE_NBNS 1
49+
#define ipconfigUSE_MDNS 1
50+
#define ipconfigSUPPORT_OUTGOING_PINGS 1
51+
#define ipconfigETHERNET_DRIVER_FILTERS_PACKETS 1
52+
#define ipconfigZERO_COPY_TX_DRIVER 1
53+
#define ipconfigZERO_COPY_RX_DRIVER 1
54+
#define ipconfigDRIVER_INCLUDED_TX_IP_CHECKSUM 1
55+
#define ipconfigSOCKET_HAS_USER_SEMAPHORE 1
56+
#define ipconfigSELECT_USES_NOTIFY 1
57+
#define ipconfigSUPPORT_SIGNALS 1
58+
#define ipconfigPROCESS_CUSTOM_ETHERNET_FRAMES 1
59+
3760
/* Set to 1 to print out debug messages. If ipconfigHAS_DEBUG_PRINTF is set to
3861
* 1 then FreeRTOS_debug_printf should be defined to the function used to print
3962
* out the debugging messages. */

test/build-combination/Common/main.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
#include <string.h>
4343
#include <stdarg.h>
44+
#include <time.h>
4445

4546
#define mainHOST_NAME "Build Combination"
4647
#define mainDEVICE_NICK_NAME "Build_Combination"
@@ -348,6 +349,25 @@ struct xNetworkInterface * pxFillInterfaceDescriptor( BaseType_t xEMACIndex,
348349
}
349350
#endif
350351

352+
#if ( ipconfigPROCESS_CUSTOM_ETHERNET_FRAMES != 0)
353+
354+
/*
355+
* The stack will call this user hook for all Ethernet frames that it
356+
* does not support, i.e. other than IPv4, IPv6 and ARP ( for the moment )
357+
* If this hook returns eReleaseBuffer or eProcessBuffer, the stack will
358+
* release and reuse the network buffer. If this hook returns
359+
* eReturnEthernetFrame, that means user code has reused the network buffer
360+
* to generate a response and the stack will send that response out.
361+
* If this hook returns eFrameConsumed, the user code has ownership of the
362+
* network buffer and has to release it when it's done.
363+
*/
364+
eFrameProcessingResult_t eApplicationProcessCustomFrameHook( NetworkBufferDescriptor_t * const pxNetworkBuffer )
365+
{
366+
(void) (pxNetworkBuffer);
367+
return eNetworkDownEvent;
368+
}
369+
370+
#endif
351371
void vApplicationPingReplyHook( ePingReplyStatus_t eStatus,
352372
uint16_t usIdentifier )
353373
{

0 commit comments

Comments
 (0)