ifconfig.h revision 5978:f182d580ff05
14162Skupfer/* 24162Skupfer * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 34162Skupfer * Use is subject to license terms. 44162Skupfer */ 54162Skupfer/* 64162Skupfer * Copyright (c) 1983 Regents of the University of California. 74162Skupfer * All rights reserved. The Berkeley software License Agreement 84162Skupfer * specifies the terms and conditions for redistribution. 94162Skupfer */ 104162Skupfer 114162Skupfer#ifndef _IFCONFIG_H 124162Skupfer#define _IFCONFIG_H 134162Skupfer 144162Skupfer#pragma ident "%Z%%M% %I% %E% SMI" 154162Skupfer 164162Skupfer#ifdef __cplusplus 174162Skupferextern "C" { 184162Skupfer#endif 194162Skupfer 204162Skupfer#include <libdlpi.h> 214162Skupfer 224162Skupfer/* 234162Skupfer * return values for (af_getaddr)() from in_getprefixlen() 244162Skupfer */ 254162Skupfer#define BAD_ADDR -1 /* prefix is invalid */ 264162Skupfer#define NO_PREFIX -2 /* no prefix was found */ 274162Skupfer 284162Skupfer/* No suitable header file defines this, though it's in libsocket */ 294162Skupferextern int getnetmaskbyaddr(struct in_addr, struct in_addr *); 304162Skupfer 314162Skupferextern int debug; 324162Skupfer 33extern void Perror0(const char *); 34extern void Perror0_exit(const char *); 35extern void Perror2(const char *, const char *); 36extern void Perror2_exit(const char *, const char *); 37extern void Perrdlpi(const char *, const char *, int); 38extern void Perrdlpi_exit(const char *, const char *, int); 39 40extern int doifrevarp(const char *, struct sockaddr_in *); 41 42extern int dlpi_set_address(const char *, uchar_t *, uint_t); 43extern void dlpi_print_address(const char *); 44 45#ifdef __cplusplus 46} 47#endif 48 49#endif /* _IFCONFIG_H */ 50