diff options
author | Paolo Abeni <pabeni@redhat.com> | 2016-01-29 14:30:20 +0300 |
---|---|---|
committer | Luis Henriques <luis.henriques@canonical.com> | 2016-03-09 13:38:49 +0300 |
commit | c548b32aa079ef8276362277109cbd4b58bd202d (patch) | |
tree | a51de2fef949023ec58e52f3a47fe27e21d9e762 /tools/perf/builtin-annotate.c | |
parent | 836bb5f7fb2ca277d4d9142c79248ce193b677a3 (diff) | |
download | linux-c548b32aa079ef8276362277109cbd4b58bd202d.tar.xz |
ipv6/udp: use sticky pktinfo egress ifindex on connect()
commit 1cdda91871470f15e79375991bd2eddc6e86ddb1 upstream.
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 <pabeni@redhat.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions