Whamcloud - gitweb
LU-10391 lnet: allow creation of IPv6 socket. 05/37705/12
authorMr NeilBrown <neilb@suse.de>
Wed, 22 Jan 2020 23:26:37 +0000 (10:26 +1100)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 21:07:39 +0000 (21:07 +0000)
commite4fa181abf1032198ad278cf9f0560e45158c9bc
tree762f6fa399694ca5daaa89a7b6ed4ba481ec63e1
parentdcc8b9c00d5de4bf4580e74bea47e3f99b2ad5da
LU-10391 lnet: allow creation of IPv6 socket.

With this patch, lnet_sock_create() can make IPv6 sockets.  If an
interface and destination is given, completely different code is
needed to bind the local address.

When no interface or destination is given, an IPv6 socket is always
created, so lnet_acceptor() needs to request that IPv4 connections are
accepted as well, and lnet_sock_getaddr() needs to detect mapped v4
addresses and present them as true v4 addresses.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Iaef1c08a9afd578b60f54cc83fd2d6882a021e6b
Reviewed-on: https://review.whamcloud.com/37705
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-socket.c