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