Changes in uspace/srv/net/slip/slip.c [a17356fd:f9b2cb4c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/slip/slip.c
ra17356fd rf9b2cb4c 38 38 #include <stdint.h> 39 39 #include <loc.h> 40 #include <net/socket_codes.h>41 40 #include <inet/addr.h> 42 41 #include <inet/iplink_srv.h> 43 #include < device/char_dev.h>42 #include <char_dev_iface.h> 44 43 #include <io/log.h> 45 44 #include <errno.h> 45 #include <task.h> 46 46 47 47 #define NAME "slip" … … 277 277 278 278 pass: 279 rc = iplink_ev_recv(&slip_iplink, &sdu, AF_INET);279 rc = iplink_ev_recv(&slip_iplink, &sdu, ip_v4); 280 280 if (rc != EOK) { 281 281 log_msg(LOG_DEFAULT, LVL_ERROR, … … 300 300 slip_iplink.ops = &slip_iplink_ops; 301 301 302 async_set_ client_connection(slip_client_conn);302 async_set_fallback_port_handler(slip_client_conn, NULL); 303 303 304 304 rc = loc_server_register(NAME); … … 328 328 * char_dev at the same time. 329 329 */ 330 sess_out = loc_service_connect( EXCHANGE_SERIALIZE, svcid, 0);330 sess_out = loc_service_connect(svcid, INTERFACE_DDF, 0); 331 331 if (!sess_out) { 332 332 log_msg(LOG_DEFAULT, LVL_ERROR, 333 333 "Failed to connect to service %s (ID=%d)", 334 334 svcstr, (int) svcid); 335 return rc;335 return ENOENT; 336 336 } 337 337 slip_iplink.arg = sess_out; 338 338 339 sess_in = loc_service_connect( EXCHANGE_SERIALIZE, svcid, 0);339 sess_in = loc_service_connect(svcid, INTERFACE_DDF, 0); 340 340 if (!sess_in) { 341 341 log_msg(LOG_DEFAULT, LVL_ERROR, 342 342 "Failed to connect to service %s (ID=%d)", 343 343 svcstr, (int) svcid); 344 rc = ENOENT; 344 345 goto fail; 345 346 } … … 365 366 log_msg(LOG_DEFAULT, LVL_ERROR, 366 367 "Failed to create receive fibril."); 368 rc = ENOENT; 367 369 goto fail; 368 370 }
Note:
See TracChangeset
for help on using the changeset viewer.