| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * UDPLITEv6 An implementation of the UDP-Lite protocol over IPv6. |
|---|
| 3 | 4 | * See also net/ipv4/udplite.c |
|---|
| .. | .. |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Changes: |
|---|
| 8 | 9 | * 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. |
|---|
| 13 | 10 | */ |
|---|
| 14 | 11 | #include <linux/export.h> |
|---|
| 15 | 12 | #include <linux/proc_fs.h> |
|---|
| .. | .. |
|---|
| 20 | 17 | return __udp6_lib_rcv(skb, &udplite_table, IPPROTO_UDPLITE); |
|---|
| 21 | 18 | } |
|---|
| 22 | 19 | |
|---|
| 23 | | -static void udplitev6_err(struct sk_buff *skb, |
|---|
| 20 | +static int udplitev6_err(struct sk_buff *skb, |
|---|
| 24 | 21 | struct inet6_skb_parm *opt, |
|---|
| 25 | 22 | u8 type, u8 code, int offset, __be32 info) |
|---|
| 26 | 23 | { |
|---|
| 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); |
|---|
| 28 | 26 | } |
|---|
| 29 | 27 | |
|---|
| 30 | 28 | static const struct inet6_protocol udplitev6_protocol = { |
|---|
| .. | .. |
|---|
| 48 | 46 | .recvmsg = udpv6_recvmsg, |
|---|
| 49 | 47 | .hash = udp_lib_hash, |
|---|
| 50 | 48 | .unhash = udp_lib_unhash, |
|---|
| 49 | + .rehash = udp_v6_rehash, |
|---|
| 51 | 50 | .get_port = udp_v6_get_port, |
|---|
| 52 | 51 | .memory_allocated = &udp_memory_allocated, |
|---|
| 53 | 52 | .sysctl_mem = sysctl_udp_mem, |
|---|
| 54 | 53 | .obj_size = sizeof(struct udp6_sock), |
|---|
| 55 | 54 | .h.udp_table = &udplite_table, |
|---|
| 56 | | -#ifdef CONFIG_COMPAT |
|---|
| 57 | | - .compat_setsockopt = compat_udpv6_setsockopt, |
|---|
| 58 | | - .compat_getsockopt = compat_udpv6_getsockopt, |
|---|
| 59 | | -#endif |
|---|
| 60 | 55 | }; |
|---|
| 61 | 56 | |
|---|
| 62 | 57 | static struct inet_protosw udplite6_protosw = { |
|---|