transp_v6.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 udplitev6_prot;
  11. extern struct proto tcpv6_prot;
  12. struct flowi;
  13. /* extention headers */
  14. extern void ipv6_rthdr_init(void);
  15. extern void ipv6_frag_init(void);
  16. extern void ipv6_nodata_init(void);
  17. extern void ipv6_destopt_init(void);
  18. /* transport protocols */
  19. extern void rawv6_init(void);
  20. extern void udpv6_init(void);
  21. extern void udplitev6_init(void);
  22. extern void tcpv6_init(void);
  23. extern int udpv6_connect(struct sock *sk,
  24. struct sockaddr *uaddr,
  25. int addr_len);
  26. extern int datagram_recv_ctl(struct sock *sk,
  27. struct msghdr *msg,
  28. struct sk_buff *skb);
  29. extern int datagram_send_ctl(struct msghdr *msg,
  30. struct flowi *fl,
  31. struct ipv6_txoptions *opt,
  32. int *hlimit, int *tclass);
  33. #define LOOPBACK4_IPV6 __constant_htonl(0x7f000006)
  34. /*
  35. * address family specific functions
  36. */
  37. extern struct inet_connection_sock_af_ops ipv4_specific;
  38. extern int inet6_destroy_sock(struct sock *sk);
  39. #endif
  40. #endif