struct fd_event *fde;
uint64_t num_requests;
struct smb_signing_state *signing_state;
+ struct {
+ 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;
+ } smb1;
};
extern struct smbd_server_connection *smbd_server_conn;
exit_server("failed to create smbd_server_connection");
}
+ smbd_server_conn->smb1.echo_handler.socket_lock_fd = -1;
+ smbd_server_conn->smb1.echo_handler.trusted_fd = -1;
+
/* Ensure child is set to blocking mode */
set_blocking(smbd_server_fd(),True);