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