summaryrefslogtreecommitdiffstats
path: root/io
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2021-04-21 13:28:34 +0200
committerDr. David Alan Gilbert2021-06-08 20:36:22 +0200
commit8bd1078aebcec5eac196a83ef1a7e74be0ba67b7 (patch)
tree324d7a50afc3362698b9bb56363159b7b3a2eeb4 /io
parentmigration/socket: Close the listener at the end (diff)
downloadqemu-8bd1078aebcec5eac196a83ef1a7e74be0ba67b7.tar.gz
qemu-8bd1078aebcec5eac196a83ef1a7e74be0ba67b7.tar.xz
qemu-8bd1078aebcec5eac196a83ef1a7e74be0ba67b7.zip
sockets: Support multipath TCP
Multipath TCP allows combining multiple interfaces/routes into a single socket, with very little work for the user/admin. It's enabled by 'mptcp' on most socket addresses: ./qemu-system-x86_64 -nographic -incoming tcp:0:4444,mptcp Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20210421112834.107651-6-dgilbert@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'io')
-rw-r--r--io/dns-resolver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/io/dns-resolver.c b/io/dns-resolver.c
index 743a0efc87..a5946a93bf 100644
--- a/io/dns-resolver.c
+++ b/io/dns-resolver.c
@@ -122,6 +122,10 @@ static int qio_dns_resolver_lookup_sync_inet(QIODNSResolver *resolver,
.ipv4 = iaddr->ipv4,
.has_ipv6 = iaddr->has_ipv6,
.ipv6 = iaddr->ipv6,
+#ifdef IPPROTO_MPTCP
+ .has_mptcp = iaddr->has_mptcp,
+ .mptcp = iaddr->mptcp,
+#endif
};
(*addrs)[i] = newaddr;