Lines Matching refs:tptr
184 const uint8_t *tptr, u_int ls_length) in ospf_print_grace_lsa() argument
190 ND_TCHECK2(*tptr, 4); in ospf_print_grace_lsa()
195 tlv_type = EXTRACT_16BITS(tptr); in ospf_print_grace_lsa()
196 tlv_length = EXTRACT_16BITS(tptr+2); in ospf_print_grace_lsa()
197 tptr+=4; in ospf_print_grace_lsa()
216 ND_TCHECK2(*tptr, tlv_length); in ospf_print_grace_lsa()
224 ND_PRINT((ndo, "%us", EXTRACT_32BITS(tptr))); in ospf_print_grace_lsa()
233 tok2str(lsa_opaque_grace_tlv_reason_values, "Unknown", *tptr), in ospf_print_grace_lsa()
234 *tptr)); in ospf_print_grace_lsa()
242 ND_PRINT((ndo, "%s", ipaddr_string(ndo, tptr))); in ospf_print_grace_lsa()
247 if (!print_unknown_data(ndo, tptr, "\n\t ", tlv_length)) in ospf_print_grace_lsa()
257 tptr+=tlv_length; in ospf_print_grace_lsa()
267 const uint8_t *tptr, u_int ls_length) in ospf_print_te_lsa() argument
277 ND_TCHECK2(*tptr, 4); in ospf_print_te_lsa()
282 tlv_type = EXTRACT_16BITS(tptr); in ospf_print_te_lsa()
283 tlv_length = EXTRACT_16BITS(tptr+2); in ospf_print_te_lsa()
284 tptr+=4; in ospf_print_te_lsa()
311 ND_TCHECK2(*tptr, 4); in ospf_print_te_lsa()
312 subtlv_type = EXTRACT_16BITS(tptr); in ospf_print_te_lsa()
313 subtlv_length = EXTRACT_16BITS(tptr+2); in ospf_print_te_lsa()
314 tptr+=4; in ospf_print_te_lsa()
322 ND_TCHECK2(*tptr, subtlv_length); in ospf_print_te_lsa()
325 ND_PRINT((ndo, ", 0x%08x", EXTRACT_32BITS(tptr))); in ospf_print_te_lsa()
330 ipaddr_string(ndo, tptr), in ospf_print_te_lsa()
331 EXTRACT_32BITS(tptr))); in ospf_print_te_lsa()
334 ipaddr_string(ndo, tptr+4), in ospf_print_te_lsa()
335 EXTRACT_32BITS(tptr + 4))); in ospf_print_te_lsa()
339 ND_PRINT((ndo, ", %s", ipaddr_string(ndo, tptr))); in ospf_print_te_lsa()
343 bw.i = EXTRACT_32BITS(tptr); in ospf_print_te_lsa()
348 bw.i = EXTRACT_32BITS(tptr+te_class*4); in ospf_print_te_lsa()
356 tok2str(diffserv_te_bc_values, "unknown", *tptr), in ospf_print_te_lsa()
357 *tptr)); in ospf_print_te_lsa()
360 bw.i = EXTRACT_32BITS(tptr+4+te_class*4); in ospf_print_te_lsa()
367 ND_PRINT((ndo, ", Metric %u", EXTRACT_32BITS(tptr))); in ospf_print_te_lsa()
371 bittok2str(gmpls_link_prot_values, "none", *tptr), in ospf_print_te_lsa()
372 *(tptr + 1))); in ospf_print_te_lsa()
376 tok2str(gmpls_switch_cap_values, "Unknown", *(tptr)))); in ospf_print_te_lsa()
378 tok2str(gmpls_encoding_values, "Unknown", *(tptr + 1)))); in ospf_print_te_lsa()
380 bw.i = EXTRACT_32BITS(tptr+4+(priority_level*4)); in ospf_print_te_lsa()
388 tok2str(lsa_opaque_te_tlv_link_type_sub_tlv_values,"unknown",*tptr), in ospf_print_te_lsa()
389 *tptr)); in ospf_print_te_lsa()
397 bw.i = EXTRACT_32BITS(tptr); in ospf_print_te_lsa()
399 tptr+=4; in ospf_print_te_lsa()
408 if (!print_unknown_data(ndo, tptr, "\n\t\t", subtlv_length)) in ospf_print_te_lsa()
418 tptr+=subtlv_length; in ospf_print_te_lsa()
428 ND_TCHECK2(*tptr, 4); in ospf_print_te_lsa()
429 ND_PRINT((ndo, ", %s", ipaddr_string(ndo, tptr))); in ospf_print_te_lsa()
434 if (!print_unknown_data(ndo, tptr, "\n\t ", tlv_length)) in ospf_print_te_lsa()
443 tptr+=tlv_length; in ospf_print_te_lsa()
560 const uint8_t *tptr; in ospf_print_lsa() local
562 tptr = (uint8_t *)lsap->lsa_un.un_unknown; /* squelch compiler warnings */ in ospf_print_lsa()
737 tptr = (uint8_t *)(&lsap->lsa_un.un_ri_tlv.type); in ospf_print_lsa()
740 ND_TCHECK2(*tptr, 4); in ospf_print_lsa()
745 tlv_type = EXTRACT_16BITS(tptr); in ospf_print_lsa()
746 tlv_length = EXTRACT_16BITS(tptr+2); in ospf_print_lsa()
747 tptr+=4; in ospf_print_lsa()
760 ND_TCHECK2(*tptr, tlv_length); in ospf_print_lsa()
769 … bittok2str(lsa_opaque_ri_tlv_cap_values, "Unknown", EXTRACT_32BITS(tptr)))); in ospf_print_lsa()
773 if (!print_unknown_data(ndo, tptr, "\n\t ", tlv_length)) in ospf_print_lsa()
779 tptr+=tlv_length; in ospf_print_lsa()