Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inet_link.c

    rb7fd2a0 rac415d50  
    3737#include <stdbool.h>
    3838#include <errno.h>
    39 #include <str_error.h>
    4039#include <fibril_synch.h>
    4140#include <inet/iplink.h>
     
    5554static uint16_t ip_ident = 0;
    5655
    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);
     56static int inet_iplink_recv(iplink_t *, iplink_recv_sdu_t *, ip_ver_t);
     57static int inet_iplink_change_addr(iplink_t *, addr48_t);
    5958static inet_link_t *inet_link_get_by_id_locked(sysarg_t);
    6059
     
    8382}
    8483
    85 static errno_t inet_iplink_recv(iplink_t *iplink, iplink_recv_sdu_t *sdu, ip_ver_t ver)
     84static int inet_iplink_recv(iplink_t *iplink, iplink_recv_sdu_t *sdu, ip_ver_t ver)
    8685{
    8786        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_iplink_recv()");
    8887
    89         errno_t rc;
     88        int rc;
    9089        inet_packet_t packet;
    9190        inet_link_t *ilink;
     
    115114        log_msg(LOG_DEFAULT, LVL_DEBUG, "call inet_recv_packet()");
    116115        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);
    118117        free(packet.data);
    119118
     
    121120}
    122121
    123 static errno_t inet_iplink_change_addr(iplink_t *iplink, addr48_t mac)
     122static int inet_iplink_change_addr(iplink_t *iplink, addr48_t mac)
    124123{
    125124        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_iplink_change_addr(): "
     
    158157}
    159158
    160 errno_t inet_link_open(service_id_t sid)
     159int inet_link_open(service_id_t sid)
    161160{
    162161        inet_link_t *ilink;
    163162        inet_addr_t iaddr;
    164         errno_t rc;
     163        int rc;
    165164
    166165        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_link_open()");
     
    312311 *
    313312 */
    314 errno_t inet_link_send_dgram(inet_link_t *ilink, addr32_t lsrc, addr32_t ldest,
     313int inet_link_send_dgram(inet_link_t *ilink, addr32_t lsrc, addr32_t ldest,
    315314    inet_dgram_t *dgram, uint8_t proto, uint8_t ttl, int df)
    316315{
     
    352351        packet.size = dgram->size;
    353352       
    354         errno_t rc;
     353        int rc;
    355354        size_t offs = 0;
    356355       
     
    387386 *
    388387 */
    389 errno_t inet_link_send_dgram6(inet_link_t *ilink, addr48_t ldest,
     388int inet_link_send_dgram6(inet_link_t *ilink, addr48_t ldest,
    390389    inet_dgram_t *dgram, uint8_t proto, uint8_t ttl, int df)
    391390{
     
    425424        packet.size = dgram->size;
    426425       
    427         errno_t rc;
     426        int rc;
    428427        size_t offs = 0;
    429428       
     
    471470
    472471/** Get IDs of all links. */
    473 errno_t inet_link_get_id_list(sysarg_t **rid_list, size_t *rcount)
     472int inet_link_get_id_list(sysarg_t **rid_list, size_t *rcount)
    474473{
    475474        sysarg_t *id_list;
Note: See TracChangeset for help on using the changeset viewer.