Changes in uspace/srv/net/tl/icmp/icmp.c [774e6d1a:4765152] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/icmp/icmp.c
r774e6d1a r4765152 405 405 measured_string_t names[] = { 406 406 { 407 ( uint8_t*) "ICMP_ERROR_REPORTING",407 (char *) "ICMP_ERROR_REPORTING", 408 408 20 409 409 }, 410 410 { 411 ( uint8_t*) "ICMP_ECHO_REPLYING",411 (char *) "ICMP_ECHO_REPLYING", 412 412 18 413 413 } … … 415 415 measured_string_t *configuration; 416 416 size_t count = sizeof(names) / sizeof(measured_string_t); 417 uint8_t*data;417 char *data; 418 418 int rc; 419 419 … … 696 696 case NET_ICMP_DEST_UNREACH: 697 697 rc = packet_translate_remote(icmp_globals.net_phone, &packet, 698 IPC_GET_PACKET( *call));698 IPC_GET_PACKET(call)); 699 699 if (rc != EOK) 700 700 return rc; 701 701 return icmp_destination_unreachable_msg_local(0, 702 ICMP_GET_CODE( *call), ICMP_GET_MTU(*call), packet);702 ICMP_GET_CODE(call), ICMP_GET_MTU(call), packet); 703 703 case NET_ICMP_SOURCE_QUENCH: 704 704 rc = packet_translate_remote(icmp_globals.net_phone, &packet, 705 IPC_GET_PACKET( *call));705 IPC_GET_PACKET(call)); 706 706 if (rc != EOK) 707 707 return rc; … … 709 709 case NET_ICMP_TIME_EXCEEDED: 710 710 rc = packet_translate_remote(icmp_globals.net_phone, &packet, 711 IPC_GET_PACKET( *call));711 IPC_GET_PACKET(call)); 712 712 if (rc != EOK) 713 713 return rc; 714 return icmp_time_exceeded_msg_local(0, ICMP_GET_CODE( *call),714 return icmp_time_exceeded_msg_local(0, ICMP_GET_CODE(call), 715 715 packet); 716 716 case NET_ICMP_PARAMETERPROB: 717 717 rc = packet_translate_remote(icmp_globals.net_phone, &packet, 718 IPC_GET_PACKET( *call));718 IPC_GET_PACKET(call)); 719 719 if (rc != EOK) 720 720 return rc; 721 return icmp_parameter_problem_msg_local(0, ICMP_GET_CODE( *call),722 ICMP_GET_POINTER( *call), packet);721 return icmp_parameter_problem_msg_local(0, ICMP_GET_CODE(call), 722 ICMP_GET_POINTER(call), packet); 723 723 default: 724 724 return ENOTSUP; … … 787 787 bool keep_on_going = true; 788 788 ipc_call_t answer; 789 size_t answer_count;789 int answer_count; 790 790 size_t length; 791 791 struct sockaddr *addr; … … 894 894 */ 895 895 int icmp_message_standalone(ipc_callid_t callid, ipc_call_t *call, 896 ipc_call_t *answer, size_t *answer_count)896 ipc_call_t *answer, int *answer_count) 897 897 { 898 898 packet_t *packet; … … 903 903 case NET_TL_RECEIVED: 904 904 rc = packet_translate_remote(icmp_globals.net_phone, &packet, 905 IPC_GET_PACKET( *call));905 IPC_GET_PACKET(call)); 906 906 if (rc != EOK) 907 907 return rc; 908 return icmp_received_msg_local(IPC_GET_DEVICE( *call), packet,909 SERVICE_ICMP, IPC_GET_ERROR( *call));908 return icmp_received_msg_local(IPC_GET_DEVICE(call), packet, 909 SERVICE_ICMP, IPC_GET_ERROR(call)); 910 910 911 911 case NET_ICMP_INIT: 912 return icmp_process_client_messages(callid, * call);912 return icmp_process_client_messages(callid, * call); 913 913 914 914 default: … … 936 936 while (true) { 937 937 ipc_call_t answer; 938 size_t answer_count;938 int answer_count; 939 939 940 940 /* Clear the answer structure */
Note:
See TracChangeset
for help on using the changeset viewer.