Changeset 7f95c904 in mainline for uspace/srv/inet/inet.h
- Timestamp:
- 2012-04-16T07:04:19Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7fda2e0
- Parents:
- 347768d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/inet/inet.h
r347768d r7f95c904 39 39 40 40 #include <adt/list.h> 41 #include <bool.h> 41 42 #include <inet/iplink.h> 42 43 #include <ipc/loc.h> … … 103 104 104 105 typedef struct { 106 /** Source address */ 105 107 inet_addr_t src; 108 /** Destination address */ 106 109 inet_addr_t dest; 110 /** Type of service */ 107 111 uint8_t tos; 112 /** Protocol */ 108 113 uint8_t proto; 114 /** Time to live */ 109 115 uint8_t ttl; 110 int df; 116 /** Identifier */ 117 uint16_t ident; 118 /** Do not fragment */ 119 bool df; 120 /** More fragments */ 121 bool mf; 122 /** Offset of fragment into datagram, in bytes */ 123 size_t offs; 124 /** Packet data */ 111 125 void *data; 126 /** Packet data size in bytes */ 112 127 size_t size; 113 128 } inet_packet_t; … … 180 195 extern int inet_route_packet(inet_dgram_t *, uint8_t, uint8_t, int); 181 196 extern int inet_get_srcaddr(inet_addr_t *, uint8_t, inet_addr_t *); 182 197 extern int inet_recv_dgram_local(inet_dgram_t *, uint8_t); 183 198 184 199 #endif
Note:
See TracChangeset
for help on using the changeset viewer.