diff options
Diffstat (limited to 'net/ipv6/raw.c')
-rw-r--r-- | net/ipv6/raw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 8072bd4139b7..484a5c144073 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
@@ -865,6 +865,9 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) | |||
865 | fl6.flowi6_oif = np->ucast_oif; | 865 | fl6.flowi6_oif = np->ucast_oif; |
866 | security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); | 866 | security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); |
867 | 867 | ||
868 | if (inet->hdrincl) | ||
869 | fl6.flowi6_flags |= FLOWI_FLAG_KNOWN_NH; | ||
870 | |||
868 | dst = ip6_dst_lookup_flow(sk, &fl6, final_p); | 871 | dst = ip6_dst_lookup_flow(sk, &fl6, final_p); |
869 | if (IS_ERR(dst)) { | 872 | if (IS_ERR(dst)) { |
870 | err = PTR_ERR(dst); | 873 | err = PTR_ERR(dst); |