size_t *size_ret);
NTSTATUS read_data_ntstatus(int fd, char *buffer, size_t N);
-bool send_keepalive(int client);
NTSTATUS read_smb_length_return_keepalive(int fd, char *inbuf,
unsigned int timeout,
size_t *len);
return read_fd_with_timeout(fd, buffer, N, N, 0, NULL);
}
-/****************************************************************************
- Send a keepalive packet (rfc1002).
-****************************************************************************/
-
-bool send_keepalive(int client)
-{
- unsigned char buf[4];
-
- buf[0] = NBSSkeepalive;
- buf[1] = buf[2] = buf[3] = 0;
-
- return(write_data(client,(char *)buf,4) == 4);
-}
-
/****************************************************************************
Read 4 bytes of a smb packet and return the smb length of the packet.
Store the result in the buffer.
#include "util_event.h"
#include "libcli/smb/smbXcli_base.h"
#include "lib/util/time_basic.h"
+#include "smb1_utils.h"
/* Internal message queue for deferred opens. */
struct pending_message_list {
#include "includes.h"
#include "smb1_utils.h"
#include "libcli/security/security.h"
+#include "lib/util/sys_rw_data.h"
/****************************************************************************
Special FCB or DOS processing in the case of a sharing violation.
return new_fsp;
}
+
+/****************************************************************************
+ Send a keepalive packet (rfc1002).
+****************************************************************************/
+
+bool send_keepalive(int client)
+{
+ unsigned char buf[4];
+
+ buf[0] = NBSSkeepalive;
+ buf[1] = buf[2] = buf[3] = 0;
+
+ return(write_data(client,(char *)buf,4) == 4);
+}
uint32_t access_mask,
uint32_t create_options,
uint32_t private_flags);
+bool send_keepalive(int client);
#endif