From 77c647f2cf4e7131a42a9f59f41242fbe9913e8a Mon Sep 17 00:00:00 2001 From: Kevin Dunlap Date: Tue, 8 Oct 1985 04:42:59 -0800 Subject: [PATCH] add #ifdef BIT_ZERO_ON_LEFT for Gould and other nuxi machines, Thanks to mike@brl SCCS-vsn: include/arpa/nameser.h 5.3 --- usr/src/include/arpa/nameser.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/usr/src/include/arpa/nameser.h b/usr/src/include/arpa/nameser.h index 3ba2e0220b..db1331b2ca 100644 --- a/usr/src/include/arpa/nameser.h +++ b/usr/src/include/arpa/nameser.h @@ -94,6 +94,21 @@ typedef struct { u_short id; /* query identification number */ +#ifdef BIT_ZERO_ON_LEFT + /* Bit zero on left: Gould and similar architectures */ + /* fields in third byte */ + u_char qr:1; /* response flag */ + u_char opcode:4; /* purpose of message */ + u_char aa:1; /* authoritive answer */ + u_char tc:1; /* truncated message */ + u_char rd:1; /* recursion desired */ + /* fields in forth byte */ + u_char ra:1; /* recursion available */ + u_char pr:1; /* primary server required (non standard) */ + u_char unused:2; /* unused bits */ + u_char rcode:4; /* response code */ +#else + /* Bit zero on right: VAX, PDP-11, etc */ /* fields in third byte */ u_char rd:1; /* recursion desired */ u_char tc:1; /* truncated message */ @@ -105,6 +120,7 @@ typedef struct { u_char unused:2; /* unused bits */ u_char pr:1; /* primary server required (non standard) */ u_char ra:1; /* recursion available */ +#endif /* remaining bytes */ u_short qdcount; /* number of question entries */ u_short ancount; /* number of answer entries */ -- 2.20.1