@@ -1153,18 +1153,15 @@ BaseType_t FreeRTOS_IPInit( const uint8_t ucIPAddress[ ipIP_ADDRESS_LENGTH_BYTES
11531153 configASSERT ( ipconfigBUFFER_PADDING == 14 );
11541154 }
11551155
1156- #ifndef _lint
1157- {
1158- /* Check if MTU is big enough. */
1159- configASSERT ( ( ( size_t ) ipconfigNETWORK_MTU ) >= ( ipSIZE_OF_IPv4_HEADER + ipSIZE_OF_TCP_HEADER + ipconfigTCP_MSS ) );
1160- /* Check structure packing is correct. */
1161- configASSERT ( sizeof ( EthernetHeader_t ) == ipEXPECTED_EthernetHeader_t_SIZE );
1162- configASSERT ( sizeof ( ARPHeader_t ) == ipEXPECTED_ARPHeader_t_SIZE );
1163- configASSERT ( sizeof ( IPHeader_t ) == ipEXPECTED_IPHeader_t_SIZE );
1164- configASSERT ( sizeof ( ICMPHeader_t ) == ipEXPECTED_ICMPHeader_t_SIZE );
1165- configASSERT ( sizeof ( UDPHeader_t ) == ipEXPECTED_UDPHeader_t_SIZE );
1166- }
1167- #endif /* ifndef _lint */
1156+ /* Check if MTU is big enough. */
1157+ configASSERT ( ( ( size_t ) ipconfigNETWORK_MTU ) >= ( ipSIZE_OF_IPv4_HEADER + ipSIZE_OF_TCP_HEADER + ipconfigTCP_MSS ) );
1158+ /* Check structure packing is correct. */
1159+ configASSERT ( sizeof ( EthernetHeader_t ) == ipEXPECTED_EthernetHeader_t_SIZE );
1160+ configASSERT ( sizeof ( ARPHeader_t ) == ipEXPECTED_ARPHeader_t_SIZE );
1161+ configASSERT ( sizeof ( IPHeader_t ) == ipEXPECTED_IPHeader_t_SIZE );
1162+ configASSERT ( sizeof ( ICMPHeader_t ) == ipEXPECTED_ICMPHeader_t_SIZE );
1163+ configASSERT ( sizeof ( UDPHeader_t ) == ipEXPECTED_UDPHeader_t_SIZE );
1164+
11681165 /* Attempt to create the queue used to communicate with the IP task. */
11691166 xNetworkEventQueue = xQueueCreate ( ipconfigEVENT_QUEUE_LENGTH , sizeof ( IPStackEvent_t ) );
11701167 configASSERT ( xNetworkEventQueue != NULL );
0 commit comments