[Pkg-swan-devel] [strongswan] 07/10: Update source address selection patch to latest version

Yves-Alexis Perez corsac at moszumanska.debian.org
Wed Nov 4 19:42:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

corsac pushed a commit to annotated tag v5.3.3-1
in repository strongswan.

commit 0d7c6297ce16957cf4cb399db0ad867560e2d482
Author: Yves-Alexis Perez <corsac at debian.org>
Date:   Tue Nov 3 17:13:50 2015 +0100

    Update source address selection patch to latest version
    
    commit log has been updated to provide more meaningful comments
---
 ...cket-default-Refactor-setting-source-address-when-.patch | 13 +++++++++----
 1 file 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 4bb774f..dd1c29a 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 at 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,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-swan/strongswan.git



More information about the Pkg-swan-devel mailing list