Lines Matching defs:type
42 dispatch_protocol_error(int type, u_int32_t seq, void *ctxt)
44 log("dispatch_protocol_error: type %d seq %u", type, seq);
53 dispatch_protocol_ignore(int type, u_int32_t seq, void *ctxt)
55 log("dispatch_protocol_ignore: type %d seq %u", type, seq);
76 dispatch_set(int type, dispatch_fn *fn)
78 dispatch[type] = fn;
84 int type;
88 type = packet_read_seqnr(&seqnr);
90 type = packet_read_poll_seqnr(&seqnr);
91 if (type == SSH_MSG_NONE)
94 if (type > 0 && type < DISPATCH_MAX && dispatch[type] != NULL)
95 (*dispatch[type])(type, seqnr, ctxt);
97 packet_disconnect("protocol error: rcvd type %d", type);