Searched defs:ai (Results 1 - 4 of 4) sorted by relevance
/systemd/src/libsystemd/sd-resolve/ |
H A D | test-resolve.c | 36 static int getaddrinfo_handler(sd_resolve_query *q, int ret, const struct addrinfo *ai, void *userdata) { argument 46 for (i = ai; i; i = i->ai_next) { 53 printf("canonical name: %s\n", strna(ai->ai_canonname));
|
H A D | sd-resolve.c | 196 static void *serialize_addrinfo(void *p, const struct addrinfo *ai, size_t *length, size_t maxlength) { argument 201 assert(ai); 205 cnl = ai->ai_canonname ? strlen(ai->ai_canonname)+1 : 0; 206 l = sizeof(AddrInfoSerialization) + ai->ai_addrlen + cnl; 211 s.ai_flags = ai->ai_flags; 212 s.ai_family = ai->ai_family; 213 s.ai_socktype = ai->ai_socktype; 214 s.ai_protocol = ai->ai_protocol; 215 s.ai_addrlen = ai 228 send_addrinfo_reply( int out_fd, unsigned id, int ret, struct addrinfo *ai, int _errno, int _h_errno) argument 694 struct addrinfo *ai; local 787 struct addrinfo *ai = NULL; local 1086 resolve_freeaddrinfo(struct addrinfo *ai) argument [all...] |
/systemd/src/socket-proxy/ |
H A D | socket-proxyd.c | 373 static int resolve_cb(sd_resolve_query *q, int ret, const struct addrinfo *ai, void *userdata) { argument 386 return connection_start(c, ai->ai_addr, ai->ai_addrlen);
|
/systemd/src/timesync/ |
H A D | timesyncd-manager.c | 793 static int manager_resolve_handler(sd_resolve_query *q, int ret, const struct addrinfo *ai, void *userdata) { argument 810 for (; ai; ai = ai->ai_next) { 814 assert(ai->ai_addr); 815 assert(ai->ai_addrlen >= offsetof(struct sockaddr, sa_data)); 817 if (!IN_SET(ai->ai_addr->sa_family, AF_INET, AF_INET6)) { 822 r = server_address_new(m->current_server_name, &a, (const union sockaddr_union*) ai->ai_addr, ai->ai_addrlen);
|
Completed in 18 milliseconds