summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorRishi Srivatsavai <rishisv@gmail.com>2007-12-13 20:56:29 -0800
committerJames Peach <jpeach@samba.org>2007-12-13 20:56:29 -0800
commit12ac4c3119b3b7712e670d95d61413d97ecafaef (patch)
tree67a8dad20a20d9bbbfb54b325b46f671fd61f824 /source3/include
parent819a74ed8f1d2b312a22cc803235aaece0e24697 (diff)
downloadsamba-12ac4c3119b3b7712e670d95d61413d97ecafaef.tar.gz
samba-12ac4c3119b3b7712e670d95d61413d97ecafaef.tar.bz2
samba-12ac4c3119b3b7712e670d95d61413d97ecafaef.zip
Register the smb service with mDNS if mSDN is supported.
If mDNS is supported, attempt to register the first port we are listening on for the _smb._tcp service. This provides more reliable service discovery than NetBIOS browsing. (This used to be commit 1e7241517d1f55d60af22570e0c9feb280e3fdb5)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 4e420881ae..22451741a1 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -752,6 +752,20 @@ struct printjob;
#include "smb_ldap.h"
+struct dns_reg_state;
+
+void dns_register_smbd(struct dns_reg_state ** dns_state_ptr,
+ unsigned port,
+ int *maxfd,
+ fd_set *listen_set,
+ struct timeval *timeout);
+
+void dns_register_close(struct dns_reg_state ** dns_state_ptr);
+
+
+bool dns_register_smbd_reply(struct dns_reg_state *dns_state,
+ fd_set *lfds, struct timeval *timeout);
+
/*
* Reasons for cache flush.
*/