summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-01-28 11:04:05 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-08 18:35:10 +0100
commit30a1bc365071befd07e68e24ca4fa3843159ab13 (patch)
tree46c66e57dda4239d21079d31ea3fbc4a6c49a4b7 /source3/include
parent6339de7f4fef46fb3ad32d1ecf9379f5b5d24ccb (diff)
downloadsamba-30a1bc365071befd07e68e24ca4fa3843159ab13.tar.gz
samba-30a1bc365071befd07e68e24ca4fa3843159ab13.tar.bz2
samba-30a1bc365071befd07e68e24ca4fa3843159ab13.zip
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
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/nameserv.h5
1 files changed, 4 insertions, 1 deletions
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 {