Lines Matching refs:clcm
119 static bool smc_clc_msg_hdr_valid(struct smc_clc_msg_hdr *clcm, bool check_trl)
126 if (memcmp(clcm->eyecatcher, SMC_EYECATCHER, sizeof(SMC_EYECATCHER)) &&
127 memcmp(clcm->eyecatcher, SMCD_EYECATCHER, sizeof(SMCD_EYECATCHER)))
129 switch (clcm->type) {
131 pclc = (struct smc_clc_msg_proposal *)clcm;
139 clc_v2 = (struct smc_clc_msg_accept_confirm_v2 *)clcm;
147 dclc = (struct smc_clc_msg_decline *)clcm;
342 struct smc_clc_msg_hdr *clcm = buf;
389 datlen = ntohs(clcm->length);
391 (clcm->version < SMC_V1) ||
392 ((clcm->type != SMC_CLC_DECLINE) &&
393 (clcm->type != expected_type))) {
410 if (len < recvlen || !smc_clc_msg_hdr_valid(clcm, check_trl)) {
428 if (clcm->type == SMC_CLC_DECLINE) {
431 dclc = (struct smc_clc_msg_decline *)clcm;