xref: /onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.h (revision 12016:0248e987199b)
10Sstevel@tonic-gate /*
2*12016SGirish.Moodalbail@Sun.COM  * Copyright 2010 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 #ifdef	__cplusplus
150Sstevel@tonic-gate extern "C" {
160Sstevel@tonic-gate #endif
170Sstevel@tonic-gate 
180Sstevel@tonic-gate #include <libdlpi.h>
190Sstevel@tonic-gate 
200Sstevel@tonic-gate /*
210Sstevel@tonic-gate  * return values for (af_getaddr)() from in_getprefixlen()
220Sstevel@tonic-gate  */
230Sstevel@tonic-gate #define	BAD_ADDR	-1	/* prefix is invalid */
240Sstevel@tonic-gate #define	NO_PREFIX	-2	/* no prefix was found */
250Sstevel@tonic-gate 
260Sstevel@tonic-gate extern int	debug;
270Sstevel@tonic-gate 
285978Smeem extern void	Perror0(const char *);
295978Smeem extern void	Perror0_exit(const char *);
305978Smeem extern void	Perror2(const char *, const char *);
315978Smeem extern void	Perror2_exit(const char *, const char *);
323628Sss150715 extern void	Perrdlpi(const char *, const char *, int);
333628Sss150715 extern void	Perrdlpi_exit(const char *, const char *, int);
340Sstevel@tonic-gate 
353628Sss150715 extern int	doifrevarp(const char *, struct sockaddr_in *);
363628Sss150715 
373628Sss150715 extern void	dlpi_print_address(const char *);
380Sstevel@tonic-gate 
390Sstevel@tonic-gate #ifdef	__cplusplus
400Sstevel@tonic-gate }
410Sstevel@tonic-gate #endif
420Sstevel@tonic-gate 
430Sstevel@tonic-gate #endif	/* _IFCONFIG_H */
44