summaryrefslogtreecommitdiff
path: root/source4/libcli/dgram/mailslot.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-04-10 23:09:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:29 -0500
commitb708e87a63947bc963d17592ac88022b708816c3 (patch)
tree5d48fc3384ab53abd4639b842de2ac9e8d1001e8 /source4/libcli/dgram/mailslot.c
parente7dd6a12913464fd752ddb94bd2f553f14007c74 (diff)
downloadsamba-b708e87a63947bc963d17592ac88022b708816c3.tar.gz
samba-b708e87a63947bc963d17592ac88022b708816c3.tar.bz2
samba-b708e87a63947bc963d17592ac88022b708816c3.zip
r6288: the nbt dgram server now responds to GETDC requests. It works with our
test suite, but doesn't yet seem to satisfy a nt4 client. I'm investigating. (This used to be commit 406217262dff5adb5d0cb0028198e08f66cc85f4)
Diffstat (limited to 'source4/libcli/dgram/mailslot.c')
-rw-r--r--source4/libcli/dgram/mailslot.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/libcli/dgram/mailslot.c b/source4/libcli/dgram/mailslot.c
index 3b7fcdcd81..1035853240 100644
--- a/source4/libcli/dgram/mailslot.c
+++ b/source4/libcli/dgram/mailslot.c
@@ -142,6 +142,7 @@ NTSTATUS dgram_mailslot_send(struct nbt_dgram_socket *dgmsock,
const char *mailslot_name,
struct nbt_name *dest_name,
const char *dest_address,
+ int dest_port,
struct nbt_name *src_name,
DATA_BLOB *request)
{
@@ -152,6 +153,10 @@ NTSTATUS dgram_mailslot_send(struct nbt_dgram_socket *dgmsock,
struct smb_trans_body *trans;
NTSTATUS status;
+ if (dest_port == 0) {
+ dest_port = lp_dgram_port();
+ }
+
ZERO_STRUCT(packet);
packet.msg_type = msg_type;
packet.flags = DGRAM_FLAG_FIRST;
@@ -183,7 +188,7 @@ NTSTATUS dgram_mailslot_send(struct nbt_dgram_socket *dgmsock,
trans->mailslot_name = mailslot_name;
trans->data = *request;
- status = nbt_dgram_send(dgmsock, &packet, dest_address, lp_dgram_port());
+ status = nbt_dgram_send(dgmsock, &packet, dest_address, dest_port);
talloc_free(tmp_ctx);