summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2015-11-03 17:13:50 +0100
committerYves-Alexis Perez <corsac@debian.org>2015-11-03 17:29:17 +0100
commit0d7c6297ce16957cf4cb399db0ad867560e2d482 (patch)
treee0428ed8c562468706559ccb2be4a781a4d29fb5
parenta9533d350af941e9bdd656f349a1bbb07911a422 (diff)
downloadvyos-strongswan-0d7c6297ce16957cf4cb399db0ad867560e2d482.tar.gz
vyos-strongswan-0d7c6297ce16957cf4cb399db0ad867560e2d482.zip
Update source address selection patch to latest version
commit log has been updated to provide more meaningful comments
-rw-r--r--debian/patches/0001-socket-default-Refactor-setting-source-address-when-.patch13
1 files changed, 9 insertions, 4 deletions
diff --git a/debian/patches/0001-socket-default-Refactor-setting-source-address-when-.patch b/debian/patches/0001-socket-default-Refactor-setting-source-address-when-.patch
index 4bb774fd0..dd1c29a30 100644
--- a/debian/patches/0001-socket-default-Refactor-setting-source-address-when-.patch
+++ b/debian/patches/0001-socket-default-Refactor-setting-source-address-when-.patch
@@ -1,18 +1,23 @@
-From ab8337b3e8e5d4b8650b7d03b7193c7e734554f0 Mon Sep 17 00:00:00 2001
+From c761db5fa990ed2ccae96a180caef757f7e49833 Mon Sep 17 00:00:00 2001
From: Tobias Brunner <tobias@strongswan.org>
Date: Mon, 2 Nov 2015 16:22:38 +0100
Subject: [PATCH] socket-default: Refactor setting source address when sending
messages
This ensures we don't pass data (via msg_control) defined in a different
-scope to sendmsg() and also makes the code clearer than with the interleaving
-ifdefs.
+scope to sendmsg(). Actually, some compilers (e.g. GCC 5.2.1) might
+optimize the memcpy() call away causing the packets not to get sent from
+the intended source address.
+
+It also makes the code clearer than with all these ifdefs.
+
+ #1171
---
.../plugins/socket_default/socket_default_socket.c | 153 ++++++++++++++-------
1 file changed, 107 insertions(+), 46 deletions(-)
diff --git a/src/libcharon/plugins/socket_default/socket_default_socket.c b/src/libcharon/plugins/socket_default/socket_default_socket.c
-index 5585377..c9a2d51 100644
+index 421593c..13bf3e7 100644
--- a/src/libcharon/plugins/socket_default/socket_default_socket.c
+++ b/src/libcharon/plugins/socket_default/socket_default_socket.c
@@ -355,6 +355,107 @@ METHOD(socket_t, receiver, status_t,