10Sstevel@tonic-gate /* 2*3628Sss150715 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 30Sstevel@tonic-gate * Use is subject to license terms. 40Sstevel@tonic-gate */ 50Sstevel@tonic-gate /* 60Sstevel@tonic-gate * Copyright (c) 1983 Regents of the University of California. 70Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement 80Sstevel@tonic-gate * specifies the terms and conditions for redistribution. 90Sstevel@tonic-gate */ 100Sstevel@tonic-gate 110Sstevel@tonic-gate #ifndef _IFCONFIG_H 120Sstevel@tonic-gate #define _IFCONFIG_H 130Sstevel@tonic-gate 140Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 150Sstevel@tonic-gate 160Sstevel@tonic-gate #ifdef __cplusplus 170Sstevel@tonic-gate extern "C" { 180Sstevel@tonic-gate #endif 190Sstevel@tonic-gate 200Sstevel@tonic-gate #include <libdlpi.h> 210Sstevel@tonic-gate 220Sstevel@tonic-gate /* 230Sstevel@tonic-gate * return values for (af_getaddr)() from in_getprefixlen() 240Sstevel@tonic-gate */ 250Sstevel@tonic-gate #define BAD_ADDR -1 /* prefix is invalid */ 260Sstevel@tonic-gate #define NO_PREFIX -2 /* no prefix was found */ 270Sstevel@tonic-gate 282546Scarlsonj /* No suitable header file defines this, though it's in libsocket */ 292546Scarlsonj extern int getnetmaskbyaddr(struct in_addr, struct in_addr *); 302546Scarlsonj 310Sstevel@tonic-gate extern int debug; 320Sstevel@tonic-gate 330Sstevel@tonic-gate extern void Perror0(char *); 340Sstevel@tonic-gate extern void Perror0_exit(char *); 350Sstevel@tonic-gate extern void Perror2(char *, char *); 360Sstevel@tonic-gate extern void Perror2_exit(char *, char *); 37*3628Sss150715 extern void Perrdlpi(const char *, const char *, int); 38*3628Sss150715 extern void Perrdlpi_exit(const char *, const char *, int); 390Sstevel@tonic-gate 40*3628Sss150715 extern int doifrevarp(const char *, struct sockaddr_in *); 41*3628Sss150715 42*3628Sss150715 extern int dlpi_set_address(const char *, uchar_t *, uint_t); 43*3628Sss150715 extern void dlpi_print_address(const char *); 440Sstevel@tonic-gate 450Sstevel@tonic-gate #ifdef __cplusplus 460Sstevel@tonic-gate } 470Sstevel@tonic-gate #endif 480Sstevel@tonic-gate 490Sstevel@tonic-gate #endif /* _IFCONFIG_H */ 50