• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/quagga/ospfd/

Lines Matching refs:header

317   OspfMplsTE.router_addr.header.type   = htons (TE_TLV_ROUTER_ADDR);
318 OspfMplsTE.router_addr.header.length = htons (sizeof (ipv4));
330 if (ntohs (lp->link_type.header.type) != 0)
331 length += TLV_SIZE (&lp->link_type.header);
334 if (ntohs (lp->link_id.header.type) != 0)
335 length += TLV_SIZE (&lp->link_id.header);
348 if (ntohs (lp->te_metric.header.type) != 0)
349 length += TLV_SIZE (&lp->te_metric.header);
352 if (ntohs (lp->max_bw.header.type) != 0)
353 length += TLV_SIZE (&lp->max_bw.header);
356 if (ntohs (lp->max_rsv_bw.header.type) != 0)
357 length += TLV_SIZE (&lp->max_rsv_bw.header);
360 if (ntohs (lp->unrsv_bw.header.type) != 0)
361 length += TLV_SIZE (&lp->unrsv_bw.header);
364 if (ntohs (lp->rsc_clsclr.header.type) != 0)
365 length += TLV_SIZE (&lp->rsc_clsclr.header);
367 lp->link_header.header.type = htons (TE_TLV_LINK);
368 lp->link_header.header.length = htons (length);
376 lp->link_type.header.type = htons (TE_LINK_SUBTLV_LINK_TYPE);
377 lp->link_type.header.length = htons (sizeof (lp->link_type.link_type.value));
390 lp->link_type.header.type = htons (0);
402 lp->link_id.header.type = htons (TE_LINK_SUBTLV_LINK_ID);
403 lp->link_id.header.length = htons (sizeof (lp->link_id.value));
436 lp->link_id.header.type = htons (0);
452 lp->te_metric.header.type = htons (TE_LINK_SUBTLV_TE_METRIC);
453 lp->te_metric.header.length = htons (sizeof (lp->te_metric.value));
461 lp->max_bw.header.type = htons (TE_LINK_SUBTLV_MAX_BW);
462 lp->max_bw.header.length = htons (sizeof (lp->max_bw.value));
470 lp->max_rsv_bw.header.type = htons (TE_LINK_SUBTLV_MAX_RSV_BW);
471 lp->max_rsv_bw.header.length = htons (sizeof (lp->max_rsv_bw.value));
480 lp->unrsv_bw.header.type = htons (TE_LINK_SUBTLV_UNRSV_BW);
481 lp->unrsv_bw.header.length = htons (sizeof (lp->unrsv_bw.value));
489 lp->rsc_clsclr.header.type = htons (TE_LINK_SUBTLV_RSC_CLSCLR);
490 lp->rsc_clsclr.header.length = htons (sizeof (lp->rsc_clsclr.value));
533 if (ntohs (OspfMplsTE.router_addr.header.type) == 0)
536 if (ntohs (lp->link_type.header.type) == 0)
539 if (ntohs (lp->link_id.header.type) == 0)
658 if ((ntohs (old_type.header.type) != ntohs (lp->link_type.header.type)
660 || (ntohs (old_id.header.type) != ntohs (lp->link_id.header.type)
670 lp->link_type.header.type = htons (0);
671 lp->link_id.header.type = htons (0);
703 struct te_tlv_header *tlvh = &OspfMplsTE.router_addr.header;
715 struct te_tlv_header *tlvh = &lp->link_type.header;
727 struct te_tlv_header *tlvh = &lp->link_id.header;
763 struct te_tlv_header *tlvh = &lp->te_metric.header;
775 struct te_tlv_header *tlvh = &lp->max_bw.header;
787 struct te_tlv_header *tlvh = &lp->max_rsv_bw.header;
799 struct te_tlv_header *tlvh = &lp->unrsv_bw.header;
811 struct te_tlv_header *tlvh = &lp->rsc_clsclr.header;
824 build_tlv_header (s, &lp->link_header.header);
887 /* Set opaque-LSA header fields. */
1138 vty_out (vty, " Link: %u octets of data%s", ntohs (top->header.length), VTY_NEWLINE);
1140 zlog_debug (" Link: %u octets of data", ntohs (top->header.length));
1547 if (ntohs (ra->header.type) == 0
1610 if (ntohs (lp->te_metric.header.type) == 0
1652 if (ntohs (lp->max_bw.header.type) == 0
1694 if (ntohs (lp->max_rsv_bw.header.type) == 0
1745 if (ntohs (lp->unrsv_bw.header.type) == 0
1786 if (ntohs (lp->rsc_clsclr.header.type) == 0
1815 if (ntohs (OspfMplsTE.router_addr.header.type) != 0)
1816 show_vty_router_addr (vty, &OspfMplsTE.router_addr.header);
1836 show_vty_link_subtlv_link_type (vty, &lp->link_type.header);
1837 show_vty_link_subtlv_link_id (vty, &lp->link_id.header);
1844 show_vty_link_subtlv_te_metric (vty, &lp->te_metric.header);
1846 show_vty_link_subtlv_max_bw (vty, &lp->max_bw.header);
1847 show_vty_link_subtlv_max_rsv_bw (vty, &lp->max_rsv_bw.header);
1848 show_vty_link_subtlv_unrsv_bw (vty, &lp->unrsv_bw.header);
1849 show_vty_link_subtlv_rsc_clsclr (vty, &lp->rsc_clsclr.header);