0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2000, 2001, 2004, 2005, 2007, 2008, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
d36adf470fe38579fd89cb8186a88a3b21a4be14Automatic Updater/* $Id: lwaddr.c,v 1.10 2008/01/11 23:46:56 tbox Exp $ */
dd16d9d9e77c2d906ee5ffa3dd9f71cacfbcb081Brian Wellington * Convert addresses from lwres to isc format.
dd16d9d9e77c2d906ee5ffa3dd9f71cacfbcb081Brian Wellingtonlwaddr_netaddr_fromlwresaddr(isc_netaddr_t *na, lwres_addr_t *la) {
dd16d9d9e77c2d906ee5ffa3dd9f71cacfbcb081Brian Wellington if (la->family != LWRES_ADDRTYPE_V4 && la->family != LWRES_ADDRTYPE_V6)
dd16d9d9e77c2d906ee5ffa3dd9f71cacfbcb081Brian Wellingtonlwaddr_sockaddr_fromlwresaddr(isc_sockaddr_t *sa, lwres_addr_t *la,
78838d3e0cd62423c23de5503910e01884d2104bBrian Wellington result = lwaddr_netaddr_fromlwresaddr(&na, la);
dd16d9d9e77c2d906ee5ffa3dd9f71cacfbcb081Brian Wellington * Convert addresses from isc to lwres format.
dd16d9d9e77c2d906ee5ffa3dd9f71cacfbcb081Brian Wellingtonlwaddr_lwresaddr_fromnetaddr(lwres_addr_t *la, isc_netaddr_t *na) {
dd16d9d9e77c2d906ee5ffa3dd9f71cacfbcb081Brian Wellington if (na->family != AF_INET && na->family != AF_INET6)
dd16d9d9e77c2d906ee5ffa3dd9f71cacfbcb081Brian Wellingtonlwaddr_lwresaddr_fromsockaddr(lwres_addr_t *la, isc_sockaddr_t *sa) {