transp_v6.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef _TRANSP_V6_H
  2. #define _TRANSP_V6_H
  3. #include <net/checksum.h>
  4. /*
  5. * IPv6 transport protocols
  6. */
  7. extern struct proto rawv6_prot;
  8. extern struct proto udpv6_prot;
  9. extern struct proto udplitev6_prot;
  10. extern struct proto tcpv6_prot;
  11. struct flowi6;
  12. /* extension headers */
  13. extern int ipv6_exthdrs_init(void);
  14. extern void ipv6_exthdrs_exit(void);
  15. extern int ipv6_frag_init(void);
  16. extern void ipv6_frag_exit(void);
  17. /* transport protocols */
  18. extern int rawv6_init(void);
  19. extern void rawv6_exit(void);
  20. extern int udpv6_init(void);
  21. extern void udpv6_exit(void);
  22. extern int udplitev6_init(void);
  23. extern void udplitev6_exit(void);
  24. extern int tcpv6_init(void);
  25. extern void tcpv6_exit(void);
  26. extern int udpv6_connect(struct sock *sk,
  27. struct sockaddr *uaddr,
  28. int addr_len);
  29. extern int datagram_recv_ctl(struct sock *sk,
  30. struct msghdr *msg,
  31. struct sk_buff *skb);
  32. extern int datagram_send_ctl(struct net *net,
  33. struct msghdr *msg,
  34. struct flowi6 *fl6,
  35. struct ipv6_txoptions *opt,
  36. int *hlimit, int *tclass,
  37. int *dontfrag);
  38. #define LOOPBACK4_IPV6 cpu_to_be32(0x7f000006)
  39. /*
  40. * address family specific functions
  41. */
  42. extern const struct inet_connection_sock_af_ops ipv4_specific;
  43. extern void inet6_destroy_sock(struct sock *sk);
  44. #endif