2012-06-04 15:32:28 +02:00
/*
Unix SMB / CIFS implementation .
Low - level connections . tdb access functions
Copyright ( C ) Volker Lendecke 2007
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program . If not , see < http : //www.gnu.org/licenses/>.
*/
/* key and data in the connections database - used in smbstatus and smbd */
2023-05-30 13:27:00 +02:00
# include "source3/include/includes.h"
2012-06-04 15:32:28 +02:00
struct connections_data {
struct server_id pid ;
int cnum ;
2022-07-07 10:08:36 +02:00
uint32_t sess_id ;
2012-06-04 15:32:28 +02:00
uid_t uid ;
gid_t gid ;
2013-11-10 11:56:06 +01:00
fstring servicename ;
fstring addr ;
fstring machine ;
2022-07-18 11:33:12 +02:00
NTTIME start ;
2015-11-09 17:26:51 +01:00
uint8_t encryption_flags ;
uint16_t cipher ;
2015-11-30 11:14:34 +01:00
uint16_t dialect ;
2015-11-30 11:20:43 +01:00
uint8_t signing_flags ;
2021-05-06 23:55:49 +02:00
uint16_t signing ;
2023-07-03 15:10:08 +02:00
bool authenticated ;
2012-06-04 15:32:28 +02:00
} ;
/* The following definitions come from lib/conn_tdb.c */
2021-10-26 13:56:54 +02:00
int connections_forall_read ( int ( * fn ) ( const struct connections_data * data ,
2012-06-04 15:32:28 +02:00
void * private_data ) ,
void * private_data ) ;