irp_nw.c revision 84910d09ee8244027c7031e03999bc60a3d63adb
/*
* 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 */
#if 0
#endif
/* Imports */
#include "port_before.h"
#include <syslog.h>
#include <errno.h>
#include <fcntl.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 "lcl_p.h"
#include "irp_p.h"
#include "port_after.h"
#define MAXALIASES 35
#define MAXADDRSIZE 4
struct pvt {
int warned;
};
/* Forward */
static void nw_minimize(struct irs_nw *);
/* Public */
/*%
* struct irs_nw * irs_irp_nw(struct irs_acc *this)
*
*/
struct irs_nw *
return (NULL);
}
return (NULL);
}
return (nw);
}
/* Methods */
/*%
* void nw_close(struct irs_nw *this)
*
*/
static void
}
/*%
* struct nwent * nw_byaddr(struct irs_nw *this, void *net,
* int length, int type)
*
*/
static struct nwent *
int code;
char text[256];
return (NULL);
}
return (NULL);
}
return (NULL);
return (NULL);
}
if (code == IRPD_GETNET_OK) {
}
} else {
}
}
return (nw);
}
/*%
* struct nwent * nw_byname(struct irs_nw *this, const char *name, int type)
*
*/
static struct nwent *
int code;
char text[256];
return (nw);
}
return (NULL);
}
return (NULL);
return (NULL);
}
if (code == IRPD_GETNET_OK) {
}
} else {
}
}
return (nw);
}
/*%
* void nw_rewind(struct irs_nw *this)
*
*/
static void
char text[256];
int code;
return;
}
return;
}
if (code != IRPD_GETNET_SETOK) {
if (irp_log_errors) {
}
}
return;
}
/*%
* Prepares the cache if necessary and returns the first, or
* next item from it.
*/
static struct nwent *
char *body;
int code;
char text[256];
return (NULL);
}
return (NULL);
}
return (NULL);
}
if (code == IRPD_GETNET_OK) {
}
} else {
}
return (nw);
}
/*%
* void nw_minimize(struct irs_nw *this)
*
*/
static void
}
/* private. */
/*%
* deallocate all the memory irp_unmarshall_pw allocated.
*
*/
static void
char **p;
return;
free(*p);
}
}
}
/*! \file */