Lines Matching refs:lh
192 struct fsmheader lh; in fsm_Output() local
211 lh.code = code; in fsm_Output()
212 lh.id = id; in fsm_Output()
213 lh.length = htons(plen); in fsm_Output()
215 memcpy(MBUF_CTOP(bp), &lh, sizeof(struct fsmheader)); in fsm_Output()
1047 struct fsmheader lh; in fsm_Input() local
1055 bp = mbuf_Read(bp, &lh, sizeof lh); in fsm_Input()
1057 if (ntohs(lh.length) > len) { in fsm_Input()
1059 "- dropped\n", fp->link->name, len, (int)ntohs(lh.length)); in fsm_Input()
1064 if (lh.code < fp->min_code || lh.code > fp->max_code || in fsm_Input()
1065 lh.code > sizeof FsmCodes / sizeof *FsmCodes) { in fsm_Input()
1072 bp = m_prepend(bp, &lh, sizeof lh, 0); in fsm_Input()
1079 codep = FsmCodes + lh.code - 1; in fsm_Input()
1080 if (lh.id != fp->reqid && codep->check_reqid && in fsm_Input()
1083 fp->link->name, codep->name, lh.id, fp->reqid); in fsm_Input()
1088 fp->link->name, codep->name, lh.id, State2Nam(fp->state)); in fsm_Input()
1090 if (codep->inc_reqid && (lh.id == fp->reqid || in fsm_Input()
1094 (*codep->recv)(fp, &lh, bp); in fsm_Input()