MINOR: cli/show_fd: report local and report ports when known
authorWilly Tarreau <w@1wt.eu>
Fri, 5 Feb 2021 09:54:52 +0000 (10:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 5 Feb 2021 14:04:12 +0000 (15:04 +0100)
commit21129141a57b7ee6c67e0dfb7a15313f25f011b0
tree653e093c4e6a35fe03eb538c63980f04d266945e
parent5c6176d283b2637bc9feb2a88c7a96b7c426998c
MINOR: cli/show_fd: report local and report ports when known

FD dumps are not always easy to match against netstat dumps, and often
require an lsof as a third dump. Let's emit the socket family, and the
local and remore ports when the FD is an IPv4/IPv6 socket, this will
significantly ease the matching.

(cherry picked from commit ed9892018c327c61342bf95b2d83f44f27bfc7c4)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/cli.c