#include "system/select.h"
#include "libsmb/clirap.h"
#include "trans2.h"
+#include "libsmb/nmblib.h"
#ifndef REGISTER
#define REGISTER 0
#include "locking.h"
#include "smb_perfcount.h"
#include "smb.h"
-#include "nameserv.h"
#include "../lib/util/byteorder.h"
#include "auth.h"
fstring srv_name,
struct sockaddr_storage *ss_out);
-/* The following definitions come from libsmb/nmblib.c */
-
-void debug_nmb_packet(struct packet_struct *p);
-void put_name(char *dest, const char *name, int pad, unsigned int name_type);
-char *nmb_namestr(const struct nmb_name *n);
-struct packet_struct *copy_packet(struct packet_struct *packet);
-void free_packet(struct packet_struct *packet);
-int packet_trn_id(struct packet_struct *p);
-struct packet_struct *parse_packet(char *buf,int length,
- enum packet_type packet_type,
- struct in_addr ip,
- int port);
-struct packet_struct *read_packet(int fd,enum packet_type packet_type);
-void make_nmb_name( struct nmb_name *n, const char *name, int type);
-bool nmb_name_equal(struct nmb_name *n1, struct nmb_name *n2);
-int build_packet(char *buf, size_t buflen, struct packet_struct *p);
-bool send_packet(struct packet_struct *p);
-bool match_mailslot_name(struct packet_struct *p, const char *mailslot_name);
-int matching_len_bits(unsigned char *p1, unsigned char *p2, size_t len);
-void sort_query_replies(char *data, int n, struct in_addr ip);
-char *name_mangle(TALLOC_CTX *mem_ctx, const char *In, char name_type);
-int name_extract(unsigned char *buf,size_t buf_len, unsigned int ofs, fstring name);
-int name_len(unsigned char *s1, size_t buf_len);
-
/* The following definitions come from libsmb/nterr.c */
const char *nt_errstr(NTSTATUS nt_code);
struct dom_sid **sids );
NTSTATUS change_trust_account_password( const char *domain, const char *remote_machine);
-/* The following definitions come from libsmb/unexpected.c */
-
-struct nb_packet_server;
-struct nb_packet_reader;
-
-NTSTATUS nb_packet_server_create(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- int max_clients,
- struct nb_packet_server **presult);
-void nb_packet_dispatch(struct nb_packet_server *server,
- struct packet_struct *p);
-struct tevent_req *nb_packet_reader_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- enum packet_type type,
- int trn_id,
- const char *mailslot_name);
-NTSTATUS nb_packet_reader_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
- struct nb_packet_reader **preader);
-struct tevent_req *nb_packet_read_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- struct nb_packet_reader *reader);
-NTSTATUS nb_packet_read_recv(struct tevent_req *req,
- struct packet_struct **ppacket);
-
/* The following definitions come from modules/vfs_default.c */
ssize_t vfswrap_llistxattr(struct vfs_handle_struct *handle, const char *path, char *list, size_t size);
#include "../lib/async_req/async_sock.h"
#include "async_smb.h"
#include "smb_crypt.h"
+#include "libsmb/nmblib.h"
/*
* Read an smb packet asynchronously, discard keepalives
#include "libads/kerberos_proto.h"
#include "krb5_env.h"
#include "async_smb.h"
+#include "libsmb/nmblib.h"
static const struct {
int prot;
#include "libsmb/clirap.h"
#include "msdfs.h"
#include "trans2.h"
+#include "libsmb/nmblib.h"
/********************************************************************
Important point.
#include "includes.h"
#include "librpc/gen_ndr/messaging.h"
#include "libsmb/clidgram.h"
+#include "libsmb/nmblib.h"
/*
* cli_send_mailslot, send a mailslot for client code ...
#include "smb_krb5.h"
#include "../librpc/gen_ndr/krb5pac.h"
#include "../lib/util/asn1.h"
+#include "libsmb/nmblib.h"
#ifndef KRB5_AUTHDATA_WIN2K_PAC
#define KRB5_AUTHDATA_WIN2K_PAC 128
#include "libsmb_internal.h"
#include "rpc_client/cli_pipe.h"
#include "../librpc/gen_ndr/ndr_srvsvc_c.h"
+#include "libsmb/nmblib.h"
/*
* Routine to open a directory
#include "rpc_client/cli_pipe.h"
#include "rpc_client/cli_lsarpc.h"
#include "libcli/security/security.h"
+#include "libsmb/nmblib.h"
/*
* Check a server for being alive and well.
#include "../libcli/netlogon/netlogon.h"
#include "librpc/gen_ndr/messaging.h"
#include "lib/async_req/async_sock.h"
+#include "libsmb/nmblib.h"
/* nmbd.c sets this to True. */
bool global_in_nmbd = False;
*/
#include "includes.h"
+#include "libsmb/nmblib.h"
static const struct opcode_names {
const char *nmb_opcode_name;
--- /dev/null
+/* The following definitions come from libsmb/unexpected.c */
+
+#include "nameserv.h"
+
+struct nb_packet_server;
+struct nb_packet_reader;
+
+NTSTATUS nb_packet_server_create(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ int max_clients,
+ struct nb_packet_server **presult);
+void nb_packet_dispatch(struct nb_packet_server *server,
+ struct packet_struct *p);
+struct tevent_req *nb_packet_reader_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ enum packet_type type,
+ int trn_id,
+ const char *mailslot_name);
+NTSTATUS nb_packet_reader_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
+ struct nb_packet_reader **preader);
+struct tevent_req *nb_packet_read_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ struct nb_packet_reader *reader);
+NTSTATUS nb_packet_read_recv(struct tevent_req *req,
+ struct packet_struct **ppacket);
+
+/* The following definitions come from libsmb/nmblib.c */
+
+void debug_nmb_packet(struct packet_struct *p);
+void put_name(char *dest, const char *name, int pad, unsigned int name_type);
+char *nmb_namestr(const struct nmb_name *n);
+struct packet_struct *copy_packet(struct packet_struct *packet);
+void free_packet(struct packet_struct *packet);
+int packet_trn_id(struct packet_struct *p);
+struct packet_struct *parse_packet(char *buf,int length,
+ enum packet_type packet_type,
+ struct in_addr ip,
+ int port);
+struct packet_struct *read_packet(int fd,enum packet_type packet_type);
+void make_nmb_name( struct nmb_name *n, const char *name, int type);
+bool nmb_name_equal(struct nmb_name *n1, struct nmb_name *n2);
+int build_packet(char *buf, size_t buflen, struct packet_struct *p);
+bool send_packet(struct packet_struct *p);
+bool match_mailslot_name(struct packet_struct *p, const char *mailslot_name);
+int matching_len_bits(unsigned char *p1, unsigned char *p2, size_t len);
+void sort_query_replies(char *data, int n, struct in_addr ip);
+char *name_mangle(TALLOC_CTX *mem_ctx, const char *In, char name_type);
+int name_extract(unsigned char *buf,size_t buf_len, unsigned int ofs, fstring name);
+int name_len(unsigned char *s1, size_t buf_len);
#include "rpc_client/cli_pipe.h"
#include "rpc_client/cli_samr.h"
#include "libsmb/clirap.h"
+#include "libsmb/nmblib.h"
/*************************************************************
Change a password on a remote machine using IPC calls.
#include "includes.h"
#include "../lib/async_req/async_sock.h"
#include "async_smb.h"
+#include "libsmb/nmblib.h"
struct nb_connect_state {
struct tevent_context *ev;
#include "includes.h"
#include "lib/async_req/async_sock.h"
+#include "libsmb/nmblib.h"
static const char *nmbd_socket_dir(void)
{
#define SYNC_DNS 1
#endif
+#include "libsmb/nmblib.h"
#include "nmbd/nmbd_proto.h"
#include "rpc_client/init_spoolss.h"
#include "rpc_server/rpc_ncacn_np.h"
#include "libcli/security/security.h"
+#include "libsmb/nmblib.h"
/****************************************************************************
Ensure we check the path in *exactly* the same way as W2K for a findfirst/findnext
#include "includes.h"
#include "system/filesys.h"
#include "locking/proto.h"
+#include "libsmb/nmblib.h"
static fstring password[2];
static fstring username[2];
#include "includes.h"
#include "system/filesys.h"
#include "trans2.h"
+#include "libsmb/nmblib.h"
static fstring password;
static fstring username;
#include "async_smb.h"
#include "libsmb/clirap.h"
#include "trans2.h"
+#include "libsmb/nmblib.h"
extern char *optarg;
extern int optind;
*/
#include "includes.h"
#include "utils/net.h"
+#include "libsmb/nmblib.h"
/*
return the time on a server. This does not require any authentication
#include "includes.h"
#include "popt_common.h"
+#include "libsmb/nmblib.h"
static bool give_flags = false;
static bool use_bcast = true;
#include "librpc/gen_ndr/spoolss.h"
#include "nt_printing.h"
#include "printing/notify.h"
+#include "libsmb/nmblib.h"
#if HAVE_LIBUNWIND_H
#include <libunwind.h>
#include "system/filesys.h"
#include "system/select.h"
#include "../lib/util/select.h"
+#include "libsmb/nmblib.h"
#define SECURITY_MASK 0
#define SECURITY_SET 0
#include "includes.h"
#include "winbindd.h"
+#include "libsmb/nmblib.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_WINBIND