Changes in uspace/srv/net/inetsrv/inet_link.c [b7fd2a0:ac415d50] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inet_link.c
rb7fd2a0 rac415d50 37 37 #include <stdbool.h> 38 38 #include <errno.h> 39 #include <str_error.h>40 39 #include <fibril_synch.h> 41 40 #include <inet/iplink.h> … … 55 54 static uint16_t ip_ident = 0; 56 55 57 static errno_t inet_iplink_recv(iplink_t *, iplink_recv_sdu_t *, ip_ver_t);58 static errno_t inet_iplink_change_addr(iplink_t *, addr48_t);56 static int inet_iplink_recv(iplink_t *, iplink_recv_sdu_t *, ip_ver_t); 57 static int inet_iplink_change_addr(iplink_t *, addr48_t); 59 58 static inet_link_t *inet_link_get_by_id_locked(sysarg_t); 60 59 … … 83 82 } 84 83 85 static errno_t inet_iplink_recv(iplink_t *iplink, iplink_recv_sdu_t *sdu, ip_ver_t ver)84 static int inet_iplink_recv(iplink_t *iplink, iplink_recv_sdu_t *sdu, ip_ver_t ver) 86 85 { 87 86 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_iplink_recv()"); 88 87 89 errno_t rc;88 int rc; 90 89 inet_packet_t packet; 91 90 inet_link_t *ilink; … … 115 114 log_msg(LOG_DEFAULT, LVL_DEBUG, "call inet_recv_packet()"); 116 115 rc = inet_recv_packet(&packet); 117 log_msg(LOG_DEFAULT, LVL_DEBUG, "call inet_recv_packet -> % s", str_error_name(rc));116 log_msg(LOG_DEFAULT, LVL_DEBUG, "call inet_recv_packet -> %d", rc); 118 117 free(packet.data); 119 118 … … 121 120 } 122 121 123 static errno_t inet_iplink_change_addr(iplink_t *iplink, addr48_t mac)122 static int inet_iplink_change_addr(iplink_t *iplink, addr48_t mac) 124 123 { 125 124 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_iplink_change_addr(): " … … 158 157 } 159 158 160 errno_t inet_link_open(service_id_t sid)159 int inet_link_open(service_id_t sid) 161 160 { 162 161 inet_link_t *ilink; 163 162 inet_addr_t iaddr; 164 errno_t rc;163 int rc; 165 164 166 165 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_link_open()"); … … 312 311 * 313 312 */ 314 errno_t inet_link_send_dgram(inet_link_t *ilink, addr32_t lsrc, addr32_t ldest,313 int inet_link_send_dgram(inet_link_t *ilink, addr32_t lsrc, addr32_t ldest, 315 314 inet_dgram_t *dgram, uint8_t proto, uint8_t ttl, int df) 316 315 { … … 352 351 packet.size = dgram->size; 353 352 354 errno_t rc;353 int rc; 355 354 size_t offs = 0; 356 355 … … 387 386 * 388 387 */ 389 errno_t inet_link_send_dgram6(inet_link_t *ilink, addr48_t ldest,388 int inet_link_send_dgram6(inet_link_t *ilink, addr48_t ldest, 390 389 inet_dgram_t *dgram, uint8_t proto, uint8_t ttl, int df) 391 390 { … … 425 424 packet.size = dgram->size; 426 425 427 errno_t rc;426 int rc; 428 427 size_t offs = 0; 429 428 … … 471 470 472 471 /** Get IDs of all links. */ 473 errno_t inet_link_get_id_list(sysarg_t **rid_list, size_t *rcount)472 int inet_link_get_id_list(sysarg_t **rid_list, size_t *rcount) 474 473 { 475 474 sysarg_t *id_list;
Note:
See TracChangeset
for help on using the changeset viewer.