MXS-1973 Support reverse DNS for client hostnames in MaxCtrl
May slow maxscale down when used. Only supported for "list sessions", "show sessions" and "show session <id>".
This commit is contained in:
@ -438,19 +438,19 @@ void session_put_ref(MXS_SESSION* session);
|
||||
*
|
||||
* @param session Session to convert
|
||||
* @param host Hostname of this server
|
||||
*
|
||||
* @param rdns Attempt reverse DNS on client ip address
|
||||
* @return New JSON object or NULL on error
|
||||
*/
|
||||
json_t* session_to_json(const MXS_SESSION* session, const char* host);
|
||||
json_t* session_to_json(const MXS_SESSION* session, const char* host, bool rdns);
|
||||
|
||||
/**
|
||||
* @brief Convert all sessions to JSON
|
||||
*
|
||||
* @param host Hostname of this server
|
||||
*
|
||||
* @param rdns Attempt reverse DNS on client ip addresses
|
||||
* @return A JSON array with all sessions
|
||||
*/
|
||||
json_t* session_list_to_json(const char* host);
|
||||
json_t* session_list_to_json(const char* host, bool rdns);
|
||||
|
||||
/**
|
||||
* Qualify the session for connection pooling
|
||||
|
||||
Reference in New Issue
Block a user