mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-08-06 18:24:41 +08:00
Fix build issue in FreeRTOS+TCP QEMU demo when DHCP enabled (#1092)
* Fix build issue in QEMU demo when DHCP enabled
This commit is contained in:
@ -399,9 +399,7 @@
|
|||||||
return xReturn;
|
return xReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* ipconfigUSE_TCP */
|
#if ( ipconfigUSE_DHCP_HOOK != 0 )
|
||||||
|
|
||||||
#if ( ( ipconfigUSE_TCP == 1 ) && ( ipconfigUSE_DHCP_HOOK != 0 ) )
|
|
||||||
|
|
||||||
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
|
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
|
||||||
eDHCPCallbackAnswer_t xApplicationDHCPHook( eDHCPCallbackPhase_t eDHCPPhase,
|
eDHCPCallbackAnswer_t xApplicationDHCPHook( eDHCPCallbackPhase_t eDHCPPhase,
|
||||||
@ -416,5 +414,7 @@
|
|||||||
return eDHCPContinue;
|
return eDHCPContinue;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* if ( ( ipconfigUSE_TCP == 1 ) && ( ipconfigUSE_DHCP_HOOK != 0 ) ) */
|
#endif /* if ( ipconfigUSE_DHCP_HOOK != 0 ) */
|
||||||
|
|
||||||
|
#endif /* ipconfigUSE_TCP */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
@ -395,4 +395,22 @@
|
|||||||
return xReturn;
|
return xReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if ( ipconfigUSE_DHCP_HOOK != 0 )
|
||||||
|
|
||||||
|
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
|
||||||
|
eDHCPCallbackAnswer_t xApplicationDHCPHook( eDHCPCallbackPhase_t eDHCPPhase,
|
||||||
|
uint32_t ulIPAddress )
|
||||||
|
#else /* ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 ) */
|
||||||
|
eDHCPCallbackAnswer_t xApplicationDHCPHook_Multi( eDHCPCallbackPhase_t eDHCPPhase,
|
||||||
|
struct xNetworkEndPoint * pxEndPoint,
|
||||||
|
IP_Address_t * pxIPAddress )
|
||||||
|
#endif /* ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 ) */
|
||||||
|
{
|
||||||
|
/* Provide a stub for this function. */
|
||||||
|
return eDHCPContinue;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* if ( ipconfigUSE_DHCP_HOOK != 0 )*/
|
||||||
|
|
||||||
#endif /* ipconfigUSE_TCP */
|
#endif /* ipconfigUSE_TCP */
|
||||||
|
@ -164,6 +164,8 @@ void main_tcp_echo_client_tasks( void )
|
|||||||
|
|
||||||
#if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 )
|
#if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 0 )
|
||||||
/* Initialise the interface descriptor for WinPCap. */
|
/* Initialise the interface descriptor for WinPCap. */
|
||||||
|
extern NetworkInterface_t * pxMPS2_FillInterfaceDescriptor( BaseType_t xEMACIndex,
|
||||||
|
NetworkInterface_t * pxInterface );
|
||||||
pxMPS2_FillInterfaceDescriptor( 0, &( xInterfaces[ 0 ] ) );
|
pxMPS2_FillInterfaceDescriptor( 0, &( xInterfaces[ 0 ] ) );
|
||||||
|
|
||||||
/* === End-point 0 === */
|
/* === End-point 0 === */
|
||||||
|
Reference in New Issue
Block a user