Lines Matching defs:lb
764 add_log_str(isc_buffer_t *lb, const char *str, unsigned int str_len) {
767 isc_buffer_availableregion(lb, ®ion);
774 isc_buffer_add(lb, str_len);
789 isc_buffer_t lb;
801 isc_buffer_init(&lb, log_buf, log_buf_len-1);
804 add_log_str(&lb, str1, strlen(str1));
806 add_log_str(&lb, str2, strlen(str2));
812 ADD_LOG_CSTR(&lb, "drop ");
815 ADD_LOG_CSTR(&lb, "slip ");
826 ADD_LOG_CSTR(&lb, "referral ");
829 ADD_LOG_CSTR(&lb, "NODATA ");
832 ADD_LOG_CSTR(&lb, "NXDOMAIN ");
836 ADD_LOG_CSTR(&lb, "error ");
839 add_log_str(&lb, rstr, strlen(rstr));
840 ADD_LOG_CSTR(&lb, " error ");
844 ADD_LOG_CSTR(&lb, "all ");
851 ADD_LOG_CSTR(&lb, "responses to ");
853 ADD_LOG_CSTR(&lb, "response to ");
866 msg_result = isc_netaddr_totext(&cidr, &lb);
868 ADD_LOG_CSTR(&lb, "?");
869 add_log_str(&lb, strbuf, strlen(strbuf));
913 ADD_LOG_CSTR(&lb, " for ");
914 (void)dns_name_totext(qname, ISC_TRUE, &lb);
916 ADD_LOG_CSTR(&lb, " for (?)");
919 ADD_LOG_CSTR(&lb, " ");
920 (void)dns_rdataclass_totext(e->key.s.qclass, &lb);
922 ADD_LOG_CSTR(&lb, " ");
923 (void)dns_rdatatype_totext(e->key.s.qtype, &lb);
928 add_log_str(&lb, strbuf, strlen(strbuf));
934 log_buf[isc_buffer_usedlength(&lb)] = '\0';