udp_impl.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _UDP4_IMPL_H
  2. #define _UDP4_IMPL_H
  3. #include <net/udp.h>
  4. #include <net/udplite.h>
  5. #include <net/protocol.h>
  6. #include <net/inet_common.h>
  7. extern int __udp4_lib_rcv(struct sk_buff *, struct hlist_head [], int );
  8. extern void __udp4_lib_err(struct sk_buff *, u32, struct hlist_head []);
  9. extern int __udp_lib_get_port(struct sock *sk, unsigned short snum,
  10. struct hlist_head udptable[], int *port_rover,
  11. int (*)(const struct sock*,const struct sock*));
  12. extern int ipv4_rcv_saddr_equal(const struct sock *, const struct sock *);
  13. extern int udp_setsockopt(struct sock *sk, int level, int optname,
  14. char __user *optval, int optlen);
  15. extern int udp_getsockopt(struct sock *sk, int level, int optname,
  16. char __user *optval, int __user *optlen);
  17. #ifdef CONFIG_COMPAT
  18. extern int compat_udp_setsockopt(struct sock *sk, int level, int optname,
  19. char __user *optval, int optlen);
  20. extern int compat_udp_getsockopt(struct sock *sk, int level, int optname,
  21. char __user *optval, int __user *optlen);
  22. #endif
  23. extern int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
  24. size_t len, int noblock, int flags, int *addr_len);
  25. extern int udp_sendpage(struct sock *sk, struct page *page, int offset,
  26. size_t size, int flags);
  27. extern int udp_queue_rcv_skb(struct sock * sk, struct sk_buff *skb);
  28. extern int udp_destroy_sock(struct sock *sk);
  29. #ifdef CONFIG_PROC_FS
  30. extern int udp4_seq_show(struct seq_file *seq, void *v);
  31. #endif
  32. #endif /* _UDP4_IMPL_H */