Lines Matching refs:hbuf

367 	struct ibuf	*buf, *hbuf = NULL, *h2buf = NULL;
514 if (mrt_dump_hdr_rde(&hbuf, MSG_PROTOCOL_BGP4MP, BGP4MP_ENTRY,
518 ibuf_close(&mrt->wbuf, hbuf);
526 ibuf_free(hbuf);
536 struct ibuf *buf, *hbuf = NULL;
566 if (mrt_dump_hdr_rde(&hbuf, MSG_TABLE_DUMP, subtype, len) == -1)
569 if (ibuf_add_n16(hbuf, 0) == -1)
571 if (ibuf_add_n16(hbuf, snum) == -1)
577 if (ibuf_add(hbuf, &addr.v4, sizeof(addr.v4)) == -1)
581 if (ibuf_add(hbuf, &addr.v6, sizeof(addr.v6)) == -1)
585 if (ibuf_add_n8(hbuf, p->pt->prefixlen) == -1)
588 if (ibuf_add_n8(hbuf, 1) == -1) /* state */
591 if (ibuf_add_n32(hbuf, time(NULL) - (getmonotime() -
596 if (ibuf_add(hbuf, &peer->remote_addr.v4,
601 if (ibuf_add(hbuf, &peer->remote_addr.v6,
606 if (ibuf_add_n16(hbuf, peer->short_as) == -1)
608 if (ibuf_add_n16(hbuf, len) == -1)
611 ibuf_close(&mrt->wbuf, hbuf);
618 ibuf_free(hbuf);
699 struct ibuf *hbuf = NULL, *nbuf = NULL, *apbuf = NULL, *pbuf;
747 if (mrt_dump_hdr_rde(&hbuf, MSG_TABLE_DUMP_V2, subtype,
751 if (ibuf_add_n32(hbuf, snum) == -1)
753 if (ibuf_add_buf(hbuf, pbuf) == -1)
755 if (ibuf_add_n16(hbuf, nump) == -1)
758 ibuf_close(&mrt->wbuf, hbuf);
760 hbuf = NULL;
766 if (mrt_dump_hdr_rde(&hbuf, MSG_TABLE_DUMP_V2, apsubtype,
770 if (ibuf_add_n32(hbuf, snum) == -1)
772 if (ibuf_add_buf(hbuf, pbuf) == -1)
774 if (ibuf_add_n16(hbuf, apnump) == -1)
777 ibuf_close(&mrt->wbuf, hbuf);
779 hbuf = NULL;
789 ibuf_free(hbuf);
817 struct ibuf *buf, *hbuf = NULL;
850 if (mrt_dump_hdr_rde(&hbuf, MSG_TABLE_DUMP_V2,
854 ibuf_close(&mrt->wbuf, hbuf);
860 ibuf_free(hbuf);