162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef _UDP4_IMPL_H
362306a36Sopenharmony_ci#define _UDP4_IMPL_H
462306a36Sopenharmony_ci#include <net/udp.h>
562306a36Sopenharmony_ci#include <net/udplite.h>
662306a36Sopenharmony_ci#include <net/protocol.h>
762306a36Sopenharmony_ci#include <net/inet_common.h>
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciint __udp4_lib_rcv(struct sk_buff *, struct udp_table *, int);
1062306a36Sopenharmony_ciint __udp4_lib_err(struct sk_buff *, u32, struct udp_table *);
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciint udp_v4_get_port(struct sock *sk, unsigned short snum);
1362306a36Sopenharmony_civoid udp_v4_rehash(struct sock *sk);
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciint udp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
1662306a36Sopenharmony_ci		   unsigned int optlen);
1762306a36Sopenharmony_ciint udp_getsockopt(struct sock *sk, int level, int optname,
1862306a36Sopenharmony_ci		   char __user *optval, int __user *optlen);
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ciint udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags,
2162306a36Sopenharmony_ci		int *addr_len);
2262306a36Sopenharmony_civoid udp_destroy_sock(struct sock *sk);
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci#ifdef CONFIG_PROC_FS
2562306a36Sopenharmony_ciint udp4_seq_show(struct seq_file *seq, void *v);
2662306a36Sopenharmony_ci#endif
2762306a36Sopenharmony_ci#endif	/* _UDP4_IMPL_H */
28