Changeset 79ae36dd in mainline for uspace/lib/net/il
- Timestamp:
- 2011-06-08T19:01:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0eff68e
- Parents:
- 764d71e
- Location:
- uspace/lib/net/il
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/il/arp_remote.c
r764d71e r79ae36dd 40 40 41 41 #include <async.h> 42 #include <async_obsolete.h> 42 43 #include <errno.h> 43 44 #include <ipc/services.h> … … 68 69 int arp_clean_cache_req(int arp_phone) 69 70 { 70 return (int) async_ req_0_0(arp_phone, NET_ARP_CLEAN_CACHE);71 return (int) async_obsolete_req_0_0(arp_phone, NET_ARP_CLEAN_CACHE); 71 72 } 72 73 … … 87 88 sysarg_t result; 88 89 89 message_id = async_ send_2(arp_phone, NET_ARP_CLEAR_ADDRESS,90 message_id = async_obsolete_send_2(arp_phone, NET_ARP_CLEAR_ADDRESS, 90 91 (sysarg_t) device_id, protocol, NULL); 91 92 measured_strings_send(arp_phone, address, 1); … … 104 105 int arp_clear_device_req(int arp_phone, device_id_t device_id) 105 106 { 106 return (int) async_ req_1_0(arp_phone, NET_ARP_CLEAR_DEVICE,107 return (int) async_obsolete_req_1_0(arp_phone, NET_ARP_CLEAR_DEVICE, 107 108 (sysarg_t) device_id); 108 109 } … … 137 138 sysarg_t result; 138 139 139 message_id = async_ send_3(arp_phone, NET_ARP_DEVICE,140 message_id = async_obsolete_send_3(arp_phone, NET_ARP_DEVICE, 140 141 (sysarg_t) device_id, protocol, netif, NULL); 141 142 measured_strings_send(arp_phone, address, 1); -
uspace/lib/net/il/il_skel.c
r764d71e r79ae36dd 42 42 #include <net/modules.h> 43 43 44 // FIXME: remove this header 45 #include <kernel/ipc/ipc_methods.h> 46 44 47 /** Default thread for new connections. 45 48 * … … 75 78 * result. 76 79 */ 77 if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) || 78 (res == EHANGUP)) 80 if ((!IPC_GET_IMETHOD(call)) || (res == EHANGUP)) 79 81 return; 80 82 -
uspace/lib/net/il/ip_remote.c
r764d71e r79ae36dd 44 44 #include <packet_client.h> 45 45 #include <generic.h> 46 46 #include <async_obsolete.h> 47 47 #include <ipc/services.h> 48 48 #include <ipc/il.h> … … 66 66 in_addr_t address, in_addr_t netmask, in_addr_t gateway) 67 67 { 68 return (int) async_ req_4_0(ip_phone, NET_IP_ADD_ROUTE,68 return (int) async_obsolete_req_4_0(ip_phone, NET_IP_ADD_ROUTE, 69 69 (sysarg_t) device_id, (sysarg_t) gateway.s_addr, 70 70 (sysarg_t) address.s_addr, (sysarg_t) netmask.s_addr); … … 150 150 151 151 ipc_call_t answer; 152 aid_t message_id = async_ send_1(ip_phone, NET_IP_GET_ROUTE,152 aid_t message_id = async_obsolete_send_1(ip_phone, NET_IP_GET_ROUTE, 153 153 (sysarg_t) protocol, &answer); 154 154 155 if ((async_ data_write_start(ip_phone, destination, addrlen) == EOK) &&156 (async_ data_read_start(ip_phone, headerlen,155 if ((async_obsolete_data_write_start(ip_phone, destination, addrlen) == EOK) && 156 (async_obsolete_data_read_start(ip_phone, headerlen, 157 157 sizeof(*headerlen)) == EOK) && (*headerlen > 0)) { 158 158 *header = malloc(*headerlen); 159 159 if (*header) { 160 if (async_ data_read_start(ip_phone, *header,160 if (async_obsolete_data_read_start(ip_phone, *header, 161 161 *headerlen) != EOK) 162 162 free(*header); … … 243 243 in_addr_t gateway) 244 244 { 245 return (int) async_ req_2_0(ip_phone, NET_IP_SET_GATEWAY,245 return (int) async_obsolete_req_2_0(ip_phone, NET_IP_SET_GATEWAY, 246 246 (sysarg_t) device_id, (sysarg_t) gateway.s_addr); 247 247 }
Note:
See TracChangeset
for help on using the changeset viewer.