Lines Matching refs:s
146 std::string s; in do_section() local
153 if (errno != ENODEV) StringAppendF(&s, "ns_parserr: %s", strerror(errno)); in do_section()
154 LOG(VERBOSE) << s; in do_section()
159 StringAppendF(&s, ";; %s SECTION:\n", p_section(section, opcode)); in do_section()
162 StringAppendF(&s, ";;\t%s, type = %s, class = %s\n", ns_rr_name(rr), in do_section()
169 StringAppendF(&s, "; EDNS: version: %" PRIu32 ", udp=%u, flags=%" PRIu32 "\n", in do_section()
179 StringAppendF(&s, "; NSID: "); in do_section()
181 StringAppendF(&s, "; NSID\n"); in do_section()
183 StringAppendF(&s, "; NSID: "); in do_section()
185 StringAppendF(&s, "%02x ", cp[i]); in do_section()
187 StringAppendF(&s, " ("); in do_section()
189 StringAppendF(&s, "%c", isprint(cp[i]) ? cp[i] : '.'); in do_section()
191 StringAppendF(&s, ")\n"); in do_section()
195 StringAppendF(&s, "; OPT=%u\n", optcode); in do_section()
197 StringAppendF(&s, "; OPT=%u: ", optcode); in do_section()
199 StringAppendF(&s, "%02x ", cp[i]); in do_section()
201 StringAppendF(&s, " ("); in do_section()
203 StringAppendF(&s, "%c", isprint(cp[i]) ? cp[i] : '.'); in do_section()
205 StringAppendF(&s, ")\n"); in do_section()
220 StringAppendF(&s, "buflen over 131072"); in do_section()
221 PLOG(VERBOSE) << s; in do_section()
225 StringAppendF(&s, "ns_sprintrr failed"); in do_section()
226 PLOG(VERBOSE) << s; in do_section()
229 StringAppendF(&s, ";; %s\n", buf.get()); in do_section()
261 std::string s; in res_pquery() local
262 StringAppendF(&s, ";; ->>HEADER<<- opcode: %s, status: %s, id: %d\n", _res_opcodes[opcode], in res_pquery()
264 StringAppendF(&s, ";; flags:"); in res_pquery()
265 if (ns_msg_getflag(handle, ns_f_qr)) StringAppendF(&s, " qr"); in res_pquery()
266 if (ns_msg_getflag(handle, ns_f_aa)) StringAppendF(&s, " aa"); in res_pquery()
267 if (ns_msg_getflag(handle, ns_f_tc)) StringAppendF(&s, " tc"); in res_pquery()
268 if (ns_msg_getflag(handle, ns_f_rd)) StringAppendF(&s, " rd"); in res_pquery()
269 if (ns_msg_getflag(handle, ns_f_ra)) StringAppendF(&s, " ra"); in res_pquery()
270 if (ns_msg_getflag(handle, ns_f_z)) StringAppendF(&s, " ??"); in res_pquery()
271 if (ns_msg_getflag(handle, ns_f_ad)) StringAppendF(&s, " ad"); in res_pquery()
272 if (ns_msg_getflag(handle, ns_f_cd)) StringAppendF(&s, " cd"); in res_pquery()
273 StringAppendF(&s, "; %s: %d", p_section(ns_s_qd, (int)opcode), qdcount); in res_pquery()
274 StringAppendF(&s, ", %s: %d", p_section(ns_s_an, (int)opcode), ancount); in res_pquery()
275 StringAppendF(&s, ", %s: %d", p_section(ns_s_ns, (int)opcode), nscount); in res_pquery()
276 StringAppendF(&s, ", %s: %d", p_section(ns_s_ar, (int)opcode), arcount); in res_pquery()
278 LOG(VERBOSE) << s; in res_pquery()