|
202 | 202 |
|
203 | 203 | if( eReturn == eARPCacheMiss ) |
204 | 204 | { |
205 | | - FreeRTOS_printf( ( "eNDGetCacheEntry: lookup %pip miss\n", pxIPAddress->ucBytes ) ); |
| 205 | + FreeRTOS_printf( ( "eNDGetCacheEntry: lookup %pip miss\n", ( void * ) pxIPAddress->ucBytes ) ); |
206 | 206 | } |
207 | 207 |
|
208 | 208 | if( eReturn == eARPCacheMiss ) |
|
219 | 219 | } |
220 | 220 |
|
221 | 221 | FreeRTOS_printf( ( "eNDGetCacheEntry: FindEndPointOnIP failed for %pip (endpoint %pip)\n", |
222 | | - pxIPAddress->ucBytes, |
223 | | - pxEndPoint->ipv6_settings.xIPAddress.ucBytes ) ); |
| 222 | + ( void * ) pxIPAddress->ucBytes, |
| 223 | + ( void * ) pxEndPoint->ipv6_settings.xIPAddress.ucBytes ) ); |
224 | 224 | } |
225 | 225 | else |
226 | 226 | { |
|
239 | 239 | } |
240 | 240 | } |
241 | 241 |
|
242 | | - FreeRTOS_printf( ( "eNDGetCacheEntry: LinkLocal %pip \"%s\"\n", pxIPAddress->ucBytes, |
| 242 | + FreeRTOS_printf( ( "eNDGetCacheEntry: LinkLocal %pip \"%s\"\n", ( void * ) pxIPAddress->ucBytes, |
243 | 243 | ( eReturn == eARPCacheHit ) ? "hit" : "miss" ) ); |
244 | 244 | } |
245 | 245 | else |
|
249 | 249 | if( pxEndPoint != NULL ) |
250 | 250 | { |
251 | 251 | ( void ) memcpy( pxIPAddress->ucBytes, pxEndPoint->ipv6_settings.xGatewayAddress.ucBytes, ipSIZE_OF_IPv6_ADDRESS ); |
252 | | - FreeRTOS_printf( ( "eNDGetCacheEntry: Using gw %pip\n", pxIPAddress->ucBytes ) ); |
253 | | - FreeRTOS_printf( ( "eNDGetCacheEntry: From addr %pip\n", pxEndPoint->ipv6_settings.xIPAddress.ucBytes ) ); |
| 252 | + FreeRTOS_printf( ( "eNDGetCacheEntry: Using gw %pip\n", ( void * ) pxIPAddress->ucBytes ) ); |
| 253 | + FreeRTOS_printf( ( "eNDGetCacheEntry: From addr %pip\n", ( void * ) pxEndPoint->ipv6_settings.xIPAddress.ucBytes ) ); |
254 | 254 |
|
255 | 255 | /* See if the gateway has an entry in the cache. */ |
256 | 256 | eReturn = prvNDCacheLookup( pxIPAddress, pxMACAddress, ppxEndPoint ); |
257 | 257 |
|
258 | 258 | if( *ppxEndPoint != NULL ) |
259 | 259 | { |
260 | | - FreeRTOS_printf( ( "eNDGetCacheEntry: found end-point %pip\n", ( *ppxEndPoint )->ipv6_settings.xIPAddress.ucBytes ) ); |
| 260 | + FreeRTOS_printf( ( "eNDGetCacheEntry: found end-point %pip\n", ( void * ) ( *ppxEndPoint )->ipv6_settings.xIPAddress.ucBytes ) ); |
261 | 261 | } |
262 | 262 |
|
263 | 263 | *( ppxEndPoint ) = pxEndPoint; |
|
325 | 325 | } |
326 | 326 | else |
327 | 327 | { |
328 | | - FreeRTOS_printf( ( "vNDRefreshCacheEntry: %pip not found\n", pxIPAddress->ucBytes ) ); |
| 328 | + FreeRTOS_printf( ( "vNDRefreshCacheEntry: %pip not found\n", ( void * ) pxIPAddress->ucBytes ) ); |
329 | 329 | } |
330 | 330 | } |
331 | 331 | /*-----------------------------------------------------------*/ |
|
442 | 442 |
|
443 | 443 | FreeRTOS_debug_printf( ( "prvCacheLookup6[ %d ] %pip with %02x:%02x:%02x:%02x:%02x:%02x\n", |
444 | 444 | ( int ) x, |
445 | | - pxAddressToLookup->ucBytes, |
| 445 | + ( void * ) pxAddressToLookup->ucBytes, |
446 | 446 | pxMACAddress->ucBytes[ 0 ], |
447 | 447 | pxMACAddress->ucBytes[ 1 ], |
448 | 448 | pxMACAddress->ucBytes[ 2 ], |
|
459 | 459 |
|
460 | 460 | if( eReturn == eARPCacheMiss ) |
461 | 461 | { |
462 | | - FreeRTOS_printf( ( "prvNDCacheLookup %pip Miss\n", pxAddressToLookup->ucBytes ) ); |
| 462 | + FreeRTOS_printf( ( "prvNDCacheLookup %pip Miss\n", ( void * ) pxAddressToLookup->ucBytes ) ); |
463 | 463 |
|
464 | 464 | if( ppxEndPoint != NULL ) |
465 | 465 | { |
|
491 | 491 | FreeRTOS_printf( ( "ND %2d: age %3u - %pip MAC %02x-%02x-%02x-%02x-%02x-%02x endPoint %s\n", |
492 | 492 | ( int ) x, |
493 | 493 | xNDCache[ x ].ucAge, |
494 | | - xNDCache[ x ].xIPAddress.ucBytes, |
| 494 | + ( void * ) xNDCache[ x ].xIPAddress.ucBytes, |
495 | 495 | xNDCache[ x ].xMACAddress.ucBytes[ 0 ], |
496 | 496 | xNDCache[ x ].xMACAddress.ucBytes[ 1 ], |
497 | 497 | xNDCache[ x ].xMACAddress.ucBytes[ 2 ], |
|
729 | 729 | { |
730 | 730 | /* No endpoint found for the target IP-address. */ |
731 | 731 | FreeRTOS_printf( ( "SendPingRequestIPv6: no end-point found for %pip\n", |
732 | | - pxIPAddress->ucBytes ) ); |
| 732 | + ( void * ) pxIPAddress->ucBytes ) ); |
733 | 733 | } |
734 | 734 | else if( ( uxGetNumberOfFreeNetworkBuffers() >= 3U ) && ( uxNumberOfBytesToSend >= 1U ) && ( xEnoughSpace != pdFALSE ) ) |
735 | 735 | { |
|
761 | 761 | pxICMPPacket->xIPHeader.usPayloadLength = FreeRTOS_htons( sizeof( ICMPEcho_IPv6_t ) + uxNumberOfBytesToSend ); |
762 | 762 | ( void ) memcpy( pxICMPPacket->xIPHeader.xDestinationAddress.ucBytes, pxIPAddress->ucBytes, ipSIZE_OF_IPv6_ADDRESS ); |
763 | 763 | ( void ) memcpy( pxICMPPacket->xIPHeader.xSourceAddress.ucBytes, pxEndPoint->ipv6_settings.xIPAddress.ucBytes, ipSIZE_OF_IPv6_ADDRESS ); |
764 | | - FreeRTOS_printf( ( "ICMP send from %pip\n", pxICMPPacket->xIPHeader.xSourceAddress.ucBytes ) ); |
| 764 | + FreeRTOS_printf( ( "ICMP send from %pip\n", ( void * ) pxICMPPacket->xIPHeader.xSourceAddress.ucBytes ) ); |
765 | 765 |
|
766 | 766 | /* Fill in the basic header information. */ |
767 | 767 | pxICMPHeader->ucTypeOfMessage = ipICMP_PING_REQUEST_IPv6; |
|
949 | 949 | FreeRTOS_printf( ( "ICMPv6_recv %d (%s) from %pip to %pip end-point = %s\n", |
950 | 950 | pxICMPHeader_IPv6->ucTypeOfMessage, |
951 | 951 | pcMessageType( ( BaseType_t ) pxICMPHeader_IPv6->ucTypeOfMessage ), |
952 | | - pxICMPPacket->xIPHeader.xSourceAddress.ucBytes, |
953 | | - pxICMPPacket->xIPHeader.xDestinationAddress.ucBytes, |
| 952 | + ( void * ) pxICMPPacket->xIPHeader.xSourceAddress.ucBytes, |
| 953 | + ( void * ) pxICMPPacket->xIPHeader.xDestinationAddress.ucBytes, |
954 | 954 | pcEndpointName( pxEndPoint, pcAddress, sizeof( pcAddress ) ) ) ); |
955 | 955 | } |
956 | 956 | } |
|
1032 | 1032 | char pcName[ 40 ]; |
1033 | 1033 | ( void ) memset( &( pcName ), 0, sizeof( pcName ) ); |
1034 | 1034 | FreeRTOS_printf( ( "Lookup %pip : endpoint %s\n", |
1035 | | - pxICMPHeader_IPv6->xIPv6Address.ucBytes, |
| 1035 | + ( void * ) pxICMPHeader_IPv6->xIPv6Address.ucBytes, |
1036 | 1036 | pcEndpointName( pxEndPointFound, pcName, sizeof( pcName ) ) ) ); |
1037 | 1037 |
|
1038 | 1038 | if( pxEndPointFound != NULL ) |
|
1055 | 1055 | xCompare = memcmp( pxICMPHeader_IPv6->xIPv6Address.ucBytes, pxEndPoint->ipv6_settings.xIPAddress.ucBytes, ipSIZE_OF_IPv6_ADDRESS ); |
1056 | 1056 |
|
1057 | 1057 | FreeRTOS_printf( ( "ND NS for %pip endpoint %pip %s\n", |
1058 | | - pxICMPHeader_IPv6->xIPv6Address.ucBytes, |
1059 | | - pxEndPoint->ipv6_settings.xIPAddress.ucBytes, |
| 1058 | + ( void * ) pxICMPHeader_IPv6->xIPv6Address.ucBytes, |
| 1059 | + ( void * ) pxEndPoint->ipv6_settings.xIPAddress.ucBytes, |
1060 | 1060 | ( xCompare == 0 ) ? "Reply" : "Ignore" ) ); |
1061 | 1061 |
|
1062 | 1062 | if( xCompare == 0 ) |
|
1086 | 1086 | &( pxICMPHeader_IPv6->xIPv6Address ), |
1087 | 1087 | pxEndPoint ); |
1088 | 1088 | FreeRTOS_printf( ( "NEIGHBOR_ADV from %pip\n", |
1089 | | - pxICMPHeader_IPv6->xIPv6Address.ucBytes ) ); |
| 1089 | + ( void * ) pxICMPHeader_IPv6->xIPv6Address.ucBytes ) ); |
1090 | 1090 |
|
1091 | 1091 | #if ( ipconfigUSE_RA != 0 ) |
1092 | 1092 |
|
|
0 commit comments