/*
* Copyright (C) 1999-2002, 2004, 2007, 2009, 2011-2017 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id$ */
/* Reviewed: Fri Mar 17 15:01:49 PST 2000 by explorer */
#ifndef RDATA_IN_1_WKS_11_C
#define RDATA_IN_1_WKS_11_C
#include <limits.h>
#include <stdlib.h>
#define RRTYPE_WKS_ATTRIBUTES (0)
static void init_lock(void) {
}
static isc_boolean_t
}
static isc_boolean_t
}
#ifdef _WIN32
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
static inline isc_result_t
char *e;
long proto;
long port;
unsigned int n;
int i;
#ifdef _WIN32
{
int err;
if (err != 0)
return (ISC_R_FAILURE);
}
#endif
/*
* IPv4 dotted quad.
*/
ISC_FALSE));
return (ISC_R_NOSPACE);
/*
* Protocol.
*/
ISC_FALSE));
if (*e == 0)
;
if (proto == IPPROTO_TCP)
ps = "tcp";
else if (proto == IPPROTO_UDP)
ps = "udp";
do {
break;
/*
* Lowercase the service string as some getservbyname() are
* case sensitive and the database is usually in lowercase.
*/
if (*e == 0)
;
} while (1);
/*
*/
#ifdef _WIN32
WSACleanup();
#endif
return (result);
}
static inline isc_result_t
unsigned short proto;
unsigned int i, j;
for (j = 0; j < 8; j++)
"%u", i * 8 + j);
}
}
return (ISC_R_SUCCESS);
}
static inline isc_result_t
return (ISC_R_UNEXPECTEDEND);
return (DNS_R_EXTRADATA);
return (ISC_R_NOSPACE);
return (ISC_R_SUCCESS);
}
static inline isc_result_t
}
static inline int
}
static inline isc_result_t
isc_uint32_t a;
}
static inline isc_result_t
isc_uint32_t n;
n = uint32_fromregion(®ion);
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
}
static inline void
return;
}
static inline isc_result_t
return (ISC_R_SUCCESS);
}
static inline isc_result_t
isc_region_t r;
dns_rdata_toregion(rdata, &r);
}
static inline isc_boolean_t
}
static inline isc_boolean_t
return (ISC_TRUE);
}
static inline int
}
#endif /* RDATA_IN_1_WKS_11_C */