Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ddb1922 in mainline


Ignore:
Timestamp:
2013-06-23T20:05:15Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
ccf282f
Parents:
89ac5513
Message:

Adapt the SLIP server to the new network address infrastructure.

File:
1 edited

Legend:

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

    r89ac5513 rddb1922  
    5757static int slip_send(iplink_srv_t *, iplink_srv_sdu_t *);
    5858static int slip_get_mtu(iplink_srv_t *, size_t *);
    59 static int slip_addr_add(iplink_srv_t *, iplink_srv_addr_t *);
    60 static int slip_addr_remove(iplink_srv_t *, iplink_srv_addr_t *);
     59static int slip_addr_add(iplink_srv_t *, uint32_t);
     60static int slip_addr_remove(iplink_srv_t *, uint32_t);
    6161
    6262static iplink_srv_t slip_iplink;
     
    161161}
    162162
    163 int slip_addr_add(iplink_srv_t *srv, iplink_srv_addr_t *addr)
     163int slip_addr_add(iplink_srv_t *srv, uint32_t addr)
    164164{
    165165        log_msg(LOG_DEFAULT, LVL_DEBUG, "slip_addr_add()");
     
    167167}
    168168
    169 int slip_addr_remove(iplink_srv_t *srv, iplink_srv_addr_t *addr)
     169int slip_addr_remove(iplink_srv_t *srv, uint32_t addr)
    170170{
    171171        log_msg(LOG_DEFAULT, LVL_DEBUG, "slip_addr_remove()");
     
    211211        int rc;
    212212
    213         sdu.lsrc.ipv4 = 0;
    214         sdu.ldest.ipv4 = 0;
     213        sdu.lsrc = 0;
     214        sdu.ldest = 0;
    215215        sdu.data = recv_final;
    216216
Note: See TracChangeset for help on using the changeset viewer.