view usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.h @ 12016:0248e987199b

PSARC 2009/306 Brussels II - ipadm and libipadm PSARC 2010/080 Brussels II addendum 6827318 Brussels Phase II aka ipadm(1m) 6731945 need BSD getifaddrs() API 6909065 explicitly disallow non-contiguous netmasks in the next minor release 6853922 ifconfig dumps core when ether address is non-hexadecimal. 6815806 ipReasmTimeout value should be variable 6567083 nd_getset has some dead and confusing code. 6884466 remove unused tcp/sctp ndd tunables 6928813 Comments at odds with default value of tcp_time_wait_interval 6236982 ifconfig usesrc lets adapter use itself as source address 6936855 modifying the ip6_strict_src_multihoming to non-zero value will unbind V4 IREs
author Girish Moodalbail <Girish.Moodalbail@Sun.COM>
date Fri, 26 Mar 2010 17:53:11 -0400
parents 633e5b5eb268
children
line wrap: on
line source

/*
 * 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 */