• Home
  • Raw
  • Download

Lines Matching refs:tlv_ptr

226     } tlv_ptr;  in eigrp_print()  local
310 tlv_ptr.eigrp_tlv_general_parm = (const struct eigrp_tlv_general_parm_t *)tlv_tptr; in eigrp_print()
311 if (tlv_tlen < sizeof(*tlv_ptr.eigrp_tlv_general_parm)) { in eigrp_print()
313 … (u_int) (sizeof(struct eigrp_tlv_header) + sizeof(*tlv_ptr.eigrp_tlv_general_parm)))); in eigrp_print()
318 EXTRACT_16BITS(tlv_ptr.eigrp_tlv_general_parm->holdtime), in eigrp_print()
319 tlv_ptr.eigrp_tlv_general_parm->k1, in eigrp_print()
320 tlv_ptr.eigrp_tlv_general_parm->k2, in eigrp_print()
321 tlv_ptr.eigrp_tlv_general_parm->k3, in eigrp_print()
322 tlv_ptr.eigrp_tlv_general_parm->k4, in eigrp_print()
323 tlv_ptr.eigrp_tlv_general_parm->k5)); in eigrp_print()
327 tlv_ptr.eigrp_tlv_sw_version = (const struct eigrp_tlv_sw_version_t *)tlv_tptr; in eigrp_print()
328 if (tlv_tlen < sizeof(*tlv_ptr.eigrp_tlv_sw_version)) { in eigrp_print()
330 … (u_int) (sizeof(struct eigrp_tlv_header) + sizeof(*tlv_ptr.eigrp_tlv_sw_version)))); in eigrp_print()
335 tlv_ptr.eigrp_tlv_sw_version->ios_major, in eigrp_print()
336 tlv_ptr.eigrp_tlv_sw_version->ios_minor, in eigrp_print()
337 tlv_ptr.eigrp_tlv_sw_version->eigrp_major, in eigrp_print()
338 tlv_ptr.eigrp_tlv_sw_version->eigrp_minor)); in eigrp_print()
342 tlv_ptr.eigrp_tlv_ip_int = (const struct eigrp_tlv_ip_int_t *)tlv_tptr; in eigrp_print()
343 if (tlv_tlen < sizeof(*tlv_ptr.eigrp_tlv_ip_int)) { in eigrp_print()
345 (u_int) (sizeof(struct eigrp_tlv_header) + sizeof(*tlv_ptr.eigrp_tlv_ip_int)))); in eigrp_print()
349 bit_length = tlv_ptr.eigrp_tlv_ip_int->plen; in eigrp_print()
356 memcpy(prefix,&tlv_ptr.eigrp_tlv_ip_int->destination,byte_length); in eigrp_print()
361 if (EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_ip_int->nexthop) == 0) in eigrp_print()
364 ND_PRINT((ndo, "%s",ipaddr_string(ndo, &tlv_ptr.eigrp_tlv_ip_int->nexthop))); in eigrp_print()
367 (EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_ip_int->delay)/100), in eigrp_print()
368 EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_ip_int->bandwidth), in eigrp_print()
369 EXTRACT_24BITS(&tlv_ptr.eigrp_tlv_ip_int->mtu), in eigrp_print()
370 tlv_ptr.eigrp_tlv_ip_int->hopcount, in eigrp_print()
371 tlv_ptr.eigrp_tlv_ip_int->reliability, in eigrp_print()
372 tlv_ptr.eigrp_tlv_ip_int->load)); in eigrp_print()
376 tlv_ptr.eigrp_tlv_ip_ext = (const struct eigrp_tlv_ip_ext_t *)tlv_tptr; in eigrp_print()
377 if (tlv_tlen < sizeof(*tlv_ptr.eigrp_tlv_ip_ext)) { in eigrp_print()
379 (u_int) (sizeof(struct eigrp_tlv_header) + sizeof(*tlv_ptr.eigrp_tlv_ip_ext)))); in eigrp_print()
383 bit_length = tlv_ptr.eigrp_tlv_ip_ext->plen; in eigrp_print()
390 memcpy(prefix,&tlv_ptr.eigrp_tlv_ip_ext->destination,byte_length); in eigrp_print()
395 if (EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_ip_ext->nexthop) == 0) in eigrp_print()
398 ND_PRINT((ndo, "%s",ipaddr_string(ndo, &tlv_ptr.eigrp_tlv_ip_ext->nexthop))); in eigrp_print()
401 ipaddr_string(ndo, tlv_ptr.eigrp_tlv_ip_ext->origin_router), in eigrp_print()
402 EXTRACT_32BITS(tlv_ptr.eigrp_tlv_ip_ext->origin_as), in eigrp_print()
403 tok2str(eigrp_ext_proto_id_values,"unknown",tlv_ptr.eigrp_tlv_ip_ext->proto_id), in eigrp_print()
404 tlv_ptr.eigrp_tlv_ip_ext->flags, in eigrp_print()
405 EXTRACT_32BITS(tlv_ptr.eigrp_tlv_ip_ext->tag), in eigrp_print()
406 EXTRACT_32BITS(tlv_ptr.eigrp_tlv_ip_ext->metric))); in eigrp_print()
409 (EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_ip_ext->delay)/100), in eigrp_print()
410 EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_ip_ext->bandwidth), in eigrp_print()
411 EXTRACT_24BITS(&tlv_ptr.eigrp_tlv_ip_ext->mtu), in eigrp_print()
412 tlv_ptr.eigrp_tlv_ip_ext->hopcount, in eigrp_print()
413 tlv_ptr.eigrp_tlv_ip_ext->reliability, in eigrp_print()
414 tlv_ptr.eigrp_tlv_ip_ext->load)); in eigrp_print()
418 tlv_ptr.eigrp_tlv_at_cable_setup = (const struct eigrp_tlv_at_cable_setup_t *)tlv_tptr; in eigrp_print()
419 if (tlv_tlen < sizeof(*tlv_ptr.eigrp_tlv_at_cable_setup)) { in eigrp_print()
421 … (u_int) (sizeof(struct eigrp_tlv_header) + sizeof(*tlv_ptr.eigrp_tlv_at_cable_setup)))); in eigrp_print()
426 EXTRACT_16BITS(&tlv_ptr.eigrp_tlv_at_cable_setup->cable_start), in eigrp_print()
427 EXTRACT_16BITS(&tlv_ptr.eigrp_tlv_at_cable_setup->cable_end), in eigrp_print()
428 EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_at_cable_setup->router_id))); in eigrp_print()
432 tlv_ptr.eigrp_tlv_at_int = (const struct eigrp_tlv_at_int_t *)tlv_tptr; in eigrp_print()
433 if (tlv_tlen < sizeof(*tlv_ptr.eigrp_tlv_at_int)) { in eigrp_print()
435 (u_int) (sizeof(struct eigrp_tlv_header) + sizeof(*tlv_ptr.eigrp_tlv_at_int)))); in eigrp_print()
440 EXTRACT_16BITS(&tlv_ptr.eigrp_tlv_at_int->cable_start), in eigrp_print()
441 EXTRACT_16BITS(&tlv_ptr.eigrp_tlv_at_int->cable_end))); in eigrp_print()
443 if (EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_at_int->nexthop) == 0) in eigrp_print()
447 EXTRACT_16BITS(&tlv_ptr.eigrp_tlv_at_int->nexthop), in eigrp_print()
448 EXTRACT_16BITS(&tlv_ptr.eigrp_tlv_at_int->nexthop[2]))); in eigrp_print()
451 (EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_at_int->delay)/100), in eigrp_print()
452 EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_at_int->bandwidth), in eigrp_print()
453 EXTRACT_24BITS(&tlv_ptr.eigrp_tlv_at_int->mtu), in eigrp_print()
454 tlv_ptr.eigrp_tlv_at_int->hopcount, in eigrp_print()
455 tlv_ptr.eigrp_tlv_at_int->reliability, in eigrp_print()
456 tlv_ptr.eigrp_tlv_at_int->load)); in eigrp_print()
460 tlv_ptr.eigrp_tlv_at_ext = (const struct eigrp_tlv_at_ext_t *)tlv_tptr; in eigrp_print()
461 if (tlv_tlen < sizeof(*tlv_ptr.eigrp_tlv_at_ext)) { in eigrp_print()
463 (u_int) (sizeof(struct eigrp_tlv_header) + sizeof(*tlv_ptr.eigrp_tlv_at_ext)))); in eigrp_print()
468 EXTRACT_16BITS(&tlv_ptr.eigrp_tlv_at_ext->cable_start), in eigrp_print()
469 EXTRACT_16BITS(&tlv_ptr.eigrp_tlv_at_ext->cable_end))); in eigrp_print()
471 if (EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_at_ext->nexthop) == 0) in eigrp_print()
475 EXTRACT_16BITS(&tlv_ptr.eigrp_tlv_at_ext->nexthop), in eigrp_print()
476 EXTRACT_16BITS(&tlv_ptr.eigrp_tlv_at_ext->nexthop[2]))); in eigrp_print()
479 EXTRACT_32BITS(tlv_ptr.eigrp_tlv_at_ext->origin_router), in eigrp_print()
480 EXTRACT_32BITS(tlv_ptr.eigrp_tlv_at_ext->origin_as), in eigrp_print()
481 tok2str(eigrp_ext_proto_id_values,"unknown",tlv_ptr.eigrp_tlv_at_ext->proto_id), in eigrp_print()
482 tlv_ptr.eigrp_tlv_at_ext->flags, in eigrp_print()
483 EXTRACT_32BITS(tlv_ptr.eigrp_tlv_at_ext->tag), in eigrp_print()
484 EXTRACT_16BITS(tlv_ptr.eigrp_tlv_at_ext->metric))); in eigrp_print()
487 (EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_at_ext->delay)/100), in eigrp_print()
488 EXTRACT_32BITS(&tlv_ptr.eigrp_tlv_at_ext->bandwidth), in eigrp_print()
489 EXTRACT_24BITS(&tlv_ptr.eigrp_tlv_at_ext->mtu), in eigrp_print()
490 tlv_ptr.eigrp_tlv_at_ext->hopcount, in eigrp_print()
491 tlv_ptr.eigrp_tlv_at_ext->reliability, in eigrp_print()
492 tlv_ptr.eigrp_tlv_at_ext->load)); in eigrp_print()