diff options
author | 2018-10-26 12:24:35 +0100 | |
---|---|---|
committer | 2018-10-26 16:03:08 -0700 | |
commit | f64bf6b8ae802e93231155b0d92a619d896cd0bd (patch) | |
tree | cefc8aa7c022d3e08ff6ee02c3d27c9e61e444a3 /net/ipv6 | |
parent | bridge: do not add port to router list when receives query with source 0.0.0.0 (diff) | |
download | linux-f64bf6b8ae802e93231155b0d92a619d896cd0bd.tar.gz linux-f64bf6b8ae802e93231155b0d92a619d896cd0bd.tar.bz2 linux-f64bf6b8ae802e93231155b0d92a619d896cd0bd.zip |
net: allow traceroute with a specified interface in a vrf
Traceroute executed in a vrf succeeds if no device is given or if the
vrf is given as the device, but fails if the interface is given as the
device. This is for default UDP probes, it succeeds for TCP SYN or ICMP
ECHO probes. As the skb bound dev is the interface and the sk dev is
the vrf, sk lookup fails for ICMP_DEST_UNREACH and ICMP_TIME_EXCEEDED
messages. The solution is for the secondary dev to be passed so that
the interface is available for the device match to succeed, in the same
way as is already done for non-error cases.
Signed-off-by: Mike Manning <mmanning@vyatta.att-mail.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 06d17ff3562f..d2d97d07ef27 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -478,7 +478,7 @@ void __udp6_lib_err(struct sk_buff *skb, struct inet6_skb_parm *opt, struct net *net = dev_net(skb->dev); sk = __udp6_lib_lookup(net, daddr, uh->dest, saddr, uh->source, - inet6_iif(skb), 0, udptable, skb); + inet6_iif(skb), inet6_sdif(skb), udptable, skb); if (!sk) { __ICMP6_INC_STATS(net, __in6_dev_get(skb->dev), ICMP6_MIB_INERRORS); |