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