David S. Miller | 6e5714e | 2011-08-03 20:50:44 -0700 | [diff] [blame] | 1 | #ifndef _NET_SECURE_SEQ |
| 2 | #define _NET_SECURE_SEQ |
| 3 | |
| 4 | #include <linux/types.h> |
| 5 | |
Eric Dumazet | aebda15 | 2013-04-29 05:58:52 +0000 | [diff] [blame] | 6 | extern void net_secret_init(void); |
David S. Miller | 6e5714e | 2011-08-03 20:50:44 -0700 | [diff] [blame] | 7 | extern __u32 secure_ip_id(__be32 daddr); |
| 8 | extern __u32 secure_ipv6_id(const __be32 daddr[4]); |
| 9 | extern u32 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport); |
| 10 | extern u32 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr, |
| 11 | __be16 dport); |
| 12 | extern __u32 secure_tcp_sequence_number(__be32 saddr, __be32 daddr, |
| 13 | __be16 sport, __be16 dport); |
Eric Dumazet | cf533ea | 2011-10-21 05:22:42 -0400 | [diff] [blame] | 14 | extern __u32 secure_tcpv6_sequence_number(const __be32 *saddr, const __be32 *daddr, |
David S. Miller | 6e5714e | 2011-08-03 20:50:44 -0700 | [diff] [blame] | 15 | __be16 sport, __be16 dport); |
| 16 | extern u64 secure_dccp_sequence_number(__be32 saddr, __be32 daddr, |
| 17 | __be16 sport, __be16 dport); |
| 18 | extern u64 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr, |
| 19 | __be16 sport, __be16 dport); |
| 20 | |
| 21 | #endif /* _NET_SECURE_SEQ */ |