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