Lines Matching refs:la
38 lwaddr_netaddr_fromlwresaddr(isc_netaddr_t *na, lwres_addr_t *la) {
39 if (la->family != LWRES_ADDRTYPE_V4 && la->family != LWRES_ADDRTYPE_V6)
42 if (la->family == LWRES_ADDRTYPE_V4) {
44 memmove(&ina.s_addr, la->address, 4);
48 memmove(&ina6.s6_addr, la->address, 16);
55 lwaddr_sockaddr_fromlwresaddr(isc_sockaddr_t *sa, lwres_addr_t *la,
61 result = lwaddr_netaddr_fromlwresaddr(&na, la);
73 lwaddr_lwresaddr_fromnetaddr(lwres_addr_t *la, isc_netaddr_t *na) {
78 la->family = LWRES_ADDRTYPE_V4;
79 la->length = 4;
80 memmove(la->address, &na->type.in, 4);
82 la->family = LWRES_ADDRTYPE_V6;
83 la->length = 16;
84 memmove(la->address, &na->type.in6, 16);
90 lwaddr_lwresaddr_fromsockaddr(lwres_addr_t *la, isc_sockaddr_t *sa) {
93 return (lwaddr_lwresaddr_fromnetaddr(la, &na));