Changes in uspace/lib/c/include/inet/addr.h [695b6ff:26de91a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/inet/addr.h
r695b6ff r26de91a 39 39 #include <net/in.h> 40 40 #include <net/in6.h> 41 #include <net/socket.h> 41 42 42 43 typedef uint32_t addr32_t; … … 44 45 typedef uint8_t addr128_t[16]; 45 46 47 typedef enum { 48 /** Any IP protocol version */ 49 ip_any, 50 /** IPv4 */ 51 ip_v4, 52 /** IPv6 */ 53 ip_v6 54 } ip_ver_t; 55 46 56 /** Node address */ 47 57 typedef struct { 48 uint16_t family; 58 /** IP version */ 59 ip_ver_t version; 49 60 union { 50 61 addr32_t addr; … … 55 66 /** Network address */ 56 67 typedef struct { 57 /** Address family*/58 uint16_t family;68 /** IP version */ 69 ip_ver_t version; 59 70 60 71 /** Address */ … … 91 102 uint16_t, uint16_t, uint16_t, uint16_t, uint8_t); 92 103 93 extern int inet_addr_family(const char *, uint16_t *);94 104 extern void inet_naddr_addr(const inet_naddr_t *, inet_addr_t *); 95 105 extern void inet_addr_naddr(const inet_addr_t *, uint8_t, inet_naddr_t *); … … 110 120 extern int inet_naddr_format(const inet_naddr_t *, char **); 111 121 112 extern uint16_t inet_addr_get(const inet_addr_t *, addr32_t *, addr128_t *);113 extern uint16_t inet_naddr_get(const inet_naddr_t *, addr32_t *, addr128_t *,122 extern ip_ver_t inet_addr_get(const inet_addr_t *, addr32_t *, addr128_t *); 123 extern ip_ver_t inet_naddr_get(const inet_naddr_t *, addr32_t *, addr128_t *, 114 124 uint8_t *); 115 125 … … 125 135 sockaddr_in6_t *); 126 136 137 extern ip_ver_t ipver_from_af(int af); 138 extern int inet_addr_sockaddr(const inet_addr_t *, uint16_t, sockaddr_t **, 139 socklen_t *); 140 127 141 #endif 128 142
Note:
See TracChangeset
for help on using the changeset viewer.