Lines Matching +full:short +full:- +full:ping

21 #include "netdissect-stdinc.h"
36 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
38 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
40 * + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
42 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
60 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
62 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
64 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
70 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
76 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
153 { LDP_TLV_FR_LABEL, "Frame-Relay Label" },
164 { LDP_TLV_FR_SESSION_PARM, "Frame-Relay Session Parameters" },
165 { LDP_TLV_FT_SESSION, "Fault-Tolerant Session Parameters" },
174 /* From RFC 4906; should probably be updated to RFC 4447 (e.g., VC -> PW) */
196 /* draft-ietf-pwe3-vccv-04.txt */
204 /* draft-ietf-pwe3-vccv-04.txt */
206 { 0x01, "ICMP Ping" },
207 { 0x02, "LSP Ping" },
219 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
221 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
226 * | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
228 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
257 tlv_len=GET_BE_U_2(ldp_tlv_header->length); in ldp_tlv_print()
263 tlv_type=LDP_MASK_TLV_TYPE(GET_BE_U_2(ldp_tlv_header->type)); in ldp_tlv_print()
272 LDP_MASK_U_BIT(GET_BE_U_2(ldp_tlv_header->type)) ? "continue processing" : "ignore", in ldp_tlv_print()
273 LDP_MASK_F_BIT(GET_BE_U_2(ldp_tlv_header->type)) ? "do" : "don't"); in ldp_tlv_print()
304 tlv_tlen -= LDP_TLV_ADDRESS_LIST_AFNUM_LEN; in ldp_tlv_print()
311 tlv_tlen-=sizeof(nd_ipv4); in ldp_tlv_print()
318 tlv_tlen-=sizeof(nd_ipv6); in ldp_tlv_print()
335 ND_PRINT("\n\t Path Vector Limit %u, Max-PDU length: %u, Receiver Label-Space-ID %s:%u", in ldp_tlv_print()
351 tlv_tlen-=1; in ldp_tlv_print()
360 tlv_tlen-=2; in ldp_tlv_print()
363 if (i == -2) in ldp_tlv_print()
365 if (i == -3) in ldp_tlv_print()
367 else if (i == -1) in ldp_tlv_print()
373 if (i == -2) in ldp_tlv_print()
375 if (i == -3) in ldp_tlv_print()
377 else if (i == -1) in ldp_tlv_print()
400 ND_PRINT(": %s, %scontrol word, group-ID %u, VC-info-length: %u", in ldp_tlv_print()
410 ND_PRINT(": %s, %scontrol word, group-ID %u, VC-ID %u, VC-info-length: %u", in ldp_tlv_print()
421 … vc_info_len -= 4; /* subtract out the VC ID, giving the length of the interface parameters */ in ldp_tlv_print()
425 tlv_tlen-=11; in ldp_tlv_print()
462 print_unknown_data(ndo, tptr+2, "\n\t\t ", vc_info_tlv_len-2); in ldp_tlv_print()
466 vc_info_len -= vc_info_tlv_len; in ldp_tlv_print()
496 …PRINT("\n\t Flags: [%sReconnect, %sSave State, %sAll-Label Protection, %s Checkpoint, %sRe-Le… in ldp_tlv_print()
521 * you are welcome to contribute code ;-) in ldp_tlv_print()
536 if (ndo->ndo_vflag <= 1) in ldp_tlv_print()
555 ndo->ndo_protocol = "ldp"; in ldp_print()
565 len -= processed; in ldp_print()
588 if (GET_BE_U_2(ldp_com_header->version) != LDP_VERSION) { in ldp_pdu_print()
590 (ndo->ndo_vflag < 1) ? "" : "\n\t", in ldp_pdu_print()
591 GET_BE_U_2(ldp_com_header->version)); in ldp_pdu_print()
595 pdu_len = GET_BE_U_2(ldp_com_header->pdu_length); in ldp_pdu_print()
596 if (pdu_len < sizeof(struct ldp_common_header)-4) { in ldp_pdu_print()
597 /* length too short */ in ldp_pdu_print()
598 ND_PRINT("%sLDP, pdu-length: %u (too short, < %zu)", in ldp_pdu_print()
599 (ndo->ndo_vflag < 1) ? "" : "\n\t", in ldp_pdu_print()
601 sizeof(struct ldp_common_header)-4); in ldp_pdu_print()
605 /* print the LSR-ID, label-space & length */ in ldp_pdu_print()
606 ND_PRINT("%sLDP, Label-Space-ID: %s:%u, pdu-length: %u", in ldp_pdu_print()
607 (ndo->ndo_vflag < 1) ? "" : "\n\t", in ldp_pdu_print()
608 GET_IPADDR_STRING(ldp_com_header->lsr_id), in ldp_pdu_print()
609 GET_BE_U_2(ldp_com_header->label_space), in ldp_pdu_print()
612 /* bail out if non-verbose */ in ldp_pdu_print()
613 if (ndo->ndo_vflag < 1) in ldp_pdu_print()
616 /* ok they seem to want to know everything - lets fully decode it */ in ldp_pdu_print()
618 tlen = pdu_len - (sizeof(struct ldp_common_header)-4); /* Type & Length fields not included */ in ldp_pdu_print()
625 msg_len=GET_BE_U_2(ldp_msg_header->length); in ldp_pdu_print()
626 msg_type=LDP_MASK_MSG_TYPE(GET_BE_U_2(ldp_msg_header->type)); in ldp_pdu_print()
628 if (msg_len < sizeof(struct ldp_msg_header)-4) { in ldp_pdu_print()
629 /* length too short */ in ldp_pdu_print()
631 ND_PRINT("\n\t %s Message (0x%04x), length: %u (too short, < %zu)", in ldp_pdu_print()
637 sizeof(struct ldp_msg_header)-4); in ldp_pdu_print()
648 GET_BE_U_4(ldp_msg_header->id), in ldp_pdu_print()
649 LDP_MASK_U_BIT(GET_BE_U_2(ldp_msg_header->type)) ? "continue processing" : "ignore"); in ldp_pdu_print()
652 msg_tlen=msg_len-(sizeof(struct ldp_msg_header)-4); /* Type & Length fields not included */ in ldp_pdu_print()
672 msg_tlen-=processed; in ldp_pdu_print()
679 * you are welcome to contribute code ;-) in ldp_pdu_print()
687 if (ndo->ndo_vflag <= 1) in ldp_pdu_print()
692 if (ndo->ndo_vflag > 1 || hexdump==TRUE) in ldp_pdu_print()
697 tlen -= msg_len+4; in ldp_pdu_print()