From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Frederic Sowa Subject: Re: [PATCH net v2 2/2] ipv6/udp: use sticky pktinfo egress ifindex on connect() Date: Fri, 29 Jan 2016 13:33:59 +0100 Message-ID: <56AB5C37.7020604@stressinduktion.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , David Ahern , Hajime Tazaki , lucien.xin@gmail.com, Marcelo Ricardo Leitner , YOSHIFUJI Hideaki To: Paolo Abeni , netdev@vger.kernel.org Return-path: Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36716 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755072AbcA2MeD (ORCPT ); Fri, 29 Jan 2016 07:34:03 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 43B56205FC for ; Fri, 29 Jan 2016 07:34:03 -0500 (EST) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On 29.01.2016 12:30, Paolo Abeni wrote: > Currently, the egress interface index specified via IPV6_PKTINFO > is ignored by __ip6_datagram_connect(), so that RFC 3542 section 6.7 > can be subverted when the user space application calls connect() > before sendmsg(). > Fix it by initializing properly flowi6_oif in connect() before > performing the route lookup. > > Signed-off-by: Paolo Abeni Acked-by: Hannes Frederic Sowa