Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _UDP4_IMPL_H
0003 #define _UDP4_IMPL_H
0004 #include <net/udp.h>
0005 #include <net/udplite.h>
0006 #include <net/protocol.h>
0007 #include <net/inet_common.h>
0008 
0009 int __udp4_lib_rcv(struct sk_buff *, struct udp_table *, int);
0010 int __udp4_lib_err(struct sk_buff *, u32, struct udp_table *);
0011 
0012 int udp_v4_get_port(struct sock *sk, unsigned short snum);
0013 void udp_v4_rehash(struct sock *sk);
0014 
0015 int udp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
0016            unsigned int optlen);
0017 int udp_getsockopt(struct sock *sk, int level, int optname,
0018            char __user *optval, int __user *optlen);
0019 
0020 int udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags,
0021         int *addr_len);
0022 int udp_sendpage(struct sock *sk, struct page *page, int offset, size_t size,
0023          int flags);
0024 void udp_destroy_sock(struct sock *sk);
0025 
0026 #ifdef CONFIG_PROC_FS
0027 int udp4_seq_show(struct seq_file *seq, void *v);
0028 #endif
0029 #endif  /* _UDP4_IMPL_H */