Lines Matching refs:clcm
459 static bool smc_clc_msg_hdr_valid(struct smc_clc_msg_hdr *clcm, bool check_trl)
466 if (memcmp(clcm->eyecatcher, SMC_EYECATCHER, sizeof(SMC_EYECATCHER)) &&
467 memcmp(clcm->eyecatcher, SMCD_EYECATCHER, sizeof(SMCD_EYECATCHER)))
469 switch (clcm->type) {
471 pclc = (struct smc_clc_msg_proposal *)clcm;
479 clc_v2 = (struct smc_clc_msg_accept_confirm_v2 *)clcm;
487 dclc = (struct smc_clc_msg_decline *)clcm;
682 struct smc_clc_msg_hdr *clcm = buf;
729 datlen = ntohs(clcm->length);
731 (clcm->version < SMC_V1) ||
732 ((clcm->type != SMC_CLC_DECLINE) &&
733 (clcm->type != expected_type))) {
750 if (len < recvlen || !smc_clc_msg_hdr_valid(clcm, check_trl)) {
768 if (clcm->type == SMC_CLC_DECLINE) {
771 dclc = (struct smc_clc_msg_decline *)clcm;