Changes in uspace/srv/net/inetsrv/inetsrv.c [b7fd2a0:25a179e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inetsrv.c
rb7fd2a0 r25a179e 84 84 static void inet_default_conn(ipc_callid_t, ipc_call_t *, void *); 85 85 86 static errno_t inet_init(void)86 static int inet_init(void) 87 87 { 88 88 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_init()"); 89 89 90 90 port_id_t port; 91 errno_t rc = async_create_port(INTERFACE_INET,91 int rc = async_create_port(INTERFACE_INET, 92 92 inet_default_conn, NULL, &port); 93 93 if (rc != EOK) … … 135 135 } 136 136 137 static errno_t inet_find_dir(inet_addr_t *src, inet_addr_t *dest, uint8_t tos,137 static int inet_find_dir(inet_addr_t *src, inet_addr_t *dest, uint8_t tos, 138 138 inet_dir_t *dir) 139 139 { … … 165 165 } 166 166 167 errno_t inet_route_packet(inet_dgram_t *dgram, uint8_t proto, uint8_t ttl,167 int inet_route_packet(inet_dgram_t *dgram, uint8_t proto, uint8_t ttl, 168 168 int df) 169 169 { 170 170 inet_dir_t dir; 171 171 inet_link_t *ilink; 172 errno_t rc;172 int rc; 173 173 174 174 if (dgram->iplink != 0) { … … 201 201 } 202 202 203 static errno_t inet_send(inet_client_t *client, inet_dgram_t *dgram,203 static int inet_send(inet_client_t *client, inet_dgram_t *dgram, 204 204 uint8_t proto, uint8_t ttl, int df) 205 205 { … … 207 207 } 208 208 209 errno_t inet_get_srcaddr(inet_addr_t *remote, uint8_t tos, inet_addr_t *local)209 int inet_get_srcaddr(inet_addr_t *remote, uint8_t tos, inet_addr_t *local) 210 210 { 211 211 inet_dir_t dir; 212 errno_t rc;212 int rc; 213 213 214 214 rc = inet_find_dir(NULL, remote, tos, &dir); … … 252 252 253 253 inet_addr_t remote; 254 errno_t rc = async_data_write_finalize(callid, &remote, size);254 int rc = async_data_write_finalize(callid, &remote, size); 255 255 if (rc != EOK) { 256 256 async_answer_0(callid, rc); … … 314 314 } 315 315 316 errno_t rc = async_data_write_finalize(callid, &dgram.src, size);316 int rc = async_data_write_finalize(callid, &dgram.src, size); 317 317 if (rc != EOK) { 318 318 async_answer_0(callid, rc); … … 445 445 } 446 446 447 errno_t inet_ev_recv(inet_client_t *client, inet_dgram_t *dgram)447 int inet_ev_recv(inet_client_t *client, inet_dgram_t *dgram) 448 448 { 449 449 async_exch_t *exch = async_exchange_begin(client->sess); … … 457 457 dgram->iplink, &answer); 458 458 459 errno_t rc = async_data_write_start(exch, &dgram->src, sizeof(inet_addr_t));459 int rc = async_data_write_start(exch, &dgram->src, sizeof(inet_addr_t)); 460 460 if (rc != EOK) { 461 461 async_exchange_end(exch); … … 480 480 } 481 481 482 errno_t retval;482 int retval; 483 483 async_wait_for(req, &retval); 484 484 … … 486 486 } 487 487 488 errno_t inet_recv_dgram_local(inet_dgram_t *dgram, uint8_t proto)488 int inet_recv_dgram_local(inet_dgram_t *dgram, uint8_t proto) 489 489 { 490 490 inet_client_t *client; … … 509 509 } 510 510 511 errno_t inet_recv_packet(inet_packet_t *packet)511 int inet_recv_packet(inet_packet_t *packet) 512 512 { 513 513 inet_addrobj_t *addr; … … 543 543 int main(int argc, char *argv[]) 544 544 { 545 errno_t rc;545 int rc; 546 546 547 547 printf(NAME ": HelenOS Internet Protocol service\n");
Note:
See TracChangeset
for help on using the changeset viewer.