summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2002-05-14 20:19:11 +0000
committerRichard Sharpe <sharpe@samba.org>2002-05-14 20:19:11 +0000
commitbccbf3569801e8f16aed897c9d04c3f7e1430641 (patch)
treeaa61de16199332152e20449007baab30986c5cef
parent3180d8ba4ace9417033039d61d04c255da6f6a01 (diff)
downloadsamba-bccbf3569801e8f16aed897c9d04c3f7e1430641.tar.gz
samba-bccbf3569801e8f16aed897c9d04c3f7e1430641.tar.xz
samba-bccbf3569801e8f16aed897c9d04c3f7e1430641.zip
First part of adding flags returns from name_query ...
Do it bit-by-bit to ensure that no breakage creeps in.
-rw-r--r--source/include/nameserv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/include/nameserv.h b/source/include/nameserv.h
index 53a5a3b5d8a..fefa243c3fd 100644
--- a/source/include/nameserv.h
+++ b/source/include/nameserv.h
@@ -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
{