18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _UDP4_IMPL_H 38c2ecf20Sopenharmony_ci#define _UDP4_IMPL_H 48c2ecf20Sopenharmony_ci#include <net/udp.h> 58c2ecf20Sopenharmony_ci#include <net/udplite.h> 68c2ecf20Sopenharmony_ci#include <net/protocol.h> 78c2ecf20Sopenharmony_ci#include <net/inet_common.h> 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciint __udp4_lib_rcv(struct sk_buff *, struct udp_table *, int); 108c2ecf20Sopenharmony_ciint __udp4_lib_err(struct sk_buff *, u32, struct udp_table *); 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciint udp_v4_get_port(struct sock *sk, unsigned short snum); 138c2ecf20Sopenharmony_civoid udp_v4_rehash(struct sock *sk); 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciint udp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, 168c2ecf20Sopenharmony_ci unsigned int optlen); 178c2ecf20Sopenharmony_ciint udp_getsockopt(struct sock *sk, int level, int optname, 188c2ecf20Sopenharmony_ci char __user *optval, int __user *optlen); 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciint udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int noblock, 218c2ecf20Sopenharmony_ci int flags, int *addr_len); 228c2ecf20Sopenharmony_ciint udp_sendpage(struct sock *sk, struct page *page, int offset, size_t size, 238c2ecf20Sopenharmony_ci int flags); 248c2ecf20Sopenharmony_civoid udp_destroy_sock(struct sock *sk); 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#ifdef CONFIG_PROC_FS 278c2ecf20Sopenharmony_ciint udp4_seq_show(struct seq_file *seq, void *v); 288c2ecf20Sopenharmony_ci#endif 298c2ecf20Sopenharmony_ci#endif /* _UDP4_IMPL_H */ 30