conflsn.c revision 499b34cea04a46823d003d4c0520c8b03e8513cb
9a006fe9a05abc03c0e81977802194dab8737206Tinderbox User * Copyright (C) 1999-2001 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * copyright notice and this permission notice appear in all copies.
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews/* $Id: conflsn.c,v 1.19 2001/01/09 21:52:00 bwelling Exp $ */
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrewsdns_c_lstnon_new(isc_mem_t *mem, dns_c_lstnon_t **listen) {
ddad35552931651426ad70912d29d9ab7d2a8d80Automatic Updaterdns_c_lstnon_delete(dns_c_lstnon_t **listen) {
ddad35552931651426ad70912d29d9ab7d2a8d80Automatic Updaterdns_c_lstnon_setiml(dns_c_lstnon_t *listen,
ddad35552931651426ad70912d29d9ab7d2a8d80Automatic Updater dns_c_ipmatchlist_t *iml, isc_boolean_t deepcopy)
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews result = dns_c_ipmatchlist_detach(&listen->iml);
ddad35552931651426ad70912d29d9ab7d2a8d80Automatic Updater result = dns_c_ipmatchlist_copy(listen->mem,
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrewsdns_c_lstnlist_new(isc_mem_t *mem, dns_c_lstnlist_t **llist) {
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews /* XXXJAB logwrite */
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrewsdns_c_lstnlist_delete(dns_c_lstnlist_t **llist) {
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrewsdns_c_lstnlist_print(FILE *fp, int indent, dns_c_lstnlist_t *ll,
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews dns_c_lstnon_print(fp, indent, lo, default_port);
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrewsdns_c_lstnlistv6_print(FILE *fp, int indent, dns_c_lstnlist_t *ll,
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews dns_c_lstnonv6_print(fp, indent, lo, default_port);
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrewsdns_c_lstnon_print(FILE *fp, int indent, dns_c_lstnon_t *lo,
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews dns_c_ipmatchlist_print(fp, indent + 1, lo->iml);
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrewsdns_c_lstnonv6_print(FILE *fp, int indent, dns_c_lstnon_t *lo,
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews dns_c_ipmatchlist_print(fp, indent + 1, lo->iml);
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrewschecklisten_element(dns_c_ipmatchelement_t *element)
ddad35552931651426ad70912d29d9ab7d2a8d80Automatic Updater pf = isc_sockaddr_pf(&element->u.direct.address);
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews /* XXX shouldn't be reached */
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews /* XXX handle this. */
ddad35552931651426ad70912d29d9ab7d2a8d80Automatic Updatercheckv6listen_element(dns_c_ipmatchelement_t *element)
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews pf = isc_sockaddr_pf(&element->u.direct.address);
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews /* XXX shouldn't be reached */
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews /* XXX handle this. */
6b432e11497f905a6b6f048df3e8a01ce8abbb1eMark Andrews * Post confirguation load validation of list-on lists.
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews "listen-on must have IPv4 "
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews "addresses only.");
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews "listen-on-v6 must have IPv6 "
af669cb4fd7ecfb67ed145b176e5e764b249573bMark Andrews "addresses only.");