mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
lib/util: add a comment to struct server_id_buf
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15693 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
f9d7a930f0
commit
87aa3a46a3
@ -24,7 +24,23 @@
|
||||
|
||||
struct server_id;
|
||||
|
||||
struct server_id_buf { char buf[48]; }; /* probably a bit too large ... */
|
||||
struct server_id_buf {
|
||||
/*
|
||||
* 4294967295 uses 10 chars
|
||||
* 18446744073709551615 uses 20 chars
|
||||
*
|
||||
* We have these combinations:
|
||||
* - "disconnected"
|
||||
* - PID64
|
||||
* - PID64.TASK32
|
||||
* - VNN32:PID64.TASK32
|
||||
*
|
||||
* The largest has 10 + 1 + 20 + 1 + 10 + 1 = 43 chars
|
||||
*
|
||||
* Then we align it to a multiple of 8.
|
||||
*/
|
||||
char buf[48];
|
||||
};
|
||||
|
||||
bool server_id_same_process(const struct server_id *p1,
|
||||
const struct server_id *p2);
|
||||
|
Loading…
Reference in New Issue
Block a user