Changes in uspace/srv/net/inetsrv/inet_link.c [c1694b6b:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inet_link.c
rc1694b6b rb7fd2a0 55 55 static uint16_t ip_ident = 0; 56 56 57 static int inet_iplink_recv(iplink_t *, iplink_recv_sdu_t *, ip_ver_t);58 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); 59 59 static inet_link_t *inet_link_get_by_id_locked(sysarg_t); 60 60 … … 83 83 } 84 84 85 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) 86 86 { 87 87 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_iplink_recv()"); 88 88 89 int rc;89 errno_t rc; 90 90 inet_packet_t packet; 91 91 inet_link_t *ilink; … … 121 121 } 122 122 123 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) 124 124 { 125 125 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_iplink_change_addr(): " … … 158 158 } 159 159 160 int inet_link_open(service_id_t sid)160 errno_t inet_link_open(service_id_t sid) 161 161 { 162 162 inet_link_t *ilink; 163 163 inet_addr_t iaddr; 164 int rc;164 errno_t rc; 165 165 166 166 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_link_open()"); … … 312 312 * 313 313 */ 314 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, 315 315 inet_dgram_t *dgram, uint8_t proto, uint8_t ttl, int df) 316 316 { … … 352 352 packet.size = dgram->size; 353 353 354 int rc;354 errno_t rc; 355 355 size_t offs = 0; 356 356 … … 387 387 * 388 388 */ 389 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, 390 390 inet_dgram_t *dgram, uint8_t proto, uint8_t ttl, int df) 391 391 { … … 425 425 packet.size = dgram->size; 426 426 427 int rc;427 errno_t rc; 428 428 size_t offs = 0; 429 429 … … 471 471 472 472 /** Get IDs of all links. */ 473 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) 474 474 { 475 475 sysarg_t *id_list;
Note:
See TracChangeset
for help on using the changeset viewer.