Lines Matching refs:tptr
232 ND_TCHECK2(*tptr, minlen); if (tlv_tlen < minlen) goto badtlv;
236 register const u_char *tptr, in ldp_tlv_print() argument
251 ldp_tlv_header = (const struct ldp_tlv_header *)tptr; in ldp_tlv_print()
271 tptr+=sizeof(struct ldp_tlv_header); in ldp_tlv_print()
278 EXTRACT_16BITS(tptr), in ldp_tlv_print()
279 (EXTRACT_16BITS(tptr+2)&0x8000) ? "Targeted" : "Link", in ldp_tlv_print()
280 (EXTRACT_16BITS(tptr+2)&0x4000) ? ", Request for targeted Hellos" : "")); in ldp_tlv_print()
285 ND_PRINT((ndo, "\n\t IPv4 Transport Address: %s", ipaddr_string(ndo, tptr))); in ldp_tlv_print()
290 ND_PRINT((ndo, "\n\t IPv6 Transport Address: %s", ip6addr_string(ndo, tptr))); in ldp_tlv_print()
295 ND_PRINT((ndo, "\n\t Sequence Number: %u", EXTRACT_32BITS(tptr))); in ldp_tlv_print()
300 af = EXTRACT_16BITS(tptr); in ldp_tlv_print()
301 tptr+=LDP_TLV_ADDRESS_LIST_AFNUM_LEN; in ldp_tlv_print()
308 ND_TCHECK2(*tptr, sizeof(struct in_addr)); in ldp_tlv_print()
309 ND_PRINT((ndo, " %s", ipaddr_string(ndo, tptr))); in ldp_tlv_print()
311 tptr+=sizeof(struct in_addr); in ldp_tlv_print()
317 ND_TCHECK2(*tptr, sizeof(struct in6_addr)); in ldp_tlv_print()
318 ND_PRINT((ndo, " %s", ip6addr_string(ndo, tptr))); in ldp_tlv_print()
320 tptr+=sizeof(struct in6_addr); in ldp_tlv_print()
333 EXTRACT_16BITS(tptr), EXTRACT_16BITS(tptr+2), in ldp_tlv_print()
334 (EXTRACT_16BITS(tptr+6)&0x8000) ? "On Demand" : "Unsolicited", in ldp_tlv_print()
335 (EXTRACT_16BITS(tptr+6)&0x4000) ? "Enabled" : "Disabled" in ldp_tlv_print()
341 fec_type = *tptr; in ldp_tlv_print()
346 tptr+=1; in ldp_tlv_print()
354 af = EXTRACT_16BITS(tptr); in ldp_tlv_print()
355 tptr+=LDP_TLV_ADDRESS_LIST_AFNUM_LEN; in ldp_tlv_print()
358 i=decode_prefix4(ndo, tptr, tlv_tlen, buf, sizeof(buf)); in ldp_tlv_print()
370 i=decode_prefix6(ndo, tptr, tlv_tlen, buf, sizeof(buf)); in ldp_tlv_print()
393 vc_info_len = *(tptr+2); in ldp_tlv_print()
397 tok2str(l2vpn_encaps_values, "Unknown", EXTRACT_16BITS(tptr)&0x7fff), in ldp_tlv_print()
398 EXTRACT_16BITS(tptr)&0x8000 ? "" : "no ", in ldp_tlv_print()
399 EXTRACT_32BITS(tptr+3), in ldp_tlv_print()
407 tok2str(l2vpn_encaps_values, "Unknown", EXTRACT_16BITS(tptr)&0x7fff), in ldp_tlv_print()
408 EXTRACT_16BITS(tptr)&0x8000 ? "" : "no ", in ldp_tlv_print()
409 EXTRACT_32BITS(tptr+3), in ldp_tlv_print()
410 EXTRACT_32BITS(tptr+7), in ldp_tlv_print()
420 tptr+=11; in ldp_tlv_print()
425 vc_info_tlv_type = *tptr; in ldp_tlv_print()
426 vc_info_tlv_len = *(tptr+1); in ldp_tlv_print()
439 ND_PRINT((ndo, ": %u", EXTRACT_16BITS(tptr+2))); in ldp_tlv_print()
445 safeputchar(ndo, *(tptr + idx)); in ldp_tlv_print()
450 *(tptr+2), in ldp_tlv_print()
451 bittok2str(ldp_fec_martini_ifparm_vccv_cc_values, "none", *(tptr+2)))); in ldp_tlv_print()
453 *(tptr+3), in ldp_tlv_print()
454 bittok2str(ldp_fec_martini_ifparm_vccv_cv_values, "none", *(tptr+3)))); in ldp_tlv_print()
458 print_unknown_data(ndo, tptr+2, "\n\t\t ", vc_info_tlv_len-2); in ldp_tlv_print()
463 tptr += vc_info_tlv_len; in ldp_tlv_print()
472 ND_PRINT((ndo, "\n\t Label: %u", EXTRACT_32BITS(tptr) & 0xfffff)); in ldp_tlv_print()
477 ui = EXTRACT_32BITS(tptr); in ldp_tlv_print()
478 tptr+=4; in ldp_tlv_print()
483 ui = EXTRACT_32BITS(tptr); in ldp_tlv_print()
484 tptr+=4; in ldp_tlv_print()
491 ft_flags = EXTRACT_16BITS(tptr); in ldp_tlv_print()
498 tptr+=4; in ldp_tlv_print()
499 ui = EXTRACT_32BITS(tptr); in ldp_tlv_print()
502 tptr+=4; in ldp_tlv_print()
503 ui = EXTRACT_32BITS(tptr); in ldp_tlv_print()
510 ND_PRINT((ndo, "\n\t MTU: %u", EXTRACT_16BITS(tptr))); in ldp_tlv_print()
532 print_unknown_data(ndo, tptr, "\n\t ", tlv_tlen); in ldp_tlv_print()
566 const u_char *tptr,*msg_tptr; in ldp_pdu_print() local
606 tptr = pptr + sizeof(const struct ldp_common_header); in ldp_pdu_print()
611 ND_TCHECK2(*tptr, sizeof(struct ldp_msg_header)); in ldp_pdu_print()
613 ldp_msg_header = (const struct ldp_msg_header *)tptr; in ldp_pdu_print()
640 msg_tptr=tptr+sizeof(struct ldp_msg_header); in ldp_pdu_print()
644 ND_TCHECK2(*tptr, msg_len); in ldp_pdu_print()
682 print_unknown_data(ndo, tptr+sizeof(struct ldp_msg_header), "\n\t ", in ldp_pdu_print()
685 tptr += msg_len+4; in ldp_pdu_print()