summaryrefslogtreecommitdiff
path: root/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.h
blob: 85f9ec0b1735406106477100f50efd36a8ad9e6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
 * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 */
/*
 * Copyright (c) 1983 Regents of the University of California.
 * All rights reserved.  The Berkeley software License Agreement
 * specifies the terms and conditions for redistribution.
 */

#ifndef	_IFCONFIG_H
#define	_IFCONFIG_H

#ifdef	__cplusplus
extern "C" {
#endif

#include <libdlpi.h>

/*
 * return values for (af_getaddr)() from in_getprefixlen()
 */
#define	BAD_ADDR	-1	/* prefix is invalid */
#define	NO_PREFIX	-2	/* no prefix was found */

extern int	debug;

extern void	Perror0(const char *);
extern void	Perror0_exit(const char *);
extern void	Perror2(const char *, const char *);
extern void	Perror2_exit(const char *, const char *);
extern void	Perrdlpi(const char *, const char *, int);
extern void	Perrdlpi_exit(const char *, const char *, int);

extern int	doifrevarp(const char *, struct sockaddr_in *);

extern void	dlpi_print_address(const char *);

#ifdef	__cplusplus
}
#endif

#endif	/* _IFCONFIG_H */