From 9593101ec118dd242bf25fabf3e17c58269e632c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 25 Sep 2005 21:01:56 +0000 Subject: r10491: First step towards wbinfo -t: This issues a name request for the primary domain and gets the DC's name via a mailslot call. Metze, I renamed wbsrv_queue_reply to wbsrv_send_reply in accordance with irpc_send_reply. Having _queue_ here and _send_ there is a bit confusing. And as everything is async anyway, the semantics should not be too much of a problem. Volker (This used to be commit 4637964b19c6e9f7d201b287e2d409d029fced01) --- source4/libcli/dgram/libdgram.h | 1 + source4/libcli/dgram/ntlogon.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/libcli') diff --git a/source4/libcli/dgram/libdgram.h b/source4/libcli/dgram/libdgram.h index b9dfe84996..5bddd220d0 100644 --- a/source4/libcli/dgram/libdgram.h +++ b/source4/libcli/dgram/libdgram.h @@ -137,6 +137,7 @@ NTSTATUS dgram_mailslot_netlogon_parse(struct dgram_mailslot_handler *dgmslot, struct nbt_netlogon_packet *netlogon); NTSTATUS dgram_mailslot_ntlogon_send(struct nbt_dgram_socket *dgmsock, + enum dgram_msg_type msg_type, struct nbt_name *dest_name, const char *dest_address, int dest_port, diff --git a/source4/libcli/dgram/ntlogon.c b/source4/libcli/dgram/ntlogon.c index 03d1266af0..efa5d4ab9e 100644 --- a/source4/libcli/dgram/ntlogon.c +++ b/source4/libcli/dgram/ntlogon.c @@ -32,6 +32,7 @@ send a ntlogon mailslot request */ NTSTATUS dgram_mailslot_ntlogon_send(struct nbt_dgram_socket *dgmsock, + enum dgram_msg_type msg_type, struct nbt_name *dest_name, const char *dest_address, int dest_port, @@ -50,7 +51,7 @@ NTSTATUS dgram_mailslot_ntlogon_send(struct nbt_dgram_socket *dgmsock, } - status = dgram_mailslot_send(dgmsock, DGRAM_DIRECT_UNIQUE, + status = dgram_mailslot_send(dgmsock, msg_type, NBT_MAILSLOT_NTLOGON, dest_name, dest_address, dest_port, src_name, &blob); -- cgit