Changeset 89ac5513 in mainline for uspace/srv/net/udp/udp_type.h
- Timestamp:
- 2013-06-23T19:54:53Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ddb1922
- Parents:
- 3abf0760 (diff), 96cbd18 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/udp_type.h
r3abf0760 r89ac5513 40 40 #include <socket_core.h> 41 41 #include <sys/types.h> 42 #include <inet/addr.h> 42 43 43 44 #define UDP_FRAGMENT_SIZE 4096 … … 51 52 UDP_EUNSPEC, 52 53 /* No route to destination */ 53 UDP_ENOROUTE 54 UDP_ENOROUTE, 55 /** Association reset by user */ 56 UDP_ERESET 54 57 } udp_error_t; 55 58 56 59 typedef enum { 57 XF_DUMMY 60 XF_DUMMY = 0x1 58 61 } xflags_t; 59 60 typedef struct {61 uint32_t ipv4;62 } netaddr_t;63 64 enum netaddr {65 UDP_IPV4_ANY = 066 };67 62 68 63 enum udp_port { … … 71 66 72 67 typedef struct { 73 netaddr_t addr;68 inet_addr_t addr; 74 69 uint16_t port; 75 70 } udp_sock_t; … … 91 86 typedef struct { 92 87 /** Source address */ 93 netaddr_t src;88 inet_addr_t src; 94 89 /** Destination address */ 95 netaddr_t dest;96 90 inet_addr_t dest; 91 97 92 /** Encoded PDU data including header */ 98 93 void *data; … … 118 113 /** Association identification (local and foreign socket) */ 119 114 udp_sockpair_t ident; 115 116 /** True if association was reset by user */ 117 bool reset; 120 118 121 119 /** True if association was deleted by user */
Note:
See TracChangeset
for help on using the changeset viewer.