Rev 4501 | Rev 4695 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4501 | Rev 4558 | ||
---|---|---|---|
Line 53... | Line 53... | ||
53 | 53 | ||
54 | int arp_device_req( int arp_phone, device_id_t device_id, services_t protocol, services_t netif, measured_string_ref address ){ |
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; |
55 | aid_t message_id; |
56 | ipcarg_t result; |
56 | ipcarg_t result; |
57 | 57 | ||
58 | message_id = async_send_3( arp_phone, NET_ARP_DEVICE, device_id, protocol, netif, NULL ); |
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 ); |
59 | measured_strings_send( arp_phone, address, 1 ); |
60 | async_wait_for( message_id, & result ); |
60 | async_wait_for( message_id, & result ); |
61 | return result; |
61 | return ( int ) result; |
62 | } |
62 | } |
63 | 63 | ||
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 ){ |
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 ); |
65 | return generic_translate_req( arp_phone, NET_ARP_TRANSLATE, device_id, protocol, address, 1, translation, data ); |
66 | } |
66 | } |
67 | 67 | ||
68 | int arp_clear_device_req( int arp_phone, device_id_t device_id ){ |
68 | int arp_clear_device_req( int arp_phone, device_id_t device_id ){ |
69 | return async_req_1_0( arp_phone, NET_ARP_CLEAR_DEVICE, device_id ); |
69 | return ( int ) async_req_1_0( arp_phone, NET_ARP_CLEAR_DEVICE, ( ipcarg_t ) device_id ); |
70 | } |
70 | } |
71 | 71 | ||
72 | int arp_clean_cache_req( int arp_phone ){ |
72 | int arp_clean_cache_req( int arp_phone ){ |
73 | return async_req_0_0( arp_phone, NET_ARP_CLEAN_CACHE ); |
73 | return ( int ) async_req_0_0( arp_phone, NET_ARP_CLEAN_CACHE ); |
74 | } |
74 | } |
75 | 75 | ||
76 | int arp_connect_module( services_t service ){ |
76 | int arp_connect_module( services_t service ){ |
77 | return connect_to_service( SERVICE_ARP ); |
77 | return connect_to_service( SERVICE_ARP ); |
78 | } |
78 | } |