Lines Matching defs:rh
414 struct rtr_header *rh, struct ibuf *pdu)
416 if (session_id != ntohs(rh->session_id)) {
419 log_rtr_type(rh->type), ntohs(rh->session_id), session_id);
432 struct rtr_header rh;
436 if (ibuf_get(hdr, &rh, sizeof(rh)) == -1)
439 len = ntohl(rh.length);
443 log_rtr_type(rh.type), len);
463 struct rtr_header rh;
471 if (ibuf_get(&hdr, &rh, sizeof(rh)) == -1)
475 switch (rh.type) {
479 if (rh.version < rs->version) {
481 rs->version = rh.version;
486 errcode = ntohs(rh.session_id);
489 if (rh.version < rs->version) {
491 rs->version = rh.version;
500 "%s: out of context", log_rtr_type(rh.type));
503 } else if (rh.version != rs->version && rh.type != ERROR_REPORT) {
507 switch (rh.type) {
555 log_rtr_type(rh.type));
559 *msgtype = rh.type;
565 log_rtr_type(rh.type), len);
570 log_rtr_type(rh.type), rh.version);
986 struct rtr_header rh;
993 if (ibuf_get(pdu, &rh, sizeof(rh)) == -1)
995 errcode = ntohs(rh.errcode);