listenlist.h (135446) | listenlist.h (170222) |
---|---|
1/* | 1/* |
2 * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") | 2 * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC") |
3 * Copyright (C) 2000, 2001 Internet Software Consortium. 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 * PERFORMANCE OF THIS SOFTWARE. 16 */ 17 | 3 * Copyright (C) 2000, 2001 Internet Software Consortium. 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 * PERFORMANCE OF THIS SOFTWARE. 16 */ 17 |
18/* $Id: listenlist.h,v 1.10.208.1 2004/03/06 10:21:24 marka Exp $ */ | 18/* $Id: listenlist.h,v 1.11.18.2 2005/04/29 00:15:34 marka Exp $ */ |
19 20#ifndef NAMED_LISTENLIST_H 21#define NAMED_LISTENLIST_H 1 22 23/***** 24 ***** Module Info 25 *****/ 26 | 19 20#ifndef NAMED_LISTENLIST_H 21#define NAMED_LISTENLIST_H 1 22 23/***** 24 ***** Module Info 25 *****/ 26 |
27/* | 27/*! \file 28 * \brief |
28 * "Listen lists", as in the "listen-on" configuration statement. 29 */ 30 31/*** 32 *** Imports 33 ***/ 34#include <isc/net.h> 35 --- 21 unchanged lines hidden (view full) --- 57 58/*** 59 *** Functions 60 ***/ 61 62isc_result_t 63ns_listenelt_create(isc_mem_t *mctx, in_port_t port, 64 dns_acl_t *acl, ns_listenelt_t **target); | 29 * "Listen lists", as in the "listen-on" configuration statement. 30 */ 31 32/*** 33 *** Imports 34 ***/ 35#include <isc/net.h> 36 --- 21 unchanged lines hidden (view full) --- 58 59/*** 60 *** Functions 61 ***/ 62 63isc_result_t 64ns_listenelt_create(isc_mem_t *mctx, in_port_t port, 65 dns_acl_t *acl, ns_listenelt_t **target); |
65/* | 66/*% |
66 * Create a listen-on list element. 67 */ 68 69void 70ns_listenelt_destroy(ns_listenelt_t *elt); | 67 * Create a listen-on list element. 68 */ 69 70void 71ns_listenelt_destroy(ns_listenelt_t *elt); |
71/* | 72/*% |
72 * Destroy a listen-on list element. 73 */ 74 75isc_result_t 76ns_listenlist_create(isc_mem_t *mctx, ns_listenlist_t **target); | 73 * Destroy a listen-on list element. 74 */ 75 76isc_result_t 77ns_listenlist_create(isc_mem_t *mctx, ns_listenlist_t **target); |
77/* | 78/*% |
78 * Create a new, empty listen-on list. 79 */ 80 81void 82ns_listenlist_attach(ns_listenlist_t *source, ns_listenlist_t **target); | 79 * Create a new, empty listen-on list. 80 */ 81 82void 83ns_listenlist_attach(ns_listenlist_t *source, ns_listenlist_t **target); |
83/* | 84/*% |
84 * Attach '*target' to '*source'. 85 */ 86 87void 88ns_listenlist_detach(ns_listenlist_t **listp); | 85 * Attach '*target' to '*source'. 86 */ 87 88void 89ns_listenlist_detach(ns_listenlist_t **listp); |
89/* | 90/*% |
90 * Detach 'listp'. 91 */ 92 93isc_result_t 94ns_listenlist_default(isc_mem_t *mctx, in_port_t port, 95 isc_boolean_t enabled, ns_listenlist_t **target); | 91 * Detach 'listp'. 92 */ 93 94isc_result_t 95ns_listenlist_default(isc_mem_t *mctx, in_port_t port, 96 isc_boolean_t enabled, ns_listenlist_t **target); |
96/* | 97/*% |
97 * Create a listen-on list with default contents, matching 98 * all addresses with port 'port' (if 'enabled' is ISC_TRUE), 99 * or no addresses (if 'enabled' is ISC_FALSE). 100 */ 101 102#endif /* NAMED_LISTENLIST_H */ 103 104 | 98 * Create a listen-on list with default contents, matching 99 * all addresses with port 'port' (if 'enabled' is ISC_TRUE), 100 * or no addresses (if 'enabled' is ISC_FALSE). 101 */ 102 103#endif /* NAMED_LISTENLIST_H */ 104 105 |