| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * INET An implementation of the TCP/IP protocol suite for the LINUX |
|---|
| 3 | 4 | * operating system. INET is implemented using the BSD Socket |
|---|
| .. | .. |
|---|
| 6 | 7 | * Support for INET6 connection oriented protocols. |
|---|
| 7 | 8 | * |
|---|
| 8 | 9 | * Authors: See the TCPv6 sources |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or |
|---|
| 11 | | - * modify it under the terms of the GNU General Public License |
|---|
| 12 | | - * as published by the Free Software Foundation; either version |
|---|
| 13 | | - * 2 of the License, or(at your option) any later version. |
|---|
| 14 | 10 | */ |
|---|
| 15 | 11 | |
|---|
| 16 | 12 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 50 | 46 | fl6->fl6_dport = ireq->ir_rmt_port; |
|---|
| 51 | 47 | fl6->fl6_sport = htons(ireq->ir_num); |
|---|
| 52 | 48 | fl6->flowi6_uid = sk->sk_uid; |
|---|
| 53 | | - security_req_classify_flow(req, flowi6_to_flowi(fl6)); |
|---|
| 49 | + security_req_classify_flow(req, flowi6_to_flowi_common(fl6)); |
|---|
| 54 | 50 | |
|---|
| 55 | 51 | dst = ip6_dst_lookup_flow(sock_net(sk), sk, fl6, final_p); |
|---|
| 56 | 52 | if (IS_ERR(dst)) |
|---|
| .. | .. |
|---|
| 99 | 95 | fl6->fl6_sport = inet->inet_sport; |
|---|
| 100 | 96 | fl6->fl6_dport = inet->inet_dport; |
|---|
| 101 | 97 | fl6->flowi6_uid = sk->sk_uid; |
|---|
| 102 | | - security_sk_classify_flow(sk, flowi6_to_flowi(fl6)); |
|---|
| 98 | + security_sk_classify_flow(sk, flowi6_to_flowi_common(fl6)); |
|---|
| 103 | 99 | |
|---|
| 104 | 100 | rcu_read_lock(); |
|---|
| 105 | 101 | final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); |
|---|
| .. | .. |
|---|
| 137 | 133 | fl6.daddr = sk->sk_v6_daddr; |
|---|
| 138 | 134 | |
|---|
| 139 | 135 | res = ip6_xmit(sk, skb, &fl6, sk->sk_mark, rcu_dereference(np->opt), |
|---|
| 140 | | - np->tclass); |
|---|
| 136 | + np->tclass, sk->sk_priority); |
|---|
| 141 | 137 | rcu_read_unlock(); |
|---|
| 142 | 138 | return res; |
|---|
| 143 | 139 | } |
|---|