1*3011Sjbeck /* 2*3011Sjbeck * CDDL HEADER START 3*3011Sjbeck * 4*3011Sjbeck * The contents of this file are subject to the terms of the 5*3011Sjbeck * Common Development and Distribution License (the "License"). 6*3011Sjbeck * You may not use this file except in compliance with the License. 7*3011Sjbeck * 8*3011Sjbeck * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*3011Sjbeck * or http://www.opensolaris.org/os/licensing. 10*3011Sjbeck * See the License for the specific language governing permissions 11*3011Sjbeck * and limitations under the License. 12*3011Sjbeck * 13*3011Sjbeck * When distributing Covered Code, include this CDDL HEADER in each 14*3011Sjbeck * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*3011Sjbeck * If applicable, add the following below this CDDL HEADER, with the 16*3011Sjbeck * fields enclosed by brackets "[]" replaced with your own identifying 17*3011Sjbeck * information: Portions Copyright [yyyy] [name of copyright owner] 18*3011Sjbeck * 19*3011Sjbeck * CDDL HEADER END 20*3011Sjbeck */ 21*3011Sjbeck 22*3011Sjbeck /* 23*3011Sjbeck * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*3011Sjbeck * Use is subject to license terms. 25*3011Sjbeck */ 26*3011Sjbeck 27*3011Sjbeck #ifndef _ADDR_MATCH_H 28*3011Sjbeck #define _ADDR_MATCH_H 29*3011Sjbeck 30*3011Sjbeck #pragma ident "%Z%%M% %I% %E% SMI" 31*3011Sjbeck 32*3011Sjbeck /* 33*3011Sjbeck * Prototypes for functions in addr_match.c 34*3011Sjbeck */ 35*3011Sjbeck 36*3011Sjbeck #ifdef __cplusplus 37*3011Sjbeck extern "C" { 38*3011Sjbeck #endif 39*3011Sjbeck 40*3011Sjbeck void check_address(const char *prog, const struct sockaddr_storage *fromp, 41*3011Sjbeck const struct sockaddr_in *sin, const struct sockaddr_in6 *sin6, 42*3011Sjbeck const char *printable_addr, char *hostname, size_t hostsize); 43*3011Sjbeck 44*3011Sjbeck #ifdef __cplusplus 45*3011Sjbeck } 46*3011Sjbeck #endif 47*3011Sjbeck 48*3011Sjbeck #endif /* _ADDR_MATCH_H */ 49