hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/ipv6/inet6_connection_sock.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * INET An implementation of the TCP/IP protocol suite for the LINUX
34 * operating system. INET is implemented using the BSD Socket
....@@ -6,11 +7,6 @@
67 * Support for INET6 connection oriented protocols.
78 *
89 * 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.
1410 */
1511
1612 #include <linux/module.h>
....@@ -50,7 +46,7 @@
5046 fl6->fl6_dport = ireq->ir_rmt_port;
5147 fl6->fl6_sport = htons(ireq->ir_num);
5248 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));
5450
5551 dst = ip6_dst_lookup_flow(sock_net(sk), sk, fl6, final_p);
5652 if (IS_ERR(dst))
....@@ -99,7 +95,7 @@
9995 fl6->fl6_sport = inet->inet_sport;
10096 fl6->fl6_dport = inet->inet_dport;
10197 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));
10399
104100 rcu_read_lock();
105101 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final);
....@@ -137,7 +133,7 @@
137133 fl6.daddr = sk->sk_v6_daddr;
138134
139135 res = ip6_xmit(sk, skb, &fl6, sk->sk_mark, rcu_dereference(np->opt),
140
- np->tclass);
136
+ np->tclass, sk->sk_priority);
141137 rcu_read_unlock();
142138 return res;
143139 }