From f9d80cd09f8cba15b431bf834a298a95616e4d7b Mon Sep 17 00:00:00 2001 From: chrysn Date: Mon, 4 Oct 2021 09:01:41 +0200 Subject: [PATCH] Base decision to switch on selection or default of protocol to match the decision mechanism of [1] and [2]. [1]: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/getting-started-with-multipath-tcp_configuring-and-managing-networking [2]: https://github.com/multipath-tcp/mptcp_net-next/issues/18#issuecomment-650529642 --- mptcp_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mptcp_mode.c b/mptcp_mode.c index e61b5b4..a2c8e8c 100644 --- a/mptcp_mode.c +++ b/mptcp_mode.c @@ -35,7 +35,7 @@ int socket(int domain, int type, int protocol) { _mptcpmode_load(); - if (((PF_INET == domain) || (PF_INET6 == domain)) + if (((IPPROTO_TCP == protocol) || (0 == protocol)) && (SOCK_STREAM == type)) { #ifdef DEBUG