transp_v6.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  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. extern void rawv6_init(void);
  13. extern void udpv6_init(void);
  14. extern void tcpv6_init(void);
  15. extern int udpv6_connect(struct sock *sk,
  16.       struct sockaddr *uaddr,
  17.       int addr_len);
  18. extern int datagram_recv_ctl(struct sock *sk,
  19.   struct msghdr *msg,
  20.   struct sk_buff *skb);
  21. extern int datagram_send_ctl(struct msghdr *msg,
  22.   struct flowi *fl,
  23.   struct ipv6_txoptions *opt,
  24.   int *hlimit);
  25. #define LOOPBACK4_IPV6 __constant_htonl(0x7f000006)
  26. /*
  27.  * address family specific functions
  28.  */
  29. extern struct tcp_func ipv4_specific;
  30. extern int inet6_destroy_sock(struct sock *sk);
  31. #endif
  32. #endif