[SCM] Samba Shared Repository - branch v3-6-test updated
Günther Deschner
gd at samba.org
Mon Sep 6 01:55:01 MDT 2010
The branch, v3-6-test has been updated
via 7f2b1cd s3-proto: remove obsolete prototypes.
via 0a5cb45 s3-selftest: add samba3.posix_s3.rpc.spoolss.notify to knownfail list.
via 03e6b42 s3-selftest: do not remove nsswrapper environment when running smbtorture4.
via 707efe3 s3-libads: avoid crashing in ads_keytab_list().
via 2f23c04 s3-printing: add debug to get_correct_cversion().
via 0919b4a winreg: add winreg_RestoreKeyFlags to IDL.
via 04fe16d s3-spoolss: fix some debug statements.
via 7d85636 s3-build: remove unrequired ntlmssp forward declaration.
via 563e5f9 s3-idmap: only include idmap headers where needed.
via d2d922d s3-build: no point in including doserr.h, noone uses them.
via 23dd629 s3-nmbd: move nmbd proto out of main proto.h
via 048e6cf s3-build: only include nsswitch header where needed.
via c62e2e7 s3-build: remove unrequired forward declaration for struct printjob.
via 6d90ea7 s3-build: only include memcache.h where needed.
via 8fd84de s3-lsa: separate out init_lsa headers.
via 22efd46 s3-build: only include smb_signing.h where needed.
from 84baef5 s3: On Solaris, iov_len is an int
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test
- Log -----------------------------------------------------------------
commit 7f2b1cdb7445de6008cc8c2b77091c5f5c9f9429
Author: Günther Deschner <gd at samba.org>
Date: Thu Aug 26 23:25:00 2010 +0200
s3-proto: remove obsolete prototypes.
Guenther
(cherry picked from commit 338184fb3a3869f81ead82dcc477c87d858334d3)
commit 0a5cb45294bde212c32712f115cd7e2a568a9046
Author: Günther Deschner <gd at samba.org>
Date: Mon Aug 16 12:22:27 2010 +0200
s3-selftest: add samba3.posix_s3.rpc.spoolss.notify to knownfail list.
Guenther
(cherry picked from commit f03ac22770ef96d4b0fec81d94efefcddd8b310b)
commit 03e6b426bf2caf1b8c2cb4f3247618ecbe5929f4
Author: Günther Deschner <gd at samba.org>
Date: Thu Aug 26 15:49:17 2010 +0200
s3-selftest: do not remove nsswrapper environment when running smbtorture4.
Guenther
(cherry picked from commit 433c08045ee96ca2e507cdec47bf9ef1dd95540e)
commit 707efe3176b397cc039cdf162d74d1f681e164ec
Author: Günther Deschner <gd at samba.org>
Date: Tue Aug 31 14:27:56 2010 +0200
s3-libads: avoid crashing in ads_keytab_list().
Heimdal's krb5_kt_start_seq_get() will leave a non 0 fd in the krb5_kt_cursor
struct when it cannot find a given keytab.
Guenther
(cherry picked from commit bf3912be46b2cac71a1ff89f548b9e3528872c6c)
commit 2f23c04e3c712b0ab37dc868b07b6214255daa31
Author: Günther Deschner <gd at samba.org>
Date: Tue Aug 31 16:58:54 2010 +0200
s3-printing: add debug to get_correct_cversion().
Guenther
(cherry picked from commit 16c2d9182d0c0ff55eba4d8bce2931b579b00339)
commit 0919b4a37c5b8fb593c892604821f1865662d524
Author: Günther Deschner <gd at samba.org>
Date: Tue Aug 31 16:58:23 2010 +0200
winreg: add winreg_RestoreKeyFlags to IDL.
Guenther
(cherry picked from commit e5c7ec66982e6d2705c7a103aff5502f441404bb)
commit 04fe16d68fc24e5e4d87585ee2daee883ef43390
Author: Günther Deschner <gd at samba.org>
Date: Thu Sep 2 13:41:08 2010 +0200
s3-spoolss: fix some debug statements.
Guenther
(cherry picked from commit cf728f890f6d2cd8cc831ba95a5d2d0dac6e8e35)
commit 7d8563609ab4bc72f102d49b34527342684fc1de
Author: Günther Deschner <gd at samba.org>
Date: Wed Aug 18 18:25:54 2010 +0200
s3-build: remove unrequired ntlmssp forward declaration.
Guenther
(cherry picked from commit d9a76054318eb2fbe2bb539d6091379814f16b0e)
commit 563e5f9b4ae4f2d300f3b0faff93c1bd1e297a91
Author: Günther Deschner <gd at samba.org>
Date: Wed Aug 18 18:13:42 2010 +0200
s3-idmap: only include idmap headers where needed.
Guenther
(cherry picked from commit 2b41f421fd14cb2190b43dbf079c734e7024335c)
commit d2d922d90d3b38fbc17805bf8ae46c0dd992ea8b
Author: Günther Deschner <gd at samba.org>
Date: Wed Aug 18 16:51:06 2010 +0200
s3-build: no point in including doserr.h, noone uses them.
Guenther
(cherry picked from commit 3ef531ec34dc709479005b00f50d1daf8e65269a)
commit 23dd6294f1881d738c3726d5572b278c3d441310
Author: Günther Deschner <gd at samba.org>
Date: Wed Aug 18 15:22:09 2010 +0200
s3-nmbd: move nmbd proto out of main proto.h
Guenther
(cherry picked from commit c2177909187ad104d5d2e13bad0f45fb97d121e2)
commit 048e6cfab3222074d6d1984b78ec151668c31f51
Author: Günther Deschner <gd at samba.org>
Date: Wed Aug 18 12:42:49 2010 +0200
s3-build: only include nsswitch header where needed.
Guenther
(cherry picked from commit 7ff7eb0b5299f90a313986bfc547f48ef9f8dc9c)
commit c62e2e70fde577c2c9f2b62eeb732bade5a6661c
Author: Günther Deschner <gd at samba.org>
Date: Wed Aug 18 12:26:53 2010 +0200
s3-build: remove unrequired forward declaration for struct printjob.
Guenther
(cherry picked from commit 08eff4d311ef3dd4973645e28a7669db4c383cad)
commit 6d90ea7257b81fca3b14bc62d36693673f8ce615
Author: Günther Deschner <gd at samba.org>
Date: Wed Aug 18 12:24:35 2010 +0200
s3-build: only include memcache.h where needed.
Guenther
(cherry picked from commit aba1bf4b5e1bf82f769c3c545578414202c74106)
commit 8fd84de02e9d60a3842891947ebf6a2eefdfa46d
Author: Günther Deschner <gd at samba.org>
Date: Thu Aug 19 23:15:22 2010 +0200
s3-lsa: separate out init_lsa headers.
Guenther
(cherry picked from commit e978a3d3f4974753f09fbafdd0cf3ad15209911f)
commit 22efd46c1e1293bde8b73e5c1ca5f1a4b3d0d870
Author: Günther Deschner <gd at samba.org>
Date: Tue Aug 17 15:03:58 2010 +0200
s3-build: only include smb_signing.h where needed.
Guenther
(cherry picked from commit 59289d4fa9e5f6f2ff6abd13e8f07ca6ee3e2a3c)
-----------------------------------------------------------------------
Summary of changes:
librpc/idl/winreg.idl | 10 +-
nsswitch/wins.c | 2 +
selftest/target/Samba3.pm | 3 -
source3/auth/server_info_sam.c | 1 +
source3/auth/token_util.c | 1 +
source3/include/idmap.h | 4 +
source3/include/includes.h | 13 -
source3/include/proto.h | 427 ------------------------
source3/include/smb.h | 3 -
source3/lib/access.c | 1 +
source3/lib/idmap_cache.c | 1 +
source3/lib/idmap_cache.h | 10 +
source3/lib/netapi/group.c | 1 +
source3/lib/netapi/localgroup.c | 1 +
source3/lib/netapi/samr.c | 1 +
source3/lib/netapi/shutdown.c | 1 +
source3/lib/netapi/user.c | 1 +
source3/lib/system_smbd.c | 1 +
source3/lib/util_pw.c | 1 +
source3/lib/util_sock.c | 1 +
source3/libads/kerberos_keytab.c | 1 +
source3/libnet/libnet_join.c | 1 +
source3/libsmb/clientgen.c | 1 +
source3/libsmb/clisigning.c | 1 +
source3/libsmb/smb_signing.c | 1 +
source3/nmbd/asyncdns.c | 1 +
source3/nmbd/nmbd.c | 1 +
source3/nmbd/nmbd.h | 2 +
source3/nmbd/nmbd_become_dmb.c | 1 +
source3/nmbd/nmbd_become_lmb.c | 1 +
source3/nmbd/nmbd_browserdb.c | 1 +
source3/nmbd/nmbd_browsesync.c | 1 +
source3/nmbd/nmbd_elections.c | 1 +
source3/nmbd/nmbd_incomingdgrams.c | 1 +
source3/nmbd/nmbd_incomingrequests.c | 1 +
source3/nmbd/nmbd_lmhosts.c | 1 +
source3/nmbd/nmbd_logonnames.c | 1 +
source3/nmbd/nmbd_mynames.c | 1 +
source3/nmbd/nmbd_namelistdb.c | 1 +
source3/nmbd/nmbd_namequery.c | 1 +
source3/nmbd/nmbd_nameregister.c | 1 +
source3/nmbd/nmbd_namerelease.c | 1 +
source3/nmbd/nmbd_nodestatus.c | 1 +
source3/nmbd/nmbd_packets.c | 1 +
source3/nmbd/nmbd_processlogon.c | 1 +
source3/nmbd/nmbd_proto.h | 357 ++++++++++++++++++++
source3/nmbd/nmbd_responserecordsdb.c | 1 +
source3/nmbd/nmbd_sendannounce.c | 1 +
source3/nmbd/nmbd_serverlistdb.c | 1 +
source3/nmbd/nmbd_subnetdb.c | 1 +
source3/nmbd/nmbd_synclists.c | 1 +
source3/nmbd/nmbd_winsproxy.c | 1 +
source3/nmbd/nmbd_winsserver.c | 1 +
source3/nmbd/nmbd_workgroupdb.c | 1 +
source3/param/loadparm.c | 2 +
source3/passdb/lookup_sid.c | 2 +
source3/passdb/pdb_interface.c | 2 +
source3/passdb/pdb_ldap.c | 1 +
source3/printing/nt_printing.c | 1 +
source3/printing/nt_printing_migrate.c | 2 +-
source3/rpc_client/cli_lsarpc.c | 1 +
source3/rpc_client/cli_samr.c | 1 +
source3/rpc_client/init_lsa.c | 1 +
source3/rpc_client/init_lsa.h | 6 +
source3/rpc_server/srv_lsa_nt.c | 1 +
source3/rpc_server/srv_netlog_nt.c | 1 +
source3/rpc_server/srv_samr_nt.c | 1 +
source3/rpc_server/srv_spoolss_nt.c | 2 +-
source3/rpcclient/cmd_eventlog.c | 1 +
source3/rpcclient/cmd_lsarpc.c | 1 +
source3/rpcclient/cmd_samr.c | 1 +
source3/selftest/knownfail | 1 +
source3/smbd/globals.c | 1 +
source3/smbd/lanman.c | 1 +
source3/smbd/mangle_hash2.c | 1 +
source3/smbd/server.c | 1 +
source3/smbd/signing.c | 2 +-
source3/smbd/statcache.c | 1 +
source3/smbd/vfs.c | 1 +
source3/torture/nsstest.c | 1 +
source3/torture/torture.c | 2 +
source3/utils/net_idmap.c | 1 +
source3/utils/net_rpc.c | 1 +
source3/utils/net_rpc_join.c | 1 +
source3/utils/net_rpc_rights.c | 1 +
source3/utils/ntlm_auth.c | 1 +
source3/utils/ntlm_auth_diagnostics.c | 1 +
source3/winbindd/idmap.c | 1 +
source3/winbindd/idmap_ad.c | 1 +
source3/winbindd/idmap_adex/cell_util.c | 1 +
source3/winbindd/idmap_adex/domain_util.c | 1 +
source3/winbindd/idmap_adex/gc_util.c | 1 +
source3/winbindd/idmap_adex/idmap_adex.c | 1 +
source3/winbindd/idmap_adex/likewise_cell.c | 1 +
source3/winbindd/idmap_adex/provider_unified.c | 1 +
source3/winbindd/idmap_hash/idmap_hash.c | 1 +
source3/winbindd/idmap_hash/mapfile.c | 1 +
source3/winbindd/idmap_ldap.c | 1 +
source3/winbindd/idmap_nss.c | 2 +
source3/winbindd/idmap_passdb.c | 1 +
source3/winbindd/idmap_proto.h | 36 ++
source3/winbindd/idmap_rid.c | 1 +
source3/winbindd/idmap_tdb.c | 1 +
source3/winbindd/idmap_tdb2.c | 1 +
source3/winbindd/idmap_util.c | 2 +
source3/winbindd/wb_gid2sid.c | 2 +
source3/winbindd/wb_sid2gid.c | 1 +
source3/winbindd/wb_sid2uid.c | 1 +
source3/winbindd/wb_uid2sid.c | 2 +
source3/winbindd/winbindd.c | 2 +
source3/winbindd/winbindd_dual_srv.c | 1 +
111 files changed, 534 insertions(+), 450 deletions(-)
create mode 100644 source3/lib/idmap_cache.h
create mode 100644 source3/nmbd/nmbd.h
create mode 100644 source3/nmbd/nmbd_proto.h
create mode 100644 source3/rpc_client/init_lsa.h
create mode 100644 source3/winbindd/idmap_proto.h
Changeset truncated at 500 lines:
diff --git a/librpc/idl/winreg.idl b/librpc/idl/winreg.idl
index 48fddb7..c5da328 100644
--- a/librpc/idl/winreg.idl
+++ b/librpc/idl/winreg.idl
@@ -281,10 +281,18 @@ import "lsa.idl", "security.idl", "misc.idl";
/******************/
/* Function: 0x13 */
+
+ typedef [public,bitmap32bit] bitmap {
+ REG_WHOLE_HIVE_VOLATILE = 0x00000001,
+ REG_REFRESH_HIVE = 0x00000002,
+ REG_NO_LAZY_FLUSH = 0x00000004,
+ REG_FORCE_RESTORE = 0x00000008
+ } winreg_RestoreKeyFlags;
+
WERROR winreg_RestoreKey(
[in,ref] policy_handle *handle,
[in,ref] winreg_String *filename,
- [in] uint32 flags
+ [in] winreg_RestoreKeyFlags flags
);
/******************/
diff --git a/nsswitch/wins.c b/nsswitch/wins.c
index aa95ec7..b4bc788 100644
--- a/nsswitch/wins.c
+++ b/nsswitch/wins.c
@@ -19,6 +19,8 @@
*/
#include "includes.h"
+#include "nsswitch/winbind_nss.h"
+
#ifdef HAVE_NS_API_H
#include <ns_daemon.h>
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index 6eeae21..3c64e8d 100644
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -628,9 +628,6 @@ $unix_name-group:x:$unix_gids[0]:
print PWD "$password\n$password\n";
close(PWD) or die("Unable to set password for test account");
- delete $ENV{NSS_WRAPPER_PASSWD};
- delete $ENV{NSS_WRAPPER_GROUP};
-
print "DONE\n";
$ret{SERVER_IP} = $server_ip;
diff --git a/source3/auth/server_info_sam.c b/source3/auth/server_info_sam.c
index 7a33aab..4731ad4 100644
--- a/source3/auth/server_info_sam.c
+++ b/source3/auth/server_info_sam.c
@@ -24,6 +24,7 @@
#include "includes.h"
#include "smbd/globals.h"
#include "../libcli/auth/libcli_auth.h"
+#include "nsswitch/winbind_client.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index 21d9af1..8f66171 100644
--- a/source3/auth/token_util.c
+++ b/source3/auth/token_util.c
@@ -26,6 +26,7 @@
#include "includes.h"
#include "secrets.h"
+#include "memcache.h"
#include "../librpc/gen_ndr/netlogon.h"
diff --git a/source3/include/idmap.h b/source3/include/idmap.h
index aab41cd..8a1da81 100644
--- a/source3/include/idmap.h
+++ b/source3/include/idmap.h
@@ -30,6 +30,8 @@
#define SMB_IDMAP_INTERFACE_VERSION 5
+#include "librpc/gen_ndr/idmap.h"
+
struct idmap_domain {
const char *name;
struct idmap_methods *methods;
@@ -60,4 +62,6 @@ struct idmap_methods {
NTSTATUS (*close_fn)(struct idmap_domain *dom);
};
+#include "winbindd/idmap_proto.h"
+
#endif /* _IDMAP_H_ */
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 23ea30a..6554113 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -639,7 +639,6 @@ extern void *cmdline_lp_ctx;
#include "messages.h"
#include "locking.h"
#include "smb_perfcount.h"
-#include "smb_signing.h"
#include "smb.h"
#include "nameserv.h"
#include "../lib/util/byteorder.h"
@@ -649,23 +648,18 @@ extern void *cmdline_lp_ctx;
#include "passdb.h"
#include "msdfs.h"
-struct ntlmssp_state;
-
#include "auth.h"
#include "ntdomain.h"
#include "librpc/rpc/dcerpc.h"
-#include "idmap.h"
#include "client.h"
#include "session.h"
#include "mangle.h"
#include "module.h"
-#include "nsswitch/winbind_client.h"
#include "dbwrap.h"
#include "packet.h"
#include "ctdbd_conn.h"
#include "../lib/util/talloc_stack.h"
-#include "memcache.h"
#include "serverid.h"
#include "async_smb.h"
#include "../lib/async_req/async_sock.h"
@@ -673,13 +667,6 @@ struct ntlmssp_state;
#include "../lib/util/smb_threads.h"
#include "../lib/util/smb_threads_internal.h"
-#include "nsswitch/winbind_nss.h"
-
-/* forward declaration from printing.h to get around
- header file dependencies */
-
-struct printjob;
-
/* forward declarations from smbldap.c */
#include "smbldap.h"
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 2051670..b6d15fb 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -3218,363 +3218,6 @@ ssize_t vfswrap_llistxattr(struct vfs_handle_struct *handle, const char *path, c
ssize_t vfswrap_flistxattr(struct vfs_handle_struct *handle, struct files_struct *fsp, char *list, size_t size);
NTSTATUS vfs_default_init(void);
-/* The following definitions come from nmbd/asyncdns.c */
-
-int asyncdns_fd(void);
-void kill_async_dns_child(void);
-void start_async_dns(void);
-void run_dns_queue(void);
-bool queue_dns_query(struct packet_struct *p,struct nmb_name *question);
-bool queue_dns_query(struct packet_struct *p,struct nmb_name *question);
-void kill_async_dns_child(void);
-
-/* The following definitions come from nmbd/nmbd.c */
-
-struct event_context *nmbd_event_context(void);
-struct messaging_context *nmbd_messaging_context(void);
-
-/* The following definitions come from nmbd/nmbd_become_dmb.c */
-
-void add_domain_names(time_t t);
-
-/* The following definitions come from nmbd/nmbd_become_lmb.c */
-
-void insert_permanent_name_into_unicast( struct subnet_record *subrec,
- struct nmb_name *nmbname, uint16 nb_type );
-void unbecome_local_master_browser(struct subnet_record *subrec, struct work_record *work,
- bool force_new_election);
-void become_local_master_browser(struct subnet_record *subrec, struct work_record *work);
-void set_workgroup_local_master_browser_name( struct work_record *work, const char *newname);
-
-/* The following definitions come from nmbd/nmbd_browserdb.c */
-
-void update_browser_death_time( struct browse_cache_record *browc );
-struct browse_cache_record *create_browser_in_lmb_cache( const char *work_name,
- const char *browser_name,
- struct in_addr ip );
-struct browse_cache_record *find_browser_in_lmb_cache( const char *browser_name );
-void expire_lmb_browsers( time_t t );
-
-/* The following definitions come from nmbd/nmbd_browsesync.c */
-
-void dmb_expire_and_sync_browser_lists(time_t t);
-void announce_and_sync_with_domain_master_browser( struct subnet_record *subrec,
- struct work_record *work);
-void collect_all_workgroup_names_from_wins_server(time_t t);
-void sync_all_dmbs(time_t t);
-
-/* The following definitions come from nmbd/nmbd_elections.c */
-
-void check_master_browser_exists(time_t t);
-void run_elections(time_t t);
-void process_election(struct subnet_record *subrec, struct packet_struct *p, char *buf);
-bool check_elections(void);
-void nmbd_message_election(struct messaging_context *msg,
- void *private_data,
- uint32_t msg_type,
- struct server_id server_id,
- DATA_BLOB *data);
-
-/* The following definitions come from nmbd/nmbd_incomingdgrams.c */
-
-void tell_become_backup(void);
-void process_host_announce(struct subnet_record *subrec, struct packet_struct *p, char *buf);
-void process_workgroup_announce(struct subnet_record *subrec, struct packet_struct *p, char *buf);
-void process_local_master_announce(struct subnet_record *subrec, struct packet_struct *p, char *buf);
-void process_master_browser_announce(struct subnet_record *subrec,
- struct packet_struct *p,char *buf);
-void process_lm_host_announce(struct subnet_record *subrec, struct packet_struct *p, char *buf, int len);
-void process_get_backup_list_request(struct subnet_record *subrec,
- struct packet_struct *p,char *buf);
-void process_reset_browser(struct subnet_record *subrec,
- struct packet_struct *p,char *buf);
-void process_announce_request(struct subnet_record *subrec, struct packet_struct *p, char *buf);
-void process_lm_announce_request(struct subnet_record *subrec, struct packet_struct *p, char *buf, int len);
-
-/* The following definitions come from nmbd/nmbd_incomingrequests.c */
-
-void process_name_release_request(struct subnet_record *subrec,
- struct packet_struct *p);
-void process_name_refresh_request(struct subnet_record *subrec,
- struct packet_struct *p);
-void process_name_registration_request(struct subnet_record *subrec,
- struct packet_struct *p);
-void process_node_status_request(struct subnet_record *subrec, struct packet_struct *p);
-void process_name_query_request(struct subnet_record *subrec, struct packet_struct *p);
-
-/* The following definitions come from nmbd/nmbd_lmhosts.c */
-
-void load_lmhosts_file(const char *fname);
-bool find_name_in_lmhosts(struct nmb_name *nmbname, struct name_record **namerecp);
-
-/* The following definitions come from nmbd/nmbd_logonnames.c */
-
-void add_logon_names(void);
-
-/* The following definitions come from nmbd/nmbd_mynames.c */
-
-void register_my_workgroup_one_subnet(struct subnet_record *subrec);
-bool register_my_workgroup_and_names(void);
-void release_wins_names(void);
-void refresh_my_names(time_t t);
-
-/* The following definitions come from nmbd/nmbd_namelistdb.c */
-
-void set_samba_nb_type(void);
-void remove_name_from_namelist(struct subnet_record *subrec,
- struct name_record *namerec );
-struct name_record *find_name_on_subnet(struct subnet_record *subrec,
- const struct nmb_name *nmbname,
- bool self_only);
-struct name_record *find_name_for_remote_broadcast_subnet(struct nmb_name *nmbname,
- bool self_only);
-void update_name_ttl( struct name_record *namerec, int ttl );
-bool add_name_to_subnet( struct subnet_record *subrec,
- const char *name,
- int type,
- uint16 nb_flags,
- int ttl,
- enum name_source source,
- int num_ips,
- struct in_addr *iplist);
-void standard_success_register(struct subnet_record *subrec,
- struct userdata_struct *userdata,
- struct nmb_name *nmbname, uint16 nb_flags, int ttl,
- struct in_addr registered_ip);
-void standard_fail_register( struct subnet_record *subrec,
- struct nmb_name *nmbname );
-bool find_ip_in_name_record( struct name_record *namerec, struct in_addr ip );
-void add_ip_to_name_record( struct name_record *namerec, struct in_addr new_ip );
-void remove_ip_from_name_record( struct name_record *namerec,
- struct in_addr remove_ip );
-void standard_success_release( struct subnet_record *subrec,
- struct userdata_struct *userdata,
- struct nmb_name *nmbname,
- struct in_addr released_ip );
-void expire_names(time_t t);
-void add_samba_names_to_subnet( struct subnet_record *subrec );
-void dump_name_record( struct name_record *namerec, XFILE *fp);
-void dump_all_namelists(void);
-
-/* The following definitions come from nmbd/nmbd_namequery.c */
-
-bool query_name(struct subnet_record *subrec, const char *name, int type,
- query_name_success_function success_fn,
- query_name_fail_function fail_fn,
- struct userdata_struct *userdata);
-bool query_name_from_wins_server(struct in_addr ip_to,
- const char *name, int type,
- query_name_success_function success_fn,
- query_name_fail_function fail_fn,
- struct userdata_struct *userdata);
-
-/* The following definitions come from nmbd/nmbd_nameregister.c */
-
-void register_name(struct subnet_record *subrec,
- const char *name, int type, uint16 nb_flags,
- register_name_success_function success_fn,
- register_name_fail_function fail_fn,
- struct userdata_struct *userdata);
-void wins_refresh_name(struct name_record *namerec);
-
-/* The following definitions come from nmbd/nmbd_namerelease.c */
-
-void release_name(struct subnet_record *subrec, struct name_record *namerec,
- release_name_success_function success_fn,
- release_name_fail_function fail_fn,
- struct userdata_struct *userdata);
-
-/* The following definitions come from nmbd/nmbd_nodestatus.c */
-
-bool node_status(struct subnet_record *subrec, struct nmb_name *nmbname,
- struct in_addr send_ip, node_status_success_function success_fn,
- node_status_fail_function fail_fn, struct userdata_struct *userdata);
-
-/* The following definitions come from nmbd/nmbd_packets.c */
-
-uint16 get_nb_flags(char *buf);
-void set_nb_flags(char *buf, uint16 nb_flags);
-struct response_record *queue_register_name( struct subnet_record *subrec,
- response_function resp_fn,
- timeout_response_function timeout_fn,
- register_name_success_function success_fn,
- register_name_fail_function fail_fn,
- struct userdata_struct *userdata,
- struct nmb_name *nmbname,
- uint16 nb_flags);
-void queue_wins_refresh(struct nmb_name *nmbname,
- response_function resp_fn,
- timeout_response_function timeout_fn,
- uint16 nb_flags,
- struct in_addr refresh_ip,
- const char *tag);
-struct response_record *queue_register_multihomed_name( struct subnet_record *subrec,
- response_function resp_fn,
- timeout_response_function timeout_fn,
- register_name_success_function success_fn,
- register_name_fail_function fail_fn,
- struct userdata_struct *userdata,
- struct nmb_name *nmbname,
- uint16 nb_flags,
- struct in_addr register_ip,
- struct in_addr wins_ip);
-struct response_record *queue_release_name( struct subnet_record *subrec,
- response_function resp_fn,
- timeout_response_function timeout_fn,
- release_name_success_function success_fn,
- release_name_fail_function fail_fn,
- struct userdata_struct *userdata,
- struct nmb_name *nmbname,
- uint16 nb_flags,
- struct in_addr release_ip,
- struct in_addr dest_ip);
-struct response_record *queue_query_name( struct subnet_record *subrec,
- response_function resp_fn,
- timeout_response_function timeout_fn,
- query_name_success_function success_fn,
- query_name_fail_function fail_fn,
- struct userdata_struct *userdata,
- struct nmb_name *nmbname);
-struct response_record *queue_query_name_from_wins_server( struct in_addr to_ip,
- response_function resp_fn,
- timeout_response_function timeout_fn,
- query_name_success_function success_fn,
- query_name_fail_function fail_fn,
- struct userdata_struct *userdata,
- struct nmb_name *nmbname);
-struct response_record *queue_node_status( struct subnet_record *subrec,
- response_function resp_fn,
- timeout_response_function timeout_fn,
- node_status_success_function success_fn,
- node_status_fail_function fail_fn,
- struct userdata_struct *userdata,
- struct nmb_name *nmbname,
- struct in_addr send_ip);
-void reply_netbios_packet(struct packet_struct *orig_packet,
- int rcode, enum netbios_reply_type_code rcv_code, int opcode,
- int ttl, char *data,int len);
-void queue_packet(struct packet_struct *packet);
-void run_packet_queue(void);
-void retransmit_or_expire_response_records(time_t t);
-bool listen_for_packets(bool run_election);
-bool send_mailslot(bool unique, const char *mailslot,char *buf, size_t len,
- const char *srcname, int src_type,
- const char *dstname, int dest_type,
- struct in_addr dest_ip,struct in_addr src_ip,
- int dest_port);
-
-/* The following definitions come from nmbd/nmbd_processlogon.c */
-
-bool initialize_nmbd_proxy_logon(void);
-
-void process_logon_packet(struct packet_struct *p, char *buf,int len,
- const char *mailslot);
-
-/* The following definitions come from nmbd/nmbd_responserecordsdb.c */
-
-void remove_response_record(struct subnet_record *subrec,
- struct response_record *rrec);
-struct response_record *make_response_record( struct subnet_record *subrec,
- struct packet_struct *p,
- response_function resp_fn,
- timeout_response_function timeout_fn,
- success_function success_fn,
- fail_function fail_fn,
- struct userdata_struct *userdata);
-struct response_record *find_response_record(struct subnet_record **ppsubrec,
- uint16 id);
-bool is_refresh_already_queued(struct subnet_record *subrec, struct name_record *namerec);
-
-/* The following definitions come from nmbd/nmbd_sendannounce.c */
-
-void send_browser_reset(int reset_type, const char *to_name, int to_type, struct in_addr to_ip);
-void broadcast_announce_request(struct subnet_record *subrec, struct work_record *work);
-void announce_my_server_names(time_t t);
-void announce_my_lm_server_names(time_t t);
-void reset_announce_timer(void);
-void announce_myself_to_domain_master_browser(time_t t);
-void announce_my_servers_removed(void);
-void announce_remote(time_t t);
-void browse_sync_remote(time_t t);
-
-/* The following definitions come from nmbd/nmbd_serverlistdb.c */
-
-void remove_all_servers(struct work_record *work);
-struct server_record *find_server_in_workgroup(struct work_record *work, const char *name);
-void remove_server_from_workgroup(struct work_record *work, struct server_record *servrec);
-struct server_record *create_server_on_workgroup(struct work_record *work,
- const char *name,int servertype,
- int ttl, const char *comment);
-void update_server_ttl(struct server_record *servrec, int ttl);
-void expire_servers(struct work_record *work, time_t t);
-void write_browse_list_entry(XFILE *fp, const char *name, uint32 rec_type,
- const char *local_master_browser_name, const char *description);
-void write_browse_list(time_t t, bool force_write);
-
-/* The following definitions come from nmbd/nmbd_subnetdb.c */
-
-void close_subnet(struct subnet_record *subrec);
-struct subnet_record *make_normal_subnet(const struct interface *iface);
-bool create_subnets(void);
-bool we_are_a_wins_client(void);
-struct subnet_record *get_next_subnet_maybe_unicast(struct subnet_record *subrec);
-struct subnet_record *get_next_subnet_maybe_unicast_or_wins_server(struct subnet_record *subrec);
-
-/* The following definitions come from nmbd/nmbd_synclists.c */
-
-void sync_browse_lists(struct work_record *work,
- char *name, int nm_type,
- struct in_addr ip, bool local, bool servers);
-void sync_check_completion(void);
-
-/* The following definitions come from nmbd/nmbd_winsproxy.c */
-
-void make_wins_proxy_name_query_request( struct subnet_record *subrec,
- struct packet_struct *incoming_packet,
- struct nmb_name *question_name);
-
-/* The following definitions come from nmbd/nmbd_winsserver.c */
-
-struct name_record *find_name_on_wins_subnet(const struct nmb_name *nmbname, bool self_only);
-bool wins_store_changed_namerec(const struct name_record *namerec);
-bool add_name_to_wins_subnet(const struct name_record *namerec);
-bool remove_name_from_wins_namelist(struct name_record *namerec);
-void dump_wins_subnet_namelist(XFILE *fp);
-bool packet_is_for_wins_server(struct packet_struct *packet);
-bool initialise_wins(void);
-void wins_process_name_refresh_request( struct subnet_record *subrec,
- struct packet_struct *p );
-void wins_process_name_registration_request(struct subnet_record *subrec,
- struct packet_struct *p);
-void wins_process_multihomed_name_registration_request( struct subnet_record *subrec,
- struct packet_struct *p);
-void fetch_all_active_wins_1b_names(void);
-void send_wins_name_query_response(int rcode, struct packet_struct *p,
- struct name_record *namerec);
-void wins_process_name_query_request(struct subnet_record *subrec,
- struct packet_struct *p);
-void wins_process_name_release_request(struct subnet_record *subrec,
- struct packet_struct *p);
-void initiate_wins_processing(time_t t);
-void wins_write_name_record(struct name_record *namerec, XFILE *fp);
-void wins_write_database(time_t t, bool background);
-void nmbd_wins_new_entry(struct messaging_context *msg,
- void *private_data,
- uint32_t msg_type,
- struct server_id server_id,
- DATA_BLOB *data);
-
-/* The following definitions come from nmbd/nmbd_workgroupdb.c */
--
Samba Shared Repository
More information about the samba-cvs
mailing list