xref: /titanic_52/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.h (revision 6e91bba0d6c6bdabbba62cefae583715a4a58e2a)
17c478bd9Sstevel@tonic-gate /*
2*6e91bba0SGirish Moodalbail  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
47c478bd9Sstevel@tonic-gate  */
57c478bd9Sstevel@tonic-gate /*
67c478bd9Sstevel@tonic-gate  * Copyright (c) 1983 Regents of the University of California.
77c478bd9Sstevel@tonic-gate  * All rights reserved.  The Berkeley software License Agreement
87c478bd9Sstevel@tonic-gate  * specifies the terms and conditions for redistribution.
97c478bd9Sstevel@tonic-gate  */
107c478bd9Sstevel@tonic-gate 
117c478bd9Sstevel@tonic-gate #ifndef	_IFCONFIG_H
127c478bd9Sstevel@tonic-gate #define	_IFCONFIG_H
137c478bd9Sstevel@tonic-gate 
147c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
157c478bd9Sstevel@tonic-gate extern "C" {
167c478bd9Sstevel@tonic-gate #endif
177c478bd9Sstevel@tonic-gate 
187c478bd9Sstevel@tonic-gate #include <libdlpi.h>
197c478bd9Sstevel@tonic-gate 
207c478bd9Sstevel@tonic-gate /*
217c478bd9Sstevel@tonic-gate  * return values for (af_getaddr)() from in_getprefixlen()
227c478bd9Sstevel@tonic-gate  */
237c478bd9Sstevel@tonic-gate #define	BAD_ADDR	-1	/* prefix is invalid */
247c478bd9Sstevel@tonic-gate #define	NO_PREFIX	-2	/* no prefix was found */
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate extern int	debug;
277c478bd9Sstevel@tonic-gate 
28f7d61273Smeem extern void	Perror0(const char *);
29f7d61273Smeem extern void	Perror0_exit(const char *);
30f7d61273Smeem extern void	Perror2(const char *, const char *);
31f7d61273Smeem extern void	Perror2_exit(const char *, const char *);
32c7e4935fSss150715 extern void	Perrdlpi(const char *, const char *, int);
33c7e4935fSss150715 extern void	Perrdlpi_exit(const char *, const char *, int);
347c478bd9Sstevel@tonic-gate 
35c7e4935fSss150715 extern int	doifrevarp(const char *, struct sockaddr_in *);
367c478bd9Sstevel@tonic-gate 
37c7e4935fSss150715 extern void	dlpi_print_address(const char *);
387c478bd9Sstevel@tonic-gate 
397c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
407c478bd9Sstevel@tonic-gate }
417c478bd9Sstevel@tonic-gate #endif
427c478bd9Sstevel@tonic-gate 
437c478bd9Sstevel@tonic-gate #endif	/* _IFCONFIG_H */
44