Blame SOURCES/0001-mptcpize-force-MPTCP-usage-for-IPPROTO_IP-too-159.patch
|
|
f01db0 |
From 5633f08e35552295b2f9414ff32ca4e8e081b2f2 Mon Sep 17 00:00:00 2001
|
|
|
f01db0 |
Message-Id: <5633f08e35552295b2f9414ff32ca4e8e081b2f2.1638196305.git.dcaratti@redhat.com>
|
|
|
f01db0 |
From: Paolo Abeni <paolo.abeni@gmail.com>
|
|
|
f01db0 |
Date: Tue, 12 Oct 2021 19:24:33 +0200
|
|
|
f01db0 |
Subject: [PATCH] mptcpize: force MPTCP usage for IPPROTO_IP, too (#159)
|
|
|
f01db0 |
|
|
|
f01db0 |
The current ignores calls alike:
|
|
|
f01db0 |
|
|
|
f01db0 |
socket(AF_INET, SOCK_STREAM, IPPROTO_IP)
|
|
|
f01db0 |
|
|
|
f01db0 |
We should hijack them, too.
|
|
|
f01db0 |
---
|
|
|
f01db0 |
src/mptcpwrap.c | 2 +-
|
|
|
f01db0 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
f01db0 |
|
|
|
f01db0 |
diff --git a/src/mptcpwrap.c b/src/mptcpwrap.c
|
|
|
f01db0 |
index 37b0545..1aaf00f 100644
|
|
|
f01db0 |
--- a/src/mptcpwrap.c
|
|
|
f01db0 |
+++ b/src/mptcpwrap.c
|
|
|
f01db0 |
@@ -27,7 +27,7 @@ int __attribute__((visibility("default"))) socket(int family, int type, int prot
|
|
|
f01db0 |
goto do_socket;
|
|
|
f01db0 |
|
|
|
f01db0 |
// socket(AF_INET, SOCK_STREM, 0) maps to TCP, too
|
|
|
f01db0 |
- if (protocol == 0 && protocol != IPPROTO_TCP)
|
|
|
f01db0 |
+ if (protocol != 0 && protocol != IPPROTO_TCP)
|
|
|
f01db0 |
goto do_socket;
|
|
|
f01db0 |
|
|
|
f01db0 |
protocol = IPPROTO_TCP + 256;
|
|
|
f01db0 |
--
|
|
|
f01db0 |
2.31.1
|
|
|
f01db0 |
|