|
|
|
@ -291,7 +291,7 @@ bool sockaddr_parse_any_str(sockaddr_t *dst, const str *src);
|
|
|
|
bool sockaddr_parse_str(sockaddr_t *dst, sockfamily_t *fam, const str *src);
|
|
|
|
bool sockaddr_parse_str(sockaddr_t *dst, sockfamily_t *fam, const str *src);
|
|
|
|
bool endpoint_parse_any(endpoint_t *, const char *); // address (ip) optional
|
|
|
|
bool endpoint_parse_any(endpoint_t *, const char *); // address (ip) optional
|
|
|
|
bool sockaddr_getaddrinfo_alt(sockaddr_t *a, sockaddr_t *a2, const char *s);
|
|
|
|
bool sockaddr_getaddrinfo_alt(sockaddr_t *a, sockaddr_t *a2, const char *s);
|
|
|
|
int endpoint_parse_any_getaddrinfo_alt(endpoint_t *d, endpoint_t *d2, const char *s); // address (ip or hostname) optional
|
|
|
|
bool endpoint_parse_any_getaddrinfo_alt(endpoint_t *d, endpoint_t *d2, const char *s); // address (ip or hostname) optional
|
|
|
|
INLINE int endpoint_parse_any_getaddrinfo(endpoint_t *d, const char *s);
|
|
|
|
INLINE int endpoint_parse_any_getaddrinfo(endpoint_t *d, const char *s);
|
|
|
|
void endpoint_parse_sockaddr_storage(endpoint_t *, struct sockaddr_storage *);
|
|
|
|
void endpoint_parse_sockaddr_storage(endpoint_t *, struct sockaddr_storage *);
|
|
|
|
void kernel2endpoint(endpoint_t *ep, const struct re_address *ra);
|
|
|
|
void kernel2endpoint(endpoint_t *ep, const struct re_address *ra);
|
|
|
|
@ -339,7 +339,7 @@ INLINE int sockaddr_getaddrinfo(sockaddr_t *a, const char *s) {
|
|
|
|
return sockaddr_getaddrinfo_alt(a, NULL, s) ? 0 : 1;
|
|
|
|
return sockaddr_getaddrinfo_alt(a, NULL, s) ? 0 : 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
INLINE int endpoint_parse_any_getaddrinfo(endpoint_t *d, const char *s) {
|
|
|
|
INLINE int endpoint_parse_any_getaddrinfo(endpoint_t *d, const char *s) {
|
|
|
|
return endpoint_parse_any_getaddrinfo_alt(d, NULL, s);
|
|
|
|
return endpoint_parse_any_getaddrinfo_alt(d, NULL, s) ? 0 : 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
INLINE int ipv46_any_convert(endpoint_t *ep) {
|
|
|
|
INLINE int ipv46_any_convert(endpoint_t *ep) {
|
|
|
|
if (ep->address.family->af != AF_INET)
|
|
|
|
if (ep->address.family->af != AF_INET)
|
|
|
|
|