First part of adding flags returns from name_query ...
authorRichard Sharpe <sharpe@samba.org>
Tue, 14 May 2002 20:19:11 +0000 (20:19 +0000)
committerRichard Sharpe <sharpe@samba.org>
Tue, 14 May 2002 20:19:11 +0000 (20:19 +0000)
Do it bit-by-bit to ensure that no breakage creeps in.

source/include/nameserv.h

index 53a5a3b5d8ac0c658dfa902928adcd2670bbb1e6..fefa243c3fda805ad13faee0840dc32da4340cdc 100644 (file)
@@ -458,6 +458,14 @@ struct res_rec {
   char rdata[MAX_DGRAM_SIZE];
 };
 
+/* Define these so we can pass info back to caller of name_query */
+#define NM_FLAGS_RS 0x80 /* Response. Cheat     */
+#define NM_FLAGS_AA 0x40 /* Authoritative       */
+#define NM_FLAGS_TC 0x20 /* Truncated           */
+#define NM_FLAGS_RD 0x10 /* Recursion Desired   */
+#define NM_FLAGS_RA 0x08 /* Recursion Available */
+#define NM_FLAGS_B  0x01 /* Broadcast           */
+
 /* An nmb packet. */
 struct nmb_packet
 {