aboutgitcodebugslistschat
path: root/tcp_conn.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-11-17 16:59:06 +1100
committerStefano Brivio <sbrivio@redhat.com>2022-11-25 01:35:58 +0100
commit9b0cc33d6841bec78e1896d4cd1761a57bd250a7 (patch)
tree066855ba2b0967e581601e226c6b22fe51d5f5dc /tcp_conn.h
parentebf56c7b56dfb61ef600890ea061b251dec08cc7 (diff)
downloadpasst-9b0cc33d6841bec78e1896d4cd1761a57bd250a7.tar
passt-9b0cc33d6841bec78e1896d4cd1761a57bd250a7.tar.gz
passt-9b0cc33d6841bec78e1896d4cd1761a57bd250a7.tar.bz2
passt-9b0cc33d6841bec78e1896d4cd1761a57bd250a7.tar.lz
passt-9b0cc33d6841bec78e1896d4cd1761a57bd250a7.tar.xz
passt-9b0cc33d6841bec78e1896d4cd1761a57bd250a7.tar.zst
passt-9b0cc33d6841bec78e1896d4cd1761a57bd250a7.zip
util: Allow sock_l4() to open dual stack sockets
Currently, when instructed to open an IPv6 socket, sock_l4() explicitly sets the IPV6_V6ONLY socket option so that the socket will only respond to IPv6 connections. Linux (and probably other platforms) allow "dual stack" sockets: IPv6 sockets which can also accept IPv4 connections. Extend sock_l4() to be able to make such sockets, by passing AF_UNSPEC as the address family and no bind address (binding to a specific address would defeat the purpose). We add a Makefile define 'DUAL_STACK_SOCKETS' to indicate availability of this feature on the target platform. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_conn.h')
0 files changed, 0 insertions, 0 deletions