diff options
author | David CARLIER <devnexen@gmail.com> | 2022-04-20 07:29:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 09:29:37 +0300 |
commit | aba2865c8680326e148ba6eb4cb6f6e7ab5119a3 (patch) | |
tree | 9ab0f3540f478d41eff01972bd5bbad253331650 /src/anet.h | |
parent | a1c85eebf4aaac0727456329e2f18bd99d23dfbe (diff) | |
download | redis-aba2865c8680326e148ba6eb4cb6f6e7ab5119a3.tar.gz |
Add socket-mark-id support for marking sockets. (#10349)
Add a configuration option to attach an operating system-specific identifier to Redis sockets, supporting advanced network configurations using iptables (Linux) or ipfw (FreeBSD).
Diffstat (limited to 'src/anet.h')
-rw-r--r-- | src/anet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/anet.h b/src/anet.h index 96238aaf4..ff86e2029 100644 --- a/src/anet.h +++ b/src/anet.h @@ -73,5 +73,6 @@ int anetKeepAlive(char *err, int fd, int interval); int anetFormatAddr(char *fmt, size_t fmt_len, char *ip, int port); int anetFormatFdAddr(int fd, char *buf, size_t buf_len, int fd_to_str_type); int anetPipe(int fds[2], int read_flags, int write_flags); +int anetSetSockMarkId(char *err, int fd, uint32_t id); #endif |