/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1996,1999 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.
*/
#ifndef lint
#endif
/* Import. */
#include "port_before.h"
#include <errno.h>
#include <resolv.h>
#include <string.h>
#include "port_after.h"
/* Forward. */
/* Macros. */
#if !defined(SOLARIS2) || defined(__COVERITY__)
#else
#endif
/* Public. */
/* These need to be in the same order as the nres.h:ns_flag enum. */
{ 0x8000, 15 }, /*%< qr. */
{ 0x7800, 11 }, /*%< opcode. */
{ 0x0400, 10 }, /*%< aa. */
{ 0x0200, 9 }, /*%< tc. */
{ 0x0100, 8 }, /*%< rd. */
{ 0x0080, 7 }, /*%< ra. */
{ 0x0040, 6 }, /*%< z. */
{ 0x0020, 5 }, /*%< ad. */
{ 0x0010, 4 }, /*%< cd. */
{ 0x000f, 0 }, /*%< rcode. */
{ 0x0000, 0 }, /*%< expansion (1/6). */
{ 0x0000, 0 }, /*%< expansion (2/6). */
{ 0x0000, 0 }, /*%< expansion (3/6). */
{ 0x0000, 0 }, /*%< expansion (4/6). */
{ 0x0000, 0 }, /*%< expansion (5/6). */
{ 0x0000, 0 }, /*%< expansion (6/6). */
};
}
int
int b, rdlength;
if (b < 0)
}
}
}
int
int i;
for (i = 0; i < ns_s_max; i++) {
}
for (i = 0; i < ns_s_max; i++)
else {
if (b < 0)
return (-1);
msg += b;
}
return (0);
}
int
int b;
int tmp;
/* Make section right. */
/* Make rrnum right. */
if (rrnum == -1)
if (b < 0)
return (-1);
}
/* Do the parse. */
if (b < 0)
return (-1);
} else {
}
/* All done. */
return (0);
}
/*
* This is identical to the above but uses network-format (uncompressed) names.
*/
int
int b;
int tmp;
/* Make section right. */
/* Make rrnum right. */
if (rrnum == -1)
if (b < 0)
return (-1);
}
/* Do the parse. */
if (b < 0)
return (-1);
} else {
}
/* All done. */
return (0);
}
/* Private. */
static void
} else {
}
}
/*! \file */