Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/slip/slip.c

    rf9b2cb4c ra17356fd  
    3838#include <stdint.h>
    3939#include <loc.h>
     40#include <net/socket_codes.h>
    4041#include <inet/addr.h>
    4142#include <inet/iplink_srv.h>
    42 #include <char_dev_iface.h>
     43#include <device/char_dev.h>
    4344#include <io/log.h>
    4445#include <errno.h>
    45 #include <task.h>
    4646
    4747#define NAME            "slip"
     
    277277
    278278pass:
    279                 rc = iplink_ev_recv(&slip_iplink, &sdu, ip_v4);
     279                rc = iplink_ev_recv(&slip_iplink, &sdu, AF_INET);
    280280                if (rc != EOK) {
    281281                        log_msg(LOG_DEFAULT, LVL_ERROR,
     
    300300        slip_iplink.ops = &slip_iplink_ops;
    301301
    302         async_set_fallback_port_handler(slip_client_conn, NULL);
     302        async_set_client_connection(slip_client_conn);
    303303
    304304        rc = loc_server_register(NAME);
     
    328328         * char_dev at the same time.
    329329         */
    330         sess_out = loc_service_connect(svcid, INTERFACE_DDF, 0);
     330        sess_out = loc_service_connect(EXCHANGE_SERIALIZE, svcid, 0);
    331331        if (!sess_out) {
    332332                log_msg(LOG_DEFAULT, LVL_ERROR,
    333333                    "Failed to connect to service %s (ID=%d)",
    334334                    svcstr, (int) svcid);
    335                 return ENOENT;
     335                return rc;
    336336        }
    337337        slip_iplink.arg = sess_out;
    338338
    339         sess_in = loc_service_connect(svcid, INTERFACE_DDF, 0);
     339        sess_in = loc_service_connect(EXCHANGE_SERIALIZE, svcid, 0);
    340340        if (!sess_in) {
    341341                log_msg(LOG_DEFAULT, LVL_ERROR,
    342342                    "Failed to connect to service %s (ID=%d)",
    343343                    svcstr, (int) svcid);
    344                 rc = ENOENT;
    345344                goto fail;
    346345        }
     
    366365                log_msg(LOG_DEFAULT, LVL_ERROR,
    367366                    "Failed to create receive fibril.");
    368                 rc = ENOENT;
    369367                goto fail;
    370368        }
Note: See TracChangeset for help on using the changeset viewer.