diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-24 20:47:29 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-24 21:06:41 +0200 |
commit | 2d81721a3fd9aa0cfdb2501cbcdd6eedc78c15c3 (patch) | |
tree | a9bd93d4ee8dd5697cd147cd0ec57a96275bd74c | |
parent | 1808dd0a854f0cf95718da28a9fc58134af04d83 (diff) | |
download | samba-2d81721a3fd9aa0cfdb2501cbcdd6eedc78c15c3.tar.gz samba-2d81721a3fd9aa0cfdb2501cbcdd6eedc78c15c3.tar.bz2 samba-2d81721a3fd9aa0cfdb2501cbcdd6eedc78c15c3.zip |
s3: Move "trans_num" to smbd_server_connection
-rw-r--r-- | source3/smbd/globals.c | 1 | ||||
-rw-r--r-- | source3/smbd/globals.h | 1 | ||||
-rw-r--r-- | source3/smbd/process.c | 7 |
3 files changed, 4 insertions, 5 deletions
diff --git a/source3/smbd/globals.c b/source3/smbd/globals.c index 324d13a239..98e4d51b08 100644 --- a/source3/smbd/globals.c +++ b/source3/smbd/globals.c @@ -71,7 +71,6 @@ struct msg_state *smbd_msg_state = NULL; bool logged_ioctl_message = false; -int trans_num = 0; pid_t mypid = 0; time_t last_smb_conf_reload_time = 0; time_t last_printer_reload_time = 0; diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index e4f4b79058..86e2c9b3f9 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -466,6 +466,7 @@ struct smbd_server_connection { bool got_session; } nbt; bool using_smb2; + int trans_num; struct { struct fd_event *fde; diff --git a/source3/smbd/process.c b/source3/smbd/process.c index b787674635..961598f8fd 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -1647,9 +1647,8 @@ static void process_smb(struct smbd_server_connection *conn, DEBUG( 6, ( "got message type 0x%x of len 0x%x\n", msg_type, smb_len(inbuf) ) ); - DEBUG( 3, ( "Transaction %d of length %d (%u toread)\n", trans_num, - (int)nread, - (unsigned int)unread_bytes )); + DEBUG(3, ("Transaction %d of length %d (%u toread)\n", + conn->trans_num, (int)nread, (unsigned int)unread_bytes)); if (msg_type != 0) { /* @@ -1676,7 +1675,7 @@ static void process_smb(struct smbd_server_connection *conn, show_msg((char *)inbuf); construct_reply((char *)inbuf,nread,unread_bytes,seqnum,encrypted,deferred_pcd); - trans_num++; + conn->trans_num++; done: conn->smb1.num_requests++; |