Lines Matching +full:com +full:- +full:seq
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2016 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
39 static u32 seq_scale(u32 seq) in seq_scale() argument
47 * we also need to limit the resolution so that the u32 seq in seq_scale()
51 return seq + (ktime_get_real_ns() >> 6); in seq_scale()
67 if (READ_ONCE(net->ipv4.sysctl_tcp_timestamps) != 1) in secure_tcpv6_ts_off()
123 if (READ_ONCE(net->ipv4.sysctl_tcp_timestamps) != 1) in secure_tcp_ts_off()
164 u64 seq; in secure_dccp_sequence_number() local
166 seq = siphash_3u32((__force u32)saddr, (__force u32)daddr, in secure_dccp_sequence_number()
169 seq += ktime_get_real_ns(); in secure_dccp_sequence_number()
170 seq &= (1ull << 48) - 1; in secure_dccp_sequence_number()
171 return seq; in secure_dccp_sequence_number()
190 u64 seq; in secure_dccpv6_sequence_number() local
192 seq = siphash(&combined, offsetofend(typeof(combined), dport), in secure_dccpv6_sequence_number()
194 seq += ktime_get_real_ns(); in secure_dccpv6_sequence_number()
195 seq &= (1ull << 48) - 1; in secure_dccpv6_sequence_number()
196 return seq; in secure_dccpv6_sequence_number()