From f85f9cb03d50447b83cc2b0c4457e96b9c1f707f Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 24 Jan 2000 20:46:58 +0000 Subject: [PATCH] getnetbyaddr(in_addr_t, ...) --- lib/lwres/getnet.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/lwres/getnet.c b/lib/lwres/getnet.c index 2683822289..48bd976caf 100644 --- a/lib/lwres/getnet.c +++ b/lib/lwres/getnet.c @@ -12,6 +12,18 @@ getnetbyname(const char *name) { return (NULL); } +#ifdef ISC_LWRES_GETNETBYADDRINADDR +struct netent * +getnetbyaddr(in_addr_t net, int type) { + + if (type == AF_INET) + return (NULL); + + /* XXX */ + UNUSED(net); + return (NULL); +} +#else struct netent * getnetbyaddr(unsigned long net, int type) { @@ -22,6 +34,7 @@ getnetbyaddr(unsigned long net, int type) { UNUSED(net); return (NULL); } +#endif struct netent * getnetent() {