aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
authorGael Blivet <gael.blivet@gmail.com>2026-09-14 01:26:38 +0200
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-21 08:55:17 +0900
commitcf0ef575a56993147f087d3f251fc2a04fdffbeb (patch)
tree8ac6e42e7cd29acb63eba2a600e7d4e2742bdfac /scripts
parentksmbd: fix AFP_AfpInfo header fields in synthesized xattr (diff)
ksmbd: print IPv6 client addresses correctly in procfs
conn->inet_addr and conn->inet6_addr share a union, and three procfs printers choose between them by testing whether inet_addr is zero. For an IPv6 peer that field aliases the first four bytes of the address, which are zero only for :: prefixed addresses, so a client with a global IPv6 address takes the IPv4 branch and is listed from those four bytes. A client at 2001:db8::1 is listed as 32.1.13.184. IPv4 mapped addresses begin with zero bytes, so the listing is correct until a native IPv6 client connects. Record the address family where the address is stored and select on that, in the client listing and in both session listings. Fixes: fe4dc5987d7d ("ksmbd: expose connection runtime state in procfs") Signed-off-by: Gael Blivet <gael.blivet@gmail.com> Assisted-by: Claude:claude-opus-5 Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions