summaryrefslogtreecommitdiff
path: root/src/connection.h
diff options
context:
space:
mode:
authoryoav-steinberg <yoav@monfort.co.il>2020-10-28 21:13:44 +0200
committerGitHub <noreply@github.com>2020-10-28 21:13:44 +0200
commit84b3c18f71ec5b03e58a823fbf75de9c4c80969c (patch)
treeec12b94b1147586e2e03eb953956b8246e194f61 /src/connection.h
parent441bfa2dfb57e0dbfddad167bafa559b3f051b5b (diff)
downloadredis-84b3c18f71ec5b03e58a823fbf75de9c4c80969c.tar.gz
Add local address to CLIENT LIST, and a CLIENT KILL filter. (#7913)
Useful when you want to know through which bind address the client connected to the server in case of multiple bind addresses. - Adding `laddr` field to CLIENT list showing the local (bind) address. - Adding `LADDR` option to CLIENT KILL to kill all the clients connected to a specific local address. - Refactoring to share code.
Diffstat (limited to 'src/connection.h')
-rw-r--r--src/connection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.h b/src/connection.h
index 03281a3d9..60f1f70cb 100644
--- a/src/connection.h
+++ b/src/connection.h
@@ -225,7 +225,7 @@ int connKeepAlive(connection *conn, int interval);
int connSendTimeout(connection *conn, long long ms);
int connRecvTimeout(connection *conn, long long ms);
int connPeerToString(connection *conn, char *ip, size_t ip_len, int *port);
-int connFormatPeer(connection *conn, char *buf, size_t buf_len);
+int connFormatFdAddr(connection *conn, char *buf, size_t buf_len, int fd_to_str_type);
int connSockName(connection *conn, char *ip, size_t ip_len, int *port);
const char *connGetInfo(connection *conn, char *buf, size_t buf_len);