Changes in uspace/lib/c/include/inet/iplink.h [02a09ed:962f03b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/inet/iplink.h
r02a09ed r962f03b 38 38 #include <async.h> 39 39 #include <sys/types.h> 40 #include <inet/addr.h>41 40 42 41 struct iplink_ev_ops; … … 47 46 } iplink_t; 48 47 49 /** Internet link Service Data Unit */ 48 typedef struct { 49 uint32_t ipv4; 50 } iplink_addr_t; 51 52 /** IP link Service Data Unit */ 50 53 typedef struct { 51 54 /** Local source address */ 52 i net_addr_tsrc;55 iplink_addr_t lsrc; 53 56 /** Local destination address */ 54 i net_addr_tdest;57 iplink_addr_t ldest; 55 58 /** Serialized IP packet */ 56 59 void *data; … … 59 62 } iplink_sdu_t; 60 63 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 69 64 typedef struct iplink_ev_ops { 70 int (*recv)(iplink_t *, iplink_ recv_sdu_t *, uint16_t);65 int (*recv)(iplink_t *, iplink_sdu_t *); 71 66 } iplink_ev_ops_t; 72 67 … … 74 69 extern void iplink_close(iplink_t *); 75 70 extern int iplink_send(iplink_t *, iplink_sdu_t *); 76 extern int iplink_addr_add(iplink_t *, i net_addr_t *);77 extern int iplink_addr_remove(iplink_t *, i net_addr_t *);71 extern int iplink_addr_add(iplink_t *, iplink_addr_t *); 72 extern int iplink_addr_remove(iplink_t *, iplink_addr_t *); 78 73 extern int iplink_get_mtu(iplink_t *, size_t *); 79 74
Note:
See TracChangeset
for help on using the changeset viewer.