• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/wpa/src/ap/

Lines Matching refs:rkh_seq

901 				 struct ft_remote_seq *rkh_seq, int cb)
905 dl_list_for_each_safe(item, n, &rkh_seq->rx.queue,
925 struct ft_remote_seq *rkh_seq, const u8 *src_addr,
949 if (dl_list_len(&rkh_seq->rx.queue) >= ftRRBmaxQueueLen) {
997 dl_list_add(&rkh_seq->rx.queue, &item->list);
1022 wpa_ft_rrb_seq_chk(struct ft_remote_seq *rkh_seq, const u8 *src_addr,
1038 if (rkh_seq->rx.num_last == 0) {
1043 if (le_to_host32(msg_both->dom) != rkh_seq->rx.dom) {
1052 os_reltime_sub(&now, &rkh_seq->rx.time_offset, &now_remote);
1061 rkh_off = rkh_seq->rx.last[rkh_seq->rx.offsetidx];
1067 for (i = 0; i < rkh_seq->rx.num_last; i++) {
1068 if (rkh_seq->rx.last[i] == msg_seq)
1093 struct ft_remote_seq *rkh_seq, const u8 *src_addr,
1109 if (rkh_seq->rx.num_last < FT_REMOTE_SEQ_BACKLOG) {
1110 rkh_seq->rx.last[rkh_seq->rx.num_last] = msg_seq;
1111 rkh_seq->rx.num_last++;
1115 rkh_off = rkh_seq->rx.last[rkh_seq->rx.offsetidx];
1116 for (i = 0; i < rkh_seq->rx.num_last; i++) {
1117 msg_off = rkh_seq->rx.last[i] - rkh_off;
1118 min_off = rkh_seq->rx.last[minidx] - rkh_off;
1119 if (msg_off < min_off && i != rkh_seq->rx.offsetidx)
1122 rkh_seq->rx.last[rkh_seq->rx.offsetidx] = msg_seq;
1123 rkh_seq->rx.offsetidx = minidx;
1133 static int wpa_ft_new_seq(struct ft_remote_seq *rkh_seq,
1141 if (!rkh_seq->tx.dom) {
1142 if (random_get_bytes((u8 *) &rkh_seq->tx.seq,
1143 sizeof(rkh_seq->tx.seq))) {
1146 rkh_seq->tx.seq = now.usec;
1148 if (random_get_bytes((u8 *) &rkh_seq->tx.dom,
1149 sizeof(rkh_seq->tx.dom))) {
1152 rkh_seq->tx.dom = now.usec;
1154 rkh_seq->tx.dom |= 1;
1157 f_seq->dom = host_to_le32(rkh_seq->tx.dom);
1158 f_seq->seq = host_to_le32(rkh_seq->tx.seq);
1161 rkh_seq->tx.seq++;
4036 struct ft_remote_seq **rkh_seq,
4121 *rkh_seq = r0kh->seq;
4137 *rkh_seq = r1kh->seq;
4160 struct ft_remote_seq *rkh_seq = NULL;
4168 enc, enc_len, auth, auth_len, &rkh_seq, &key,
4178 if (wpa_ft_new_seq(rkh_seq, &f_seq) < 0) {
4227 struct ft_remote_seq *rkh_seq = NULL;
4237 enc, enc_len, auth, auth_len, &rkh_seq, &key,
4247 dl_list_for_each(item, &rkh_seq->rx.queue, struct ft_remote_item,
4277 seq_ret = wpa_ft_rrb_seq_chk(rkh_seq, src_addr, enc, enc_len, auth,
4281 wpa_ft_rrb_seq_accept(wpa_auth, rkh_seq, src_addr, auth,
4295 rkh_seq->rx.num_last = 2;
4296 rkh_seq->rx.dom = msg_dom;
4297 rkh_seq->rx.offsetidx = 0;
4299 rkh_seq->rx.last[0] = msg_seq - FT_REMOTE_SEQ_BACKLOG -
4300 dl_list_len(&rkh_seq->rx.queue);
4301 rkh_seq->rx.last[1] = msg_seq;
4305 os_reltime_sub(&now, &now_remote, &rkh_seq->rx.time_offset);
4308 wpa_ft_rrb_seq_flush(wpa_auth, rkh_seq, 1);