Home
last modified time | relevance | path

Searched refs:r_tuple (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/nss-myhostname/
Dnss-myhostname.c37 struct gaih_addrtuple *r_tuple, *r_tuple_prev = NULL; in _nss_myhostname_gethostbyname4_r() local
116 r_tuple = (struct gaih_addrtuple*) (buffer + idx); in _nss_myhostname_gethostbyname4_r()
117 r_tuple->next = r_tuple_prev; in _nss_myhostname_gethostbyname4_r()
118 r_tuple->name = r_name; in _nss_myhostname_gethostbyname4_r()
119 r_tuple->family = AF_INET6; in _nss_myhostname_gethostbyname4_r()
120 memcpy(r_tuple->addr, LOCALADDRESS_IPV6, 16); in _nss_myhostname_gethostbyname4_r()
121 r_tuple->scopeid = 0; in _nss_myhostname_gethostbyname4_r()
124 r_tuple_prev = r_tuple; in _nss_myhostname_gethostbyname4_r()
128 r_tuple = (struct gaih_addrtuple*) (buffer + idx); in _nss_myhostname_gethostbyname4_r()
129 r_tuple->next = r_tuple_prev; in _nss_myhostname_gethostbyname4_r()
[all …]
/systemd-251/src/nss-mymachines/
Dnss-mymachines.c97 struct gaih_addrtuple *r_tuple, *r_tuple_first = NULL; in _nss_mymachines_gethostbyname4_r() local
199 r_tuple = (struct gaih_addrtuple*) (buffer + idx); in _nss_mymachines_gethostbyname4_r()
200r_tuple->next = i == c-1 ? NULL : (struct gaih_addrtuple*) ((char*) r_tuple + ALIGN(sizeof(struct … in _nss_mymachines_gethostbyname4_r()
201 r_tuple->name = r_name; in _nss_mymachines_gethostbyname4_r()
202 r_tuple->family = family; in _nss_mymachines_gethostbyname4_r()
203 r_tuple->scopeid = n_ifindices == 1 ? ifindices[0] : 0; in _nss_mymachines_gethostbyname4_r()
204 memcpy(r_tuple->addr, a, sz); in _nss_mymachines_gethostbyname4_r()
/systemd-251/src/nss-resolve/
Dnss-resolve.c317 struct gaih_addrtuple *r_tuple = NULL, in _nss_resolve_gethostbyname4_r() local
330 r_tuple = (struct gaih_addrtuple*) (buffer + idx); in _nss_resolve_gethostbyname4_r()
331r_tuple->next = (struct gaih_addrtuple*) ((char*) r_tuple + ALIGN(sizeof(struct gaih_addrtuple))); in _nss_resolve_gethostbyname4_r()
332 r_tuple->name = r_name; in _nss_resolve_gethostbyname4_r()
333 r_tuple->family = q.family; in _nss_resolve_gethostbyname4_r()
334 r_tuple->scopeid = ifindex_to_scopeid(q.family, &q.address, q.ifindex); in _nss_resolve_gethostbyname4_r()
335 memcpy(r_tuple->addr, &q.address, q.address_size); in _nss_resolve_gethostbyname4_r()
340 assert(r_tuple); /* We had at least one address, so r_tuple must be set */ in _nss_resolve_gethostbyname4_r()
341 r_tuple->next = NULL; /* Override last next pointer */ in _nss_resolve_gethostbyname4_r()