From 30a1bc365071befd07e68e24ca4fa3843159ab13 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 28 Jan 2010 11:04:05 +0100 Subject: s3:nmbd: also listen explicit on the subnet broadcast addresses And send replies always via the unicast address of the subnet. This behavior is off by default (as before) and can be enabled with "nmbd:bind explicit broadcast = yes". metze --- source3/include/nameserv.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/include/nameserv.h') diff --git a/source3/include/nameserv.h b/source3/include/nameserv.h index 496d87e2db..53ffd6faec 100644 --- a/source3/include/nameserv.h +++ b/source3/include/nameserv.h @@ -434,7 +434,9 @@ struct subnet_record { struct in_addr mask_ip; struct in_addr myip; int nmb_sock; /* socket to listen for unicast 137. */ + int nmb_bcast; /* socket to listen for broadcast 137. */ int dgram_sock; /* socket to listen for unicast 138. */ + int dgram_bcast; /* socket to listen for broadcast 138. */ }; /* A resource record. */ @@ -530,7 +532,8 @@ struct packet_struct bool locked; struct in_addr ip; int port; - int fd; + int recv_fd; + int send_fd; time_t timestamp; enum packet_type packet_type; union { -- cgit