[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 27 Jan 2016 14:45:57 +0100
From: Paolo Abeni <pabeni@...hat.com>
To: netdev@...r.kernel.org
Cc: "David S. Miller" <davem@...emloft.net>,
David Ahern <dsa@...ulusnetworks.com>,
Hajime Tazaki <thehajime@...il.com>, lucien.xin@...il.com,
Marcelo Ricardo Leitner <marcelo.leitner@...il.com>
Subject: [PATCH net 0/2] ipv6: fix sticky pktinfo behaviour
Currently:
ip addr add dev eth0 2001:0010::1/64
ip addr add dev eth1 2001:0020::1/64
ping6 -I eth0 2001:0020::2
do not leads to the expected results, i.e. eth1 is used as the
egress interface.
This is due to two related issues in handling sticky pktinfo,
used by ping6 to enforce the device binding:
- ip6_dst_lookup_flow()/ip6_dst_lookup_tail() do not really enforce
flowi6_oif match
- ipv6 udp connect() just ignore flowi6_oif
These patches address each issue individually.
Paolo Abeni (2):
ipv6: enforce flowi6_oif usage in ip6_dst_lookup_tail()
ipv6/udp: use sticky pktinfo egress ifindex on connect()
include/net/ip6_route.h | 2 ++
net/ipv6/datagram.c | 3 +++
net/ipv6/ip6_output.c | 6 +++++-
net/ipv6/route.c | 12 +++++++++---
4 files changed, 19 insertions(+), 4 deletions(-)
--
1.8.3.1
Powered by blists - more mailing lists