1#ifndef _TRANSP_V6_H
2#define _TRANSP_V6_H
3
4#include <net/checksum.h>
5
6
7extern struct proto rawv6_prot;
8extern struct proto udpv6_prot;
9extern struct proto udplitev6_prot;
10extern struct proto tcpv6_prot;
11
12struct flowi6;
13
14
15int ipv6_exthdrs_init(void);
16void ipv6_exthdrs_exit(void);
17int ipv6_frag_init(void);
18void ipv6_frag_exit(void);
19
20
21int rawv6_init(void);
22void rawv6_exit(void);
23int udpv6_init(void);
24void udpv6_exit(void);
25int udplitev6_init(void);
26void udplitev6_exit(void);
27int tcpv6_init(void);
28void tcpv6_exit(void);
29
30int udpv6_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len);
31
32
33void ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg,
34 struct sk_buff *skb);
35void ip6_datagram_recv_common_ctl(struct sock *sk, struct msghdr *msg,
36 struct sk_buff *skb);
37void ip6_datagram_recv_specific_ctl(struct sock *sk, struct msghdr *msg,
38 struct sk_buff *skb);
39
40int ip6_datagram_send_ctl(struct net *net, struct sock *sk, struct msghdr *msg,
41 struct flowi6 *fl6, struct ipv6_txoptions *opt,
42 int *hlimit, int *tclass, int *dontfrag);
43
44void ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp,
45 __u16 srcp, __u16 destp, int bucket);
46
47#define LOOPBACK4_IPV6 cpu_to_be32(0x7f000006)
48
49
50extern const struct inet_connection_sock_af_ops ipv4_specific;
51
52void inet6_destroy_sock(struct sock *sk);
53
54#define IPV6_SEQ_DGRAM_HEADER \
55 " sl " \
56 "local_address " \
57 "remote_address " \
58 "st tx_queue rx_queue tr tm->when retrnsmt" \
59 " uid timeout inode ref pointer drops\n"
60
61#endif
62