transp_v6.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. extern struct proto pingv6_prot;
  12. struct flowi6;
  13. /* extension headers */
  14. extern int ipv6_exthdrs_init(void);
  15. extern void ipv6_exthdrs_exit(void);
  16. extern int ipv6_frag_init(void);
  17. extern void ipv6_frag_exit(void);
  18. /* transport protocols */
  19. extern int pingv6_init(void);
  20. extern void pingv6_exit(void);
  21. extern int rawv6_init(void);
  22. extern void rawv6_exit(void);
  23. extern int udpv6_init(void);
  24. extern void udpv6_exit(void);
  25. extern int udplitev6_init(void);
  26. extern void udplitev6_exit(void);
  27. extern int tcpv6_init(void);
  28. extern void tcpv6_exit(void);
  29. extern int udpv6_connect(struct sock *sk,
  30. struct sockaddr *uaddr,
  31. int addr_len);
  32. extern int ip6_datagram_recv_ctl(struct sock *sk,
  33. struct msghdr *msg,
  34. struct sk_buff *skb);
  35. extern int ip6_datagram_send_ctl(struct net *net,
  36. struct sock *sk,
  37. struct msghdr *msg,
  38. struct flowi6 *fl6,
  39. struct ipv6_txoptions *opt,
  40. int *hlimit, int *tclass,
  41. int *dontfrag);
  42. #define LOOPBACK4_IPV6 cpu_to_be32(0x7f000006)
  43. /*
  44. * address family specific functions
  45. */
  46. extern const struct inet_connection_sock_af_ops ipv4_specific;
  47. extern void inet6_destroy_sock(struct sock *sk);
  48. #endif