]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: add ipv6_addr_v4mapped check to know if connection from client is ipv4
authorNamjae Jeon <namjae.jeon@samsung.com>
Tue, 27 Jul 2021 04:25:13 +0000 (13:25 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Tue, 27 Jul 2021 04:26:32 +0000 (13:26 +0900)
commit6800d7c2c69e3f03b0ad412e2105c98d501f3c76
tree608533f3a4e2f6b3df002819c6fa7b7446b2c629
parent60a2e46bd19ecfb4ea4e6d588863f12b14e1d6cd
ksmbd: add ipv6_addr_v4mapped check to know if connection from client is ipv4

ksmbd create socket with IPv6 to listen both IPv4 and IPv6 connection
from client. Server should send IP addresses of NICs through network
interface info response. If Client connection is IPv4, Server should
fill IPv4 address in response buffer. But ss_family is always PF_INET6
on IPv6 socket. So This patch add ipv6_addr_v4mapped check to know
client connection is IPv4.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c