smb2_kproto.h revision a90cf9f29973990687fa61de9f1f6ea22e924e40
/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2014 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _SMB2_KPROTO_H_
#define _SMB2_KPROTO_H_
#include <smbsrv/smb_kproto.h>
#ifdef __cplusplus
extern "C" {
#endif
extern uint32_t smb2_tcp_rcvbuf;
extern uint32_t smb2_max_rwsize;
extern uint32_t smb2_max_trans;
void smb2_dispatch_stats_init(smb_server_t *);
void smb2_dispatch_stats_fini(smb_server_t *);
smb_kstat_req_t *, int, int);
int smb2sr_newrq(smb_request_t *);
int smb2sr_newrq_async(smb_request_t *);
int smb2sr_newrq_cancel(smb_request_t *);
void smb2sr_work(smb_request_t *);
int smb2_decode_header(smb_request_t *);
void smb2_send_reply(smb_request_t *);
void smb2sr_put_errno(struct smb_request *, int);
/* SMB2 signing routines - smb2_signing.c */
int smb2_sign_check_request(smb_request_t *);
void smb2_sign_reply(smb_request_t *);
/* No smb2_cancel() - see smb2_dispatch.c */
int smb2_newrq_negotiate(smb_request_t *);
#ifdef __cplusplus
}
#endif
#endif /* _SMB2_KPROTO_H_ */