getnet.c revision 7e4d75a5daeaaf8a7f559f9bd7fbf540184e235c
/*
* Copyright (C) 2000 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 INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM 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.
*/
#include <isc/net.h>
#include <isc/util.h>
#include <lwres/netdb.h>
#include <stdio.h>
struct netent *
getnetbyname(const char *name) {
/* XXX */
UNUSED(name);
return (NULL);
}
struct netent *
getnetbyaddr(unsigned long net, int type) {
if (type == AF_INET)
return (NULL);
/* XXX */
UNUSED(net);
return (NULL);
}
struct netent *
getnetent() {
return (NULL);
}
void
setnetent(int stayopen) {
UNUSED(stayopen);
/* empty */
}
void
endnetent() {
/* empty */
}
struct netent *
getnetbyname_r(const char *name, struct netent *resbuf, char *buf,
int buflen)
{
return (NULL);
}
struct netent *
getnetbyaddr_r(long addr, int type, struct netent *resbuf, char *buf,
int buflen)
{
return (NULL);
}
struct netent *
getnetent_r(struct netent *resbuf, char *buf, int buflen) {
return (NULL);
}
void
setnetent_r(int stayopen) {
(void)stayopen;
}
void
endnetent_r(void) {
/* empty */
}