if (!smbd_server_conn) {
exit_server("failed to create smbd_server_connection");
}
+
+ smbd_server_conn->smb1.echo_handler.trusted_fd = -1;
+ smbd_server_conn->smb1.echo_handler.socket_lock_fd = -1;
}
bool allow_smb2;
struct {
struct fd_event *fde;
+
+ struct {
+ /*
+ * fd for the fcntl lock mutexing access to smbd_server_fd
+ */
+ int socket_lock_fd;
+
+ /*
+ * fd for the trusted pipe from
+ * echo handler child
+ */
+ int trusted_fd;
+
+ /*
+ * fde for the trusted_fd
+ */
+ struct fd_event *trusted_fde;
+ } echo_handler;
+
uint64_t num_requests;
struct {
bool encrypted_passwords;