From ab4577f141b0c08a543d998a36892bbafae4e902 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 30 Aug 1998 17:04:24 +0000 Subject: added a dest_port parameter to send_mailslot() so we send replies to the correct port in environments like ip masq. (This used to be commit 7d455ee637b6ff70c95845f89d71573ca07b83f3) --- source3/nmbd/nmbd_incomingdgrams.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source3/nmbd/nmbd_incomingdgrams.c') diff --git a/source3/nmbd/nmbd_incomingdgrams.c b/source3/nmbd/nmbd_incomingdgrams.c index daa321b3ae..36242d9ac2 100644 --- a/source3/nmbd/nmbd_incomingdgrams.c +++ b/source3/nmbd/nmbd_incomingdgrams.c @@ -536,12 +536,12 @@ originate from OS/2 Warp client. Ignoring packet.\n")); /**************************************************************************** Send a backup list response. *****************************************************************************/ - static void send_backup_list_response(struct subnet_record *subrec, - struct work_record *work, - struct nmb_name *send_to_name, - unsigned char max_number_requested, - uint32 token, struct in_addr sendto_ip) + struct work_record *work, + struct nmb_name *send_to_name, + unsigned char max_number_requested, + uint32 token, struct in_addr sendto_ip, + int port) { char outbuf[1024]; char *p, *countptr, *nameptr; @@ -610,7 +610,7 @@ static void send_backup_list_response(struct subnet_record *subrec, outbuf,PTR_DIFF(p,outbuf), global_myname, 0, send_to_name->name,0, - sendto_ip, subrec->myip); + sendto_ip, subrec->myip, port); } /******************************************************************* @@ -687,7 +687,7 @@ and I am not a local master browser.\n", workgroup_name)); } send_backup_list_response(subrec, work, &dgram->source_name, - max_number_requested, token, p->ip); + max_number_requested, token, p->ip, p->port); } /******************************************************************* -- cgit