summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-11 15:10:57 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-11 15:10:57 +0000
commit9160c85a78b66dab5318e2c9c922f00b6b3560f5 (patch)
tree358356803f5b23e5db51ec2e8d6ec783c1380ab4 /source3/include
parentf0340f490473b5be0aa2ef5d0dd99f543ec2ab9a (diff)
downloadsamba-9160c85a78b66dab5318e2c9c922f00b6b3560f5.tar.gz
samba-9160c85a78b66dab5318e2c9c922f00b6b3560f5.tar.bz2
samba-9160c85a78b66dab5318e2c9c922f00b6b3560f5.zip
namelogon.c :
added NTLOGON. (fixed the case 0:) namepacket.c: call to NTLOGON mailslot nameserv.h defines for NETLOGON and NTLOGON mailslot util.c: added andrew's dump_data() function. (This used to be commit 1eaad1c99463dcd42eb8ff4ea5686ad9ec6fc42e)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/nameserv.h7
-rw-r--r--source3/include/proto.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/source3/include/nameserv.h b/source3/include/nameserv.h
index 83f3a3c524..593c101d92 100644
--- a/source3/include/nameserv.h
+++ b/source3/include/nameserv.h
@@ -82,6 +82,7 @@
/* mail slots */
#define BROWSE_MAILSLOT "\\MAILSLOT\\BROWSE"
#define NET_LOGON_MAILSLOT "\\MAILSLOT\\NET\\NETLOGON"
+#define NT_LOGON_MAILSLOT "\\MAILSLOT\\NET\\NTLOGON"
enum name_source {STATUS_QUERY, LMHOSTS, REGISTER, SELF, DNS, DNSFAIL};
enum node_type {B_NODE=0, P_NODE=1, M_NODE=2, NBDD_NODE=3};
@@ -372,6 +373,12 @@ struct packet_struct
} packet;
};
+/* NETLOGON opcodes */
+#define QUERYFORPDC 7 /* Query for PDC */
+#define QUERYFORPDC_R 12 /* Response to Query for PDC */
+#define SAMLOGON 18
+#define SAMLOGON_R 19
+
/* ids for netbios packet types */
#define ANN_HostAnnouncement 1
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 93458bcaf9..f859e9bfa2 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1071,3 +1071,4 @@ void pstrcpy(char *dest, char *src);
char *align4(char *q, char *base);
char *align2(char *q, char *base);
char *align_offset(char *q, char *base, int align_offset_len);
+void dump_data(int level,unsigned char *buf,int len);