transp_v6.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef _TRANSP_V6_H
  2. #define _TRANSP_V6_H
  3. #include <net/checksum.h>
  4. /*
  5. * IPv6 transport protocols
  6. */
  7. #ifdef __KERNEL__
  8. extern struct proto rawv6_prot;
  9. extern struct proto udpv6_prot;
  10. extern struct proto tcpv6_prot;
  11. struct flowi;
  12. /* extention headers */
  13. extern void ipv6_rthdr_init(void);
  14. extern void ipv6_frag_init(void);
  15. extern void ipv6_nodata_init(void);
  16. extern void ipv6_destopt_init(void);
  17. /* transport protocols */
  18. extern void rawv6_init(void);
  19. extern void udpv6_init(void);
  20. extern void tcpv6_init(void);
  21. extern int udpv6_connect(struct sock *sk,
  22. struct sockaddr *uaddr,
  23. int addr_len);
  24. extern int datagram_recv_ctl(struct sock *sk,
  25. struct msghdr *msg,
  26. struct sk_buff *skb);
  27. extern int datagram_send_ctl(struct msghdr *msg,
  28. struct flowi *fl,
  29. struct ipv6_txoptions *opt,
  30. int *hlimit, int *tclass);
  31. #define LOOPBACK4_IPV6 __constant_htonl(0x7f000006)
  32. /*
  33. * address family specific functions
  34. */
  35. extern struct inet_connection_sock_af_ops ipv4_specific;
  36. extern int inet6_destroy_sock(struct sock *sk);
  37. #endif
  38. #endif