summaryrefslogtreecommitdiffstats
path: root/include/linux/udp.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2022-10-12 08:49:29 +0100
committerDavid Howells <dhowells@redhat.com>2022-11-08 16:42:28 +0000
commit42fb06b391ace2aec5cdb1ebb8ff668f0a34332f (patch)
treeaa9e79d759167641a8101d126341c3aff5a7c68a /include/linux/udp.h
parent8889a711f9b4dcf4dd1330fa493081beebd118c9 (diff)
downloadlinux-stable-42fb06b391ace2aec5cdb1ebb8ff668f0a34332f.tar.gz
linux-stable-42fb06b391ace2aec5cdb1ebb8ff668f0a34332f.tar.bz2
linux-stable-42fb06b391ace2aec5cdb1ebb8ff668f0a34332f.zip
net: Change the udp encap_err_rcv to allow use of {ip,ipv6}_icmp_error()
Change the udp encap_err_rcv signature to match ip_icmp_error() and ipv6_icmp_error() so that those can be used from the called function and export them. Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org cc: netdev@vger.kernel.org
Diffstat (limited to 'include/linux/udp.h')
-rw-r--r--include/linux/udp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/udp.h b/include/linux/udp.h
index 5cdba00a904a..dea57aa37df6 100644
--- a/include/linux/udp.h
+++ b/include/linux/udp.h
@@ -70,7 +70,8 @@ struct udp_sock {
* For encapsulation sockets.
*/
int (*encap_rcv)(struct sock *sk, struct sk_buff *skb);
- void (*encap_err_rcv)(struct sock *sk, struct sk_buff *skb, unsigned int udp_offset);
+ void (*encap_err_rcv)(struct sock *sk, struct sk_buff *skb, int err,
+ __be16 port, u32 info, u8 *payload);
int (*encap_err_lookup)(struct sock *sk, struct sk_buff *skb);
void (*encap_destroy)(struct sock *sk);