From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Ricardo Leitner Subject: [PATCH v2 0/2] sctp: fix src address selection if using secondary address Date: Fri, 17 Jul 2015 12:34:16 -0300 Message-ID: Cc: Neil Horman , Vlad Yasevich To: netdev@vger.kernel.org, linux-sctp@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:45444 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757964AbbGQPe1 (ORCPT ); Fri, 17 Jul 2015 11:34:27 -0400 Sender: netdev-owner@vger.kernel.org List-ID: This series improves the way SCTP chooses its src address so that the choosen one will always belong to the interface being used for output. v1->v2: - split out the refactoring from the fix itself - Doing a full reverse routing as in v1 is not necessary. Only looking for the interface that has the address and comparing its number is enough. Marcelo Ricardo Leitner (2): sctp: reduce indent level on sctp_v4_get_dst sctp: fix src address selection if using secondary addresses net/sctp/protocol.c | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) -- 2.4.1