mirror of
https://gitlab.com/chrony/chrony.git
synced 2026-01-20 21:00:20 -05:00
clientlog: reduce amount of logged information
Don't log NTP peer access and auth/bad command access. Also, change types for logging number of hits from long to uint32_t. This reduces the size of the node and allows more clients to be monitored in the same amount of memory.
This commit is contained in:
14
clientlog.h
14
clientlog.h
@@ -33,18 +33,8 @@
|
||||
|
||||
extern void CLG_Initialise(void);
|
||||
extern void CLG_Finalise(void);
|
||||
extern void CLG_LogNTPClientAccess(IPAddr *client, time_t now);
|
||||
extern void CLG_LogNTPPeerAccess(IPAddr *client, time_t now);
|
||||
|
||||
/* When logging command packets, there are several subtypes */
|
||||
|
||||
typedef enum {
|
||||
CLG_CMD_AUTH, /* authenticated */
|
||||
CLG_CMD_NORMAL, /* normal */
|
||||
CLG_CMD_BAD_PKT /* bad version or packet length */
|
||||
} CLG_Command_Type;
|
||||
|
||||
extern void CLG_LogCommandAccess(IPAddr *client, CLG_Command_Type type, time_t now);
|
||||
extern void CLG_LogNTPAccess(IPAddr *client, time_t now);
|
||||
extern void CLG_LogCommandAccess(IPAddr *client, time_t now);
|
||||
|
||||
/* And some reporting functions, for use by chronyc. */
|
||||
/* TBD */
|
||||
|
||||
Reference in New Issue
Block a user