irp_nw.c revision 2
2N/A * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") 2N/A * Portions Copyright (c) 1996,1998 by Internet Software Consortium. 2N/A * Permission to use, copy, modify, and distribute this software for any 2N/A * purpose with or without fee is hereby granted, provided that the above 2N/A * copyright notice and this permission notice appear in all copies. 2N/A * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES 2N/A * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 2N/A * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR 2N/A * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 2N/A * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 2N/A * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 2N/A * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 2N/Astatic const char rcsid[] =
"$Id: irp_nw.c,v 1.4 2006/03/09 23:57:56 marka Exp $";
2N/A#
endif /* LIBC_SCCS and not lint */ 2N/A * struct irs_nw * irs_irp_nw(struct irs_acc *this) 2N/A * void nw_close(struct irs_nw *this) 2N/A * struct nwent * nw_byaddr(struct irs_nw *this, void *net, 2N/A * int length, int type) 2N/A char paddr[
24];
/*%< bigenough for ip4 w/ cidr spec. */ 2N/A * struct nwent * nw_byname(struct irs_nw *this, const char *name, int type) 2N/A * void nw_rewind(struct irs_nw *this) 2N/A * Prepares the cache if necessary and returns the first, or 2N/A * next item from it. 2N/A * void nw_minimize(struct irs_nw *this) 2N/A * deallocate all the memory irp_unmarshall_pw allocated.