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