/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
* Portions Copyright (c) 1996,1998 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#endif /* LIBC_SCCS and not lint */
/* Imports. */
#include "port_before.h"
#include <syslog.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <resolv.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <irs.h>
#include <irp.h>
#include <isc/irpmarshall.h>
#include <isc/memcluster.h>
#include "irs_p.h"
#include "dns_p.h"
#include "irp_p.h"
#include "port_after.h"
/* Definitions. */
#define Max(a,b) ((a) > (b) ? (a) : (b))
struct pvt {
int warned;
};
/* Forward. */
int af);
/* Public. */
/*%
* struct irs_ho * irs_irp_ho(struct irs_acc *this)
*
* Notes:
*
* Initializes the irp_ho module.
*
*/
struct irs_ho *
return (NULL);
}
return (NULL);
}
return (ho);
}
/* Methods. */
/*%
* Closes down the module.
*
*/
static void
}
/*
* struct hostent * ho_byname(struct irs_ho *this, const char *name)
*
*/
static struct hostent *
}
/*
* struct hostent * ho_byname2(struct irs_ho *this, const char *name, int af)
*
*/
static struct hostent *
int code;
return (ho);
}
return (NULL);
}
return (NULL);
return (NULL);
}
if (code == IRPD_GETHOST_OK) {
}
} else {
}
}
return (ho);
}
/*
* struct hostent * ho_byaddr(struct irs_ho *this, const void *addr,
* int len, int af)
*
*/
static struct hostent *
int code;
char **p;
return (ho);
}
}
return (NULL);
}
return (NULL);
}
return (NULL);
}
return (NULL);
}
if (code == IRPD_GETHOST_OK) {
}
} else {
}
}
return (ho);
}
/*%
* The implementation for gethostent(3). The first time it's
* called all the data is pulled from the remote(i.e. what
* the maximum number of gethostent(3) calls would return)
* and that data is cached.
*
*/
static struct hostent *
char *body;
int code;
return (NULL);
}
return (NULL);
}
return (NULL);
}
if (code == IRPD_GETHOST_OK) {
}
} else {
}
}
return (ho);
}
/*%
* void ho_rewind(struct irs_ho *this)
*
*/
static void
int code;
return;
}
return;
}
if (code != IRPD_GETHOST_SETOK) {
if (irp_log_errors) {
}
}
return;
}
/*%
* void ho_minimize(struct irs_ho *this)
*
*/
static void
}
/*%
* void free_host(struct hostent *ho)
*
*/
static void
char **p;
return;
}
free(*p);
}
free(*p);
}
}
/* dummy */
static struct addrinfo *
{
return(NULL);
}
/*! \file */