forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/net/ipv6/udplite.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * UDPLITEv6 An implementation of the UDP-Lite protocol over IPv6.
34 * See also net/ipv4/udplite.c
....@@ -6,10 +7,6 @@
67 *
78 * Changes:
89 * Fixes:
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License
11
- * as published by the Free Software Foundation; either version
12
- * 2 of the License, or (at your option) any later version.
1310 */
1411 #include <linux/export.h>
1512 #include <linux/proc_fs.h>
....@@ -20,11 +17,12 @@
2017 return __udp6_lib_rcv(skb, &udplite_table, IPPROTO_UDPLITE);
2118 }
2219
23
-static void udplitev6_err(struct sk_buff *skb,
20
+static int udplitev6_err(struct sk_buff *skb,
2421 struct inet6_skb_parm *opt,
2522 u8 type, u8 code, int offset, __be32 info)
2623 {
27
- __udp6_lib_err(skb, opt, type, code, offset, info, &udplite_table);
24
+ return __udp6_lib_err(skb, opt, type, code, offset, info,
25
+ &udplite_table);
2826 }
2927
3028 static const struct inet6_protocol udplitev6_protocol = {
....@@ -48,15 +46,12 @@
4846 .recvmsg = udpv6_recvmsg,
4947 .hash = udp_lib_hash,
5048 .unhash = udp_lib_unhash,
49
+ .rehash = udp_v6_rehash,
5150 .get_port = udp_v6_get_port,
5251 .memory_allocated = &udp_memory_allocated,
5352 .sysctl_mem = sysctl_udp_mem,
5453 .obj_size = sizeof(struct udp6_sock),
5554 .h.udp_table = &udplite_table,
56
-#ifdef CONFIG_COMPAT
57
- .compat_setsockopt = compat_udpv6_setsockopt,
58
- .compat_getsockopt = compat_udpv6_getsockopt,
59
-#endif
6055 };
6156
6257 static struct inet_protosw udplite6_protosw = {