Home
last modified time | relevance | path

Searched refs:local_seq (Results 1 – 2 of 2) sorted by relevance

/external/srtp/crypto/replay/
Drdbx.c130 uint16_t local_seq = (uint16_t) (low32(*local)); in index_guess() local
133 uint16_t local_seq = (uint16_t) *local; in index_guess()
145 if (local_seq < seq_num_median) { in index_guess()
146 if (s - local_seq > seq_num_median) { in index_guess()
157 difference = s - local_seq - seq_num_max; in index_guess()
160 difference = s - local_seq; in index_guess()
163 if (local_seq - seq_num_median > s) { in index_guess()
165 difference = seq_num_max - local_seq + s; in index_guess()
167 difference = s - local_seq; in index_guess()
/external/srtp/googlepatches/
Dgoogle-11-srtp-replay-fix.patch19 if (local_seq < seq_num_median) {
20 if (s - local_seq > seq_num_median) {
22 - difference = seq_num_max - s + local_seq;
23 + // The return value is the relative difference from local_seq to s.
32 + difference = s - local_seq - seq_num_max;
35 difference = s - local_seq;