wks_11.c revision 44a966dff66061ac3f266c6b451a70733eb78e82
/*
* Copyright (C) 1998 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.
*/
/* $Id: wks_11.c,v 1.1 1999/01/21 06:02:15 marka Exp $ */
#ifndef RDATA_IN_1_WKS_11_H
#define RDATA_IN_1_WKS_11_H
#include <limits.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
static dns_result_t
char *e;
long proto;
long port;
long maxport = -1;
unsigned int n;
/* IPv4 dotted quad */
if (result != DNS_R_SUCCESS)
return (result);
return (DNS_R_BADDOTTEDQUAD);
return (DNS_R_NOSPACE);
/* protocol */
if (result != DNS_R_SUCCESS)
return (result);
if (*e == '\0')
(void)NULL;
else
return (DNS_R_UNEXPECTED);
return (DNS_R_RANGE);
if (proto == IPPROTO_TCP)
ps = "tcp";
else if (proto == IPPROTO_UDP)
ps = "udp";
while (1) {
ISC_TRUE);
if (result != DNS_R_SUCCESS)
return (result);
break;
if (*e == '\0')
(void) NULL;
!= NULL)
else
return (DNS_R_UNEXPECTED);
return (DNS_R_RANGE);
}
}
static dns_result_t
unsigned short proto;
char buf[sizeof "65535"];
unsigned int i, j;
return (DNS_R_NOSPACE);
if (result != DNS_R_SUCCESS)
return (result);
if (result != DNS_R_SUCCESS)
return (result);
if (result != DNS_R_SUCCESS)
return (result);
for (j = 0; j < 8; j++)
if (result != DNS_R_SUCCESS)
return (result);
if (result != DNS_R_SUCCESS)
return (result);
}
}
return (DNS_R_SUCCESS);
}
static dns_result_t
return (DNS_R_UNEXPECTEDEND);
return (DNS_R_EXTRADATA);
return (DNS_R_NOSPACE);
return (DNS_R_SUCCESS);
}
static dns_result_t
}
static int
}
static dns_result_t
isc_buffer_t *target) {
return (DNS_R_NOTIMPLEMENTED);
}
static dns_result_t
return (DNS_R_NOTIMPLEMENTED);
}
#endif /* RDATA_IN_1_WKS_11_H */