Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/inet/iplink.h

    r02a09ed r962f03b  
    3838#include <async.h>
    3939#include <sys/types.h>
    40 #include <inet/addr.h>
    4140
    4241struct iplink_ev_ops;
     
    4746} iplink_t;
    4847
    49 /** Internet link Service Data Unit */
     48typedef struct {
     49        uint32_t ipv4;
     50} iplink_addr_t;
     51
     52/** IP link Service Data Unit */
    5053typedef struct {
    5154        /** Local source address */
    52         inet_addr_t src;
     55        iplink_addr_t lsrc;
    5356        /** Local destination address */
    54         inet_addr_t dest;
     57        iplink_addr_t ldest;
    5558        /** Serialized IP packet */
    5659        void *data;
     
    5962} iplink_sdu_t;
    6063
    61 /** Internet link receive Service Data Unit */
    62 typedef struct {
    63         /** Serialized datagram */
    64         void *data;
    65         /** Size of @c data in bytes */
    66         size_t size;
    67 } iplink_recv_sdu_t;
    68 
    6964typedef struct iplink_ev_ops {
    70         int (*recv)(iplink_t *, iplink_recv_sdu_t *, uint16_t);
     65        int (*recv)(iplink_t *, iplink_sdu_t *);
    7166} iplink_ev_ops_t;
    7267
     
    7469extern void iplink_close(iplink_t *);
    7570extern int iplink_send(iplink_t *, iplink_sdu_t *);
    76 extern int iplink_addr_add(iplink_t *, inet_addr_t *);
    77 extern int iplink_addr_remove(iplink_t *, inet_addr_t *);
     71extern int iplink_addr_add(iplink_t *, iplink_addr_t *);
     72extern int iplink_addr_remove(iplink_t *, iplink_addr_t *);
    7873extern int iplink_get_mtu(iplink_t *, size_t *);
    7974
Note: See TracChangeset for help on using the changeset viewer.