mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-12-27 16:31:19 +00:00
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:
parent
f61bb88c0d
commit
2ef4d75aa5
@ -213,7 +213,8 @@ typedef struct {
|
|||||||
unsigned rd: 1; /* recursion desired */
|
unsigned rd: 1; /* recursion desired */
|
||||||
/* fields in fourth byte */
|
/* fields in fourth byte */
|
||||||
unsigned ra: 1; /* recursion available */
|
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 */
|
unsigned rcode :4; /* response code */
|
||||||
#endif
|
#endif
|
||||||
#if BYTE_ORDER == LITTLE_ENDIAN || BYTE_ORDER == PDP_ENDIAN
|
#if BYTE_ORDER == LITTLE_ENDIAN || BYTE_ORDER == PDP_ENDIAN
|
||||||
@ -225,7 +226,8 @@ typedef struct {
|
|||||||
unsigned qr :1; /* response flag */
|
unsigned qr :1; /* response flag */
|
||||||
/* fields in fourth byte */
|
/* fields in fourth byte */
|
||||||
unsigned rcode :4; /* response code */
|
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 */
|
unsigned ra :1; /* recursion available */
|
||||||
#endif
|
#endif
|
||||||
/* remaining bytes */
|
/* remaining bytes */
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
*
|
*
|
||||||
* @(#)resolv.h 8.1 (Berkeley) 6/2/93
|
* @(#)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
|
* 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_
|
#ifndef _RESOLV_H_
|
||||||
@ -204,7 +204,11 @@ typedef res_sendhookact (*res_send_rhook)__P((const struct sockaddr_in *ns,
|
|||||||
int anssiz,
|
int anssiz,
|
||||||
int *resplen));
|
int *resplen));
|
||||||
|
|
||||||
|
#ifdef __RES
|
||||||
extern struct __res_state _res;
|
extern struct __res_state _res;
|
||||||
|
#else
|
||||||
|
extern struct state _res;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Private routines shared between libc/net, named, nslookup and others. */
|
/* Private routines shared between libc/net, named, nslookup and others. */
|
||||||
#define dn_skipname __dn_skipname
|
#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,
|
int res_querydomain __P((const char *, const char *, int, int,
|
||||||
u_char *, int));
|
u_char *, int));
|
||||||
int res_mkquery __P((int, const char *, int, int, const 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_send __P((const u_char *, int, u_char *, int));
|
||||||
int res_isourserver __P((const struct sockaddr_in *));
|
int res_isourserver __P((const struct sockaddr_in *));
|
||||||
int res_nameinquery __P((const char *, int, int,
|
int res_nameinquery __P((const char *, int, int,
|
||||||
|
Loading…
Reference in New Issue
Block a user