/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*/
/* Copyright (c) 1992 Sun Microsystems, Inc. */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* netdir.h
*
* This is the include file that defines various structures and
* constants used by the netdir routines.
*/
#ifndef _NETDIR_H
#define _NETDIR_H
/*
* This files uses struct netconfig, and netconfig.h must be included
* before this to avoid warnings.
*/
#include <netconfig.h>
#ifdef __cplusplus
extern "C" {
#endif
struct nd_addrlist {
};
struct nd_hostservlist {
};
struct nd_hostserv {
};
struct nd_mergearg {
};
/*
* _nderror is a private variable to the netdir system.
*/
#ifdef _REENTRANT
extern int *__nderror();
#else
extern int _nderror;
#endif /* _REENTRANT */
struct nd_addrlist **);
struct netbuf *);
struct netbuf *);
char *ruaddr);
void netdir_free(void *, int);
void netdir_perror(char *);
char *netdir_sperror();
/*
* These are all objects that can be freed by netdir_free
*/
#define ND_HOSTSERV 0
/*
* These are the various errors that can be encountered while attempting
* to translate names to addresses. Note that none of them (except maybe
* no memory) are truely fatal unless the ntoa deamon is on its last attempt
* to translate the name. First four errors are to failitate return values
* from DNS, that are used by mail and others.
*
* Negative errors terminate the search resolution process, positive errors
* are treated as warnings.
*/
/* SERVERFAIL */
/* NOTIMP */
/* type */
/*
* The following netdir_options commands can be given to the fd. These is
* a way of providing for any transport specific action which the caller
* may want to initiate on his transport. It is up to the trasport provider
* to support the netdir_options he wants to support.
*/
/*
* The following special case host names are used to give the underlying
* transport provides a clue as to the intent of the request.
*/
#ifdef __cplusplus
}
#endif
#endif /* _NETDIR_H */