516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx/*
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx * Use is subject to license terms.
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx */
a399b7655a1d835aa8606c2b29e4e777baac8635zf/*
a399b7655a1d835aa8606c2b29e4e777baac8635zf * Copyright (c) 1983 Regents of the University of California.
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx * All rights reserved. The Berkeley software License Agreement
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx * specifies the terms and conditions for redistribution.
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx */
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#ifndef _IFCONFIG_H
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#define _IFCONFIG_H
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#ifdef __cplusplus
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxextern "C" {
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#endif
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#include <libdlpi.h>
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx/*
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx * return values for (af_getaddr)() from in_getprefixlen()
e2cf88ac9d753a00c17aa235f6afdc76574fe3a6Quaker Fang */
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#define BAD_ADDR -1 /* prefix is invalid */
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#define NO_PREFIX -2 /* no prefix was found */
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxextern int debug;
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxextern void Perror0(const char *);
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxextern void Perror0_exit(const char *);
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxextern void Perror2(const char *, const char *);
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxextern void Perror2_exit(const char *, const char *);
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxextern void Perrdlpi(const char *, const char *, int);
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxextern void Perrdlpi_exit(const char *, const char *, int);
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxextern int doifrevarp(const char *, struct sockaddr_in *);
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxextern void dlpi_print_address(const char *);
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#ifdef __cplusplus
0d2f4bc964616a7fec76406480264fcaa2cfbc14ff}
0d2f4bc964616a7fec76406480264fcaa2cfbc14ff#endif
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx#endif /* _IFCONFIG_H */
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx