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