| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * UDPLITE An implementation of the UDP-Lite protocol (RFC 3828). |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Changes: |
|---|
| 7 | 8 | * Fixes: |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or |
|---|
| 9 | | - * modify it under the terms of the GNU General Public License |
|---|
| 10 | | - * as published by the Free Software Foundation; either version |
|---|
| 11 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 12 | 9 | */ |
|---|
| 13 | 10 | |
|---|
| 14 | 11 | #define pr_fmt(fmt) "UDPLite: " fmt |
|---|
| .. | .. |
|---|
| 25 | 22 | return __udp4_lib_rcv(skb, &udplite_table, IPPROTO_UDPLITE); |
|---|
| 26 | 23 | } |
|---|
| 27 | 24 | |
|---|
| 28 | | -static void udplite_err(struct sk_buff *skb, u32 info) |
|---|
| 25 | +static int udplite_err(struct sk_buff *skb, u32 info) |
|---|
| 29 | 26 | { |
|---|
| 30 | | - __udp4_lib_err(skb, info, &udplite_table); |
|---|
| 27 | + return __udp4_lib_err(skb, info, &udplite_table); |
|---|
| 31 | 28 | } |
|---|
| 32 | 29 | |
|---|
| 33 | 30 | static const struct net_protocol udplite_protocol = { |
|---|
| .. | .. |
|---|
| 53 | 50 | .sendpage = udp_sendpage, |
|---|
| 54 | 51 | .hash = udp_lib_hash, |
|---|
| 55 | 52 | .unhash = udp_lib_unhash, |
|---|
| 53 | + .rehash = udp_v4_rehash, |
|---|
| 56 | 54 | .get_port = udp_v4_get_port, |
|---|
| 57 | 55 | .memory_allocated = &udp_memory_allocated, |
|---|
| 58 | 56 | .sysctl_mem = sysctl_udp_mem, |
|---|
| 59 | 57 | .obj_size = sizeof(struct udp_sock), |
|---|
| 60 | 58 | .h.udp_table = &udplite_table, |
|---|
| 61 | | -#ifdef CONFIG_COMPAT |
|---|
| 62 | | - .compat_setsockopt = compat_udp_setsockopt, |
|---|
| 63 | | - .compat_getsockopt = compat_udp_getsockopt, |
|---|
| 64 | | -#endif |
|---|
| 65 | 59 | }; |
|---|
| 66 | 60 | EXPORT_SYMBOL(udplite_prot); |
|---|
| 67 | 61 | |
|---|