changes submitted by Derek Taubert:

resolv.h:  	changed proto of res_mkquery()
	arpa/nameser.h:	added the 'pr' field to the HEADER struct
This commit is contained in:
gdr 1997-11-01 19:06:22 +00:00
parent f61bb88c0d
commit 2ef4d75aa5
2 changed files with 10 additions and 4 deletions

View File

@ -213,7 +213,8 @@ typedef struct {
unsigned rd: 1; /* recursion desired */
/* fields in fourth byte */
unsigned ra: 1; /* recursion available */
unsigned unused :3; /* unused bits (MBZ as of 4.9.3a3) */
unsigned pr: 1; /* primary server required (non standard) */
unsigned unused :2; /* unused bits (MBZ as of 4.9.3a3) */
unsigned rcode :4; /* response code */
#endif
#if BYTE_ORDER == LITTLE_ENDIAN || BYTE_ORDER == PDP_ENDIAN
@ -225,7 +226,8 @@ typedef struct {
unsigned qr :1; /* response flag */
/* fields in fourth byte */
unsigned rcode :4; /* response code */
unsigned unused :3; /* unused bits (MBZ as of 4.9.3a3) */
unsigned unused :2; /* unused bits (MBZ as of 4.9.3a3) */
unsigned pr: 1; /* primary server required (non standard) */
unsigned ra :1; /* recursion available */
#endif
/* remaining bytes */

View File

@ -53,7 +53,7 @@
*
* @(#)resolv.h 8.1 (Berkeley) 6/2/93
* From Id: resolv.h,v 4.9.1.2 1993/05/17 09:59:01 vixie Exp
* $Id: resolv.h,v 1.1 1997/02/28 04:42:02 gdr Exp $
* $Id: resolv.h,v 1.2 1997/11/01 19:06:04 gdr Exp $
*/
#ifndef _RESOLV_H_
@ -204,7 +204,11 @@ typedef res_sendhookact (*res_send_rhook)__P((const struct sockaddr_in *ns,
int anssiz,
int *resplen));
#ifdef __RES
extern struct __res_state _res;
#else
extern struct state _res;
#endif
/* Private routines shared between libc/net, named, nslookup and others. */
#define dn_skipname __dn_skipname
@ -253,7 +257,7 @@ int res_search __P((const char *, int, int, u_char *, int));
int res_querydomain __P((const char *, const char *, int, int,
u_char *, int));
int res_mkquery __P((int, const char *, int, int, const u_char *, int,
const u_char *, u_char *, int));
const struct rrec *, u_char *, int));
int res_send __P((const u_char *, int, u_char *, int));
int res_isourserver __P((const struct sockaddr_in *));
int res_nameinquery __P((const char *, int, int,