Lines Matching refs:clcm
470 static bool smc_clc_msg_hdr_valid(struct smc_clc_msg_hdr *clcm, bool check_trl) in smc_clc_msg_hdr_valid() argument
477 if (memcmp(clcm->eyecatcher, SMC_EYECATCHER, sizeof(SMC_EYECATCHER)) && in smc_clc_msg_hdr_valid()
478 memcmp(clcm->eyecatcher, SMCD_EYECATCHER, sizeof(SMCD_EYECATCHER))) in smc_clc_msg_hdr_valid()
480 switch (clcm->type) { in smc_clc_msg_hdr_valid()
482 pclc = (struct smc_clc_msg_proposal *)clcm; in smc_clc_msg_hdr_valid()
490 clc = (struct smc_clc_msg_accept_confirm *)clcm; in smc_clc_msg_hdr_valid()
497 dclc = (struct smc_clc_msg_decline *)clcm; in smc_clc_msg_hdr_valid()
692 struct smc_clc_msg_hdr *clcm = buf; in smc_clc_wait_msg() local
739 datlen = ntohs(clcm->length); in smc_clc_wait_msg()
741 (clcm->version < SMC_V1) || in smc_clc_wait_msg()
742 ((clcm->type != SMC_CLC_DECLINE) && in smc_clc_wait_msg()
743 (clcm->type != expected_type))) { in smc_clc_wait_msg()
760 if (len < recvlen || !smc_clc_msg_hdr_valid(clcm, check_trl)) { in smc_clc_wait_msg()
783 if (clcm->type == SMC_CLC_DECLINE) { in smc_clc_wait_msg()
786 dclc = (struct smc_clc_msg_decline *)clcm; in smc_clc_wait_msg()