From 17367da42df0af3d6bf57dc6a429c0e8bf974ce8 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Tue, 14 May 2002 20:19:11 +0000 Subject: [PATCH] First part of adding flags returns from name_query ... Do it bit-by-bit to ensure that no breakage creeps in. (This used to be commit bccbf3569801e8f16aed897c9d04c3f7e1430641) --- source3/include/nameserv.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source3/include/nameserv.h b/source3/include/nameserv.h index 53a5a3b5d8a..fefa243c3fd 100644 --- a/source3/include/nameserv.h +++ b/source3/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 { -- 2.11.4.GIT