summaryrefslogtreecommitdiff
path: root/source4/nbt_server/irpc.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-05-17 13:24:29 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-05-17 13:24:29 +1000
commit4f557d7954eb80e566a91b2fe22f7b7e30e0b456 (patch)
tree6e656626a2631200c66869c7bef313f77ef37084 /source4/nbt_server/irpc.c
parent842040d18490d9f6d1fed621aa36946e2becc3e1 (diff)
downloadsamba-4f557d7954eb80e566a91b2fe22f7b7e30e0b456.tar.gz
Show that the NTLOGON and NETLOGON mailslots are *very* similar.
Rework the mailslot infrustructure to cope, passing down the mailslot name so that we can implement both in the same callback function. Andrew Bartlett (This used to be commit 89fdd77891529aa74bb920994b8b5959aae8ac2d)
Diffstat (limited to 'source4/nbt_server/irpc.c')
-rw-r--r--source4/nbt_server/irpc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/nbt_server/irpc.c b/source4/nbt_server/irpc.c
index d184d05388b..3a70c98041a 100644
--- a/source4/nbt_server/irpc.c
+++ b/source4/nbt_server/irpc.c
@@ -60,8 +60,9 @@ struct getdc_state {
};
static void getdc_recv_netlogon_reply(struct dgram_mailslot_handler *dgmslot,
- struct nbt_dgram_packet *packet,
- struct socket_address *src)
+ struct nbt_dgram_packet *packet,
+ const char *mailslot_name,
+ struct socket_address *src)
{
struct getdc_state *s =
talloc_get_type(dgmslot->private, struct getdc_state);
@@ -69,8 +70,8 @@ static void getdc_recv_netlogon_reply(struct dgram_mailslot_handler *dgmslot,
struct nbt_netlogon_response netlogon;
NTSTATUS status;
- status = dgram_mailslot_netlogon_parse(dgmslot, packet, packet,
- &netlogon);
+ status = dgram_mailslot_netlogon_parse_response(dgmslot, packet, packet,
+ &netlogon);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(5, ("dgram_mailslot_ntlogon_parse failed: %s\n",
nt_errstr(status)));