Lines Matching defs:lastId
243 sm->lastId = -1; /* new session - make sure this does not match with
966 sm->lastId = sm->reqId;
1124 static int eap_success_workaround(struct eap_sm *sm, int reqId, int lastId)
1128 * EAP-Success/Failure with lastId + 1 even though RFC 3748 and
1129 * RFC 4137 require that reqId == lastId. In addition, it looks like
1130 * Ringmaster v2.1.2.0 would be using lastId + 2 in EAP-Success.
1136 if (sm->workaround && (reqId == ((lastId + 1) & 0xff) ||
1137 reqId == ((lastId + 2) & 0xff))) {
1140 "reqId=%d lastId=%d (these are supposed to be "
1141 "same)", reqId, lastId);
1145 "lastId=%d", reqId, lastId);
1190 duplicate = (sm->reqId == sm->lastId) && sm->rxReq;
1194 * RFC 4137 uses (reqId == lastId) as the only verification for
1231 (sm->reqId == sm->lastId ||
1232 eap_success_workaround(sm, sm->reqId, sm->lastId)))
1234 else if (sm->workaround && sm->lastId == -1 && sm->rxSuccess &&
1237 else if (sm->workaround && sm->lastId == -1 && sm->rxFailure &&
1251 (sm->reqId == sm->lastId ||
1252 eap_success_workaround(sm, sm->reqId, sm->lastId)))