@@ -140,12 +140,6 @@ struct xIPv6_Couple
140140
141141#if ( ipconfigCOMPATIBLE_WITH_SINGLE == 0 )
142142
143- #if ( ipconfigHAS_ROUTING_STATISTICS == 1 )
144- RoutingStats_t xRoutingStatistics ;
145- #endif
146-
147- /*-----------------------------------------------------------*/
148-
149143/**
150144 * @brief Add a network interface to the list of interfaces. Check if the interface was
151145 * already added in an earlier call.
@@ -379,29 +373,13 @@ struct xIPv6_Couple
379373 * @brief Find the end-point which has a given IPv4 address.
380374 *
381375 * @param[in] ulIPAddress The IP-address of interest, or 0 if any IPv4 end-point may be returned.
382- * @param[in] ulWhere For maintaining routing statistics ulWhere acts as an index to the data structure
383- * that keep track of the number of times 'FreeRTOS_FindEndPointOnIP_IPv4()'
384- * has been called from a particular location. Used only if
385- * ipconfigHAS_ROUTING_STATISTICS is enabled.
386376 *
387377 * @return The end-point found or NULL.
388378 */
389- NetworkEndPoint_t * FreeRTOS_FindEndPointOnIP_IPv4 ( uint32_t ulIPAddress ,
390- uint32_t ulWhere )
379+ NetworkEndPoint_t * FreeRTOS_FindEndPointOnIP_IPv4 ( uint32_t ulIPAddress )
391380 {
392381 NetworkEndPoint_t * pxEndPoint = pxNetworkEndPoints ;
393382
394- #if ( ipconfigHAS_ROUTING_STATISTICS == 1 )
395- uint32_t ulLocationCount = ( uint32_t ) ( sizeof ( xRoutingStatistics .ulLocationsIP ) / sizeof ( xRoutingStatistics .ulLocationsIP [ 0 ] ) );
396-
397- xRoutingStatistics .ulOnIp ++ ;
398-
399- if ( ulWhere < ulLocationCount )
400- {
401- xRoutingStatistics .ulLocationsIP [ ulWhere ]++ ;
402- }
403- #endif /* ( ipconfigHAS_ROUTING_STATISTICS == 1 ) */
404-
405383 while ( pxEndPoint != NULL )
406384 {
407385 #if ( ipconfigUSE_IPv4 != 0 )
@@ -456,12 +434,6 @@ struct xIPv6_Couple
456434 {
457435 NetworkEndPoint_t * pxEndPoint = pxNetworkEndPoints ;
458436
459- #if ( ipconfigHAS_ROUTING_STATISTICS == 1 )
460- {
461- xRoutingStatistics .ulOnMAC ++ ;
462- }
463- #endif
464-
465437 /* If input MAC address is NULL, return NULL. */
466438 if ( pxMACAddress == NULL )
467439 {
@@ -495,18 +467,12 @@ struct xIPv6_Couple
495467 * @brief Find an end-point that handles a given IPv4-address.
496468 *
497469 * @param[in] ulIPAddress The IP-address for which an end-point is looked-up.
498- * @param[in] ulWhere For maintaining routing statistics ulWhere acts as an index to the data structure
499- * that keep track of the number of times 'FreeRTOS_InterfaceEndPointOnNetMask()'
500- * has been called from a particular location. Used only if
501- * ipconfigHAS_ROUTING_STATISTICS is enabled.
502470 *
503471 * @return An end-point that has the same network mask as the given IP-address.
504472 */
505- NetworkEndPoint_t * FreeRTOS_FindEndPointOnNetMask ( uint32_t ulIPAddress ,
506- uint32_t ulWhere )
473+ NetworkEndPoint_t * FreeRTOS_FindEndPointOnNetMask ( uint32_t ulIPAddress )
507474 {
508- /* The 'ulWhere' parameter is only for debugging purposes. */
509- return FreeRTOS_InterfaceEndPointOnNetMask ( NULL , ulIPAddress , ulWhere );
475+ return FreeRTOS_InterfaceEndPointOnNetMask ( NULL , ulIPAddress );
510476 }
511477/*-----------------------------------------------------------*/
512478
@@ -517,30 +483,13 @@ struct xIPv6_Couple
517483 * pxInterface is NULL.
518484 * @param[in] ulIPAddress The IP-address for which an end-point is looked-up.
519485 *
520- * @param[in] ulWhere For maintaining routing statistics ulWhere acts as an index to the data structure
521- * that keep track of the number of times 'FreeRTOS_InterfaceEndPointOnNetMask()'
522- * has been called from a particular location. Used only if
523- * ipconfigHAS_ROUTING_STATISTICS is enabled.
524- *
525486 * @return An end-point that has the same network mask as the given IP-address.
526487 */
527488 NetworkEndPoint_t * FreeRTOS_InterfaceEndPointOnNetMask ( const NetworkInterface_t * pxInterface ,
528- uint32_t ulIPAddress ,
529- uint32_t ulWhere )
489+ uint32_t ulIPAddress )
530490 {
531491 NetworkEndPoint_t * pxEndPoint = pxNetworkEndPoints ;
532492
533- #if ( ipconfigHAS_ROUTING_STATISTICS == 1 )
534- uint32_t ulLocationCount = ( uint32_t ) ( sizeof ( xRoutingStatistics .ulLocations ) / sizeof ( xRoutingStatistics .ulLocations [ 0 ] ) );
535-
536- xRoutingStatistics .ulOnNetMask ++ ;
537-
538- if ( ulWhere < ulLocationCount )
539- {
540- xRoutingStatistics .ulLocations [ ulWhere ]++ ;
541- }
542- #endif /* ( ipconfigHAS_ROUTING_STATISTICS == 1 ) */
543-
544493 /* Find the best fitting end-point to reach a given IP-address. */
545494
546495 /*_RB_ Presumably then a broadcast reply could go out on a different end point to that on
@@ -572,8 +521,8 @@ struct xIPv6_Couple
572521 /* This was only for debugging. */
573522 if ( pxEndPoint == NULL )
574523 {
575- FreeRTOS_debug_printf ( ( "FreeRTOS_FindEndPointOnNetMask[%d] : No match for %xip\n" ,
576- ( unsigned ) ulWhere , ( unsigned ) FreeRTOS_ntohl ( ulIPAddress ) ) );
524+ FreeRTOS_debug_printf ( ( "FreeRTOS_FindEndPointOnNetMask: No match for %xip\n" ,
525+ ( unsigned ) FreeRTOS_ntohl ( ulIPAddress ) ) );
577526 }
578527
579528 return pxEndPoint ;
@@ -930,12 +879,6 @@ struct xIPv6_Couple
930879 * defined end-point has the best match.
931880 */
932881
933- #if ( ipconfigHAS_ROUTING_STATISTICS == 1 )
934- {
935- /* Some stats while developing. */
936- xRoutingStatistics .ulMatching ++ ;
937- }
938- #endif
939882 {
940883 uint16_t usFrameType = pxPacket -> xUDPPacket .xEthernetHeader .usFrameType ;
941884 IP_Address_t xIPAddressFrom ;
@@ -1216,13 +1159,11 @@ struct xIPv6_Couple
12161159 *
12171160 * @return The end-point found or NULL.
12181161 */
1219- NetworkEndPoint_t * FreeRTOS_FindEndPointOnIP_IPv4 ( uint32_t ulIPAddress ,
1220- uint32_t ulWhere )
1162+ NetworkEndPoint_t * FreeRTOS_FindEndPointOnIP_IPv4 ( uint32_t ulIPAddress )
12211163 {
12221164 NetworkEndPoint_t * pxResult = NULL ;
12231165
12241166 ( void ) ulIPAddress ;
1225- ( void ) ulWhere ;
12261167
12271168 if ( ( ulIPAddress == 0U ) || ( pxNetworkEndPoints -> ipv4_settings .ulIPAddress == ulIPAddress ) )
12281169 {
@@ -1265,10 +1206,9 @@ struct xIPv6_Couple
12651206 *
12661207 * @return An end-point that has the same network mask as the given IP-address.
12671208 */
1268- NetworkEndPoint_t * FreeRTOS_FindEndPointOnNetMask ( uint32_t ulIPAddress ,
1269- uint32_t ulWhere )
1209+ NetworkEndPoint_t * FreeRTOS_FindEndPointOnNetMask ( uint32_t ulIPAddress )
12701210 {
1271- return FreeRTOS_InterfaceEndPointOnNetMask ( NULL , ulIPAddress , ulWhere );
1211+ return FreeRTOS_InterfaceEndPointOnNetMask ( NULL , ulIPAddress );
12721212 }
12731213/*-----------------------------------------------------------*/
12741214
@@ -1337,13 +1277,11 @@ struct xIPv6_Couple
13371277 * @return An end-point that has the same network mask as the given IP-address.
13381278 */
13391279 NetworkEndPoint_t * FreeRTOS_InterfaceEndPointOnNetMask ( const NetworkInterface_t * pxInterface ,
1340- uint32_t ulIPAddress ,
1341- uint32_t ulWhere )
1280+ uint32_t ulIPAddress )
13421281 {
13431282 NetworkEndPoint_t * pxResult = NULL ;
13441283
13451284 ( void ) pxInterface ;
1346- ( void ) ulWhere ;
13471285
13481286 if ( ( ( ulIPAddress ^ pxNetworkEndPoints -> ipv4_settings .ulIPAddress ) & pxNetworkEndPoints -> ipv4_settings .ulNetMask ) == 0U )
13491287 {
0 commit comments