xref: /titanic_41/usr/src/lib/libsocket/common/libsocket_priv.h (revision 6e91bba0d6c6bdabbba62cefae583715a4a58e2a)
1*6e91bba0SGirish Moodalbail /*
2*6e91bba0SGirish Moodalbail  * CDDL HEADER START
3*6e91bba0SGirish Moodalbail  *
4*6e91bba0SGirish Moodalbail  * The contents of this file are subject to the terms of the
5*6e91bba0SGirish Moodalbail  * Common Development and Distribution License (the "License").
6*6e91bba0SGirish Moodalbail  * You may not use this file except in compliance with the License.
7*6e91bba0SGirish Moodalbail  *
8*6e91bba0SGirish Moodalbail  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*6e91bba0SGirish Moodalbail  * or http://www.opensolaris.org/os/licensing.
10*6e91bba0SGirish Moodalbail  * See the License for the specific language governing permissions
11*6e91bba0SGirish Moodalbail  * and limitations under the License.
12*6e91bba0SGirish Moodalbail  *
13*6e91bba0SGirish Moodalbail  * When distributing Covered Code, include this CDDL HEADER in each
14*6e91bba0SGirish Moodalbail  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*6e91bba0SGirish Moodalbail  * If applicable, add the following below this CDDL HEADER, with the
16*6e91bba0SGirish Moodalbail  * fields enclosed by brackets "[]" replaced with your own identifying
17*6e91bba0SGirish Moodalbail  * information: Portions Copyright [yyyy] [name of copyright owner]
18*6e91bba0SGirish Moodalbail  *
19*6e91bba0SGirish Moodalbail  * CDDL HEADER END
20*6e91bba0SGirish Moodalbail  */
21*6e91bba0SGirish Moodalbail /*
22*6e91bba0SGirish Moodalbail  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23*6e91bba0SGirish Moodalbail  * Use is subject to license terms.
24*6e91bba0SGirish Moodalbail  */
25*6e91bba0SGirish Moodalbail #ifndef _LIBSOCKET_PRIV_H
26*6e91bba0SGirish Moodalbail #define	_LIBSOCKET_PRIV_H
27*6e91bba0SGirish Moodalbail 
28*6e91bba0SGirish Moodalbail #include <net/if.h>
29*6e91bba0SGirish Moodalbail #include <ifaddrs.h>
30*6e91bba0SGirish Moodalbail 
31*6e91bba0SGirish Moodalbail #ifdef	__cplusplus
32*6e91bba0SGirish Moodalbail extern "C" {
33*6e91bba0SGirish Moodalbail #endif
34*6e91bba0SGirish Moodalbail 
35*6e91bba0SGirish Moodalbail extern int	getallifaddrs(sa_family_t, struct ifaddrs **, int64_t);
36*6e91bba0SGirish Moodalbail extern int	getallifs(int, sa_family_t, struct lifreq **, int *, int64_t);
37*6e91bba0SGirish Moodalbail extern int	getnetmaskbyaddr(const struct in_addr, struct in_addr *);
38*6e91bba0SGirish Moodalbail 
39*6e91bba0SGirish Moodalbail #ifdef	__cplusplus
40*6e91bba0SGirish Moodalbail }
41*6e91bba0SGirish Moodalbail #endif
42*6e91bba0SGirish Moodalbail 
43*6e91bba0SGirish Moodalbail #endif	/* _LIBSOCKET_PRIV_H */
44