Changes in uspace/srv/net/il/arp/arp_remote.c [a64c64d:aadf01e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/arp/arp_remote.c
ra64c64d raadf01e 52 52 #include "arp_messages.h" 53 53 54 int arp_connect_module(services_t service){ 55 if(service != SERVICE_ARP){ 56 return EINVAL; 57 } 58 return connect_to_service(SERVICE_ARP); 54 int arp_device_req(int arp_phone, device_id_t device_id, services_t protocol, services_t netif, measured_string_ref address){ 55 aid_t message_id; 56 ipcarg_t result; 57 58 message_id = async_send_3(arp_phone, NET_ARP_DEVICE, (ipcarg_t) device_id, protocol, netif, NULL); 59 measured_strings_send(arp_phone, address, 1); 60 async_wait_for(message_id, &result); 61 return (int) result; 59 62 } 60 63 61 int arp_clean_cache_req(int arp_phone){ 62 return (int) async_req_0_0(arp_phone, NET_ARP_CLEAN_CACHE); 64 int arp_translate_req(int arp_phone, device_id_t device_id, services_t protocol, measured_string_ref address, measured_string_ref * translation, char ** data){ 65 return generic_translate_req(arp_phone, NET_ARP_TRANSLATE, device_id, protocol, address, 1, translation, data); 66 } 67 68 int arp_clear_device_req(int arp_phone, device_id_t device_id){ 69 return (int) async_req_1_0(arp_phone, NET_ARP_CLEAR_DEVICE, (ipcarg_t) device_id); 63 70 } 64 71 … … 73 80 } 74 81 75 int arp_clea r_device_req(int arp_phone, device_id_t device_id){76 return (int) async_req_ 1_0(arp_phone, NET_ARP_CLEAR_DEVICE, (ipcarg_t) device_id);82 int arp_clean_cache_req(int arp_phone){ 83 return (int) async_req_0_0(arp_phone, NET_ARP_CLEAN_CACHE); 77 84 } 78 85 79 int arp_device_req(int arp_phone, device_id_t device_id, services_t protocol, services_t netif, measured_string_ref address){ 80 aid_t message_id; 81 ipcarg_t result; 82 83 message_id = async_send_3(arp_phone, NET_ARP_DEVICE, (ipcarg_t) device_id, protocol, netif, NULL); 84 measured_strings_send(arp_phone, address, 1); 85 async_wait_for(message_id, &result); 86 return (int) result; 86 int arp_connect_module(services_t service){ 87 if(service != SERVICE_ARP){ 88 return EINVAL; 89 } 90 return connect_to_service(SERVICE_ARP); 87 91 } 88 92 … … 91 95 } 92 96 93 int arp_translate_req(int arp_phone, device_id_t device_id, services_t protocol, measured_string_ref address, measured_string_ref * translation, char ** data){94 return generic_translate_req(arp_phone, NET_ARP_TRANSLATE, device_id, protocol, address, 1, translation, data);95 }96 97 97 /** @} 98 98 */
Note:
See TracChangeset
for help on using the changeset viewer.