Merge branch 'for-3.1' of git://github.com/padovan/bluetooth-next
[linux-2.6-block.git] / include / net / transp_v6.h
CommitLineData
1da177e4
LT
1#ifndef _TRANSP_V6_H
2#define _TRANSP_V6_H
3
4#include <net/checksum.h>
5
6/*
7 * IPv6 transport protocols
8 */
9
1da177e4
LT
10extern struct proto rawv6_prot;
11extern struct proto udpv6_prot;
ba4e58ec 12extern struct proto udplitev6_prot;
1da177e4
LT
13extern struct proto tcpv6_prot;
14
4c9483b2 15struct flowi6;
1da177e4 16
25985edc 17/* extension headers */
248b238d
DL
18extern int ipv6_exthdrs_init(void);
19extern void ipv6_exthdrs_exit(void);
853cbbaa
DL
20extern int ipv6_frag_init(void);
21extern void ipv6_frag_exit(void);
1da177e4
LT
22
23/* transport protocols */
7f4e4868
DL
24extern int rawv6_init(void);
25extern void rawv6_exit(void);
26extern int udpv6_init(void);
27extern void udpv6_exit(void);
28extern int udplitev6_init(void);
29extern void udplitev6_exit(void);
30extern int tcpv6_init(void);
31extern void tcpv6_exit(void);
1da177e4
LT
32
33extern int udpv6_connect(struct sock *sk,
34 struct sockaddr *uaddr,
35 int addr_len);
36
37extern int datagram_recv_ctl(struct sock *sk,
38 struct msghdr *msg,
39 struct sk_buff *skb);
40
91e1908f
YH
41extern int datagram_send_ctl(struct net *net,
42 struct msghdr *msg,
4c9483b2 43 struct flowi6 *fl6,
1da177e4 44 struct ipv6_txoptions *opt,
13b52cd4
BH
45 int *hlimit, int *tclass,
46 int *dontfrag);
1da177e4 47
f3a7c66b 48#define LOOPBACK4_IPV6 cpu_to_be32(0x7f000006)
1da177e4
LT
49
50/*
51 * address family specific functions
52 */
3b401a81 53extern const struct inet_connection_sock_af_ops ipv4_specific;
1da177e4 54
7d06b2e0 55extern void inet6_destroy_sock(struct sock *sk);
1da177e4
LT
56
57#endif