Lines Matching refs:mDNS_snprintf
165 mDNS_snprintf(buffer, sizeof(buffer), "(%d)", rrtype); in DNSTypeName()
179 …mDNSu32 length = mDNS_snprintf(buffer, MaxMsg-1, "%4d %##s %s ", rr->rdlength, rr->name->c, DNSTyp… in GetRRDisplayString_rdb()
181 …if (!rr->rdlength) { mDNS_snprintf(buffer+length, RemSpc, "<< ZERO RDATA LENGTH >>"); return(buffe… in GetRRDisplayString_rdb()
185 case kDNSType_A: mDNS_snprintf(buffer+length, RemSpc, "%.4a", &rd->ipv4); break; in GetRRDisplayString_rdb()
189 case kDNSType_PTR: mDNS_snprintf(buffer+length, RemSpc, "%##s", rd->name.c); break; in GetRRDisplayString_rdb()
191 case kDNSType_SOA: mDNS_snprintf(buffer+length, RemSpc, "%##s %##s %d %d %d %d %d", in GetRRDisplayString_rdb()
201 length += mDNS_snprintf(buffer+length, RemSpc, "%s%#s", t > rd->txt.c ? "¦" : "", t); in GetRRDisplayString_rdb()
206 case kDNSType_AAAA: mDNS_snprintf(buffer+length, RemSpc, "%.16a", &rd->ipv6); break; in GetRRDisplayString_rdb()
207 case kDNSType_SRV: mDNS_snprintf(buffer+length, RemSpc, "%u %u %u %##s", in GetRRDisplayString_rdb()
213 length += mDNS_snprintf(buffer+length, RemSpc, "Max %d", rr->rrclass); in GetRRDisplayString_rdb()
219 length += mDNS_snprintf(buffer+length, RemSpc, " Vers %d", opt->u.llq.vers); in GetRRDisplayString_rdb()
220 length += mDNS_snprintf(buffer+length, RemSpc, " Op %d", opt->u.llq.llqOp); in GetRRDisplayString_rdb()
221 length += mDNS_snprintf(buffer+length, RemSpc, " Err/Port %d", opt->u.llq.err); in GetRRDisplayString_rdb()
222 …length += mDNS_snprintf(buffer+length, RemSpc, " ID %08X%08X", opt->u.llq.id.l[0], opt->u.llq.id.l… in GetRRDisplayString_rdb()
223 length += mDNS_snprintf(buffer+length, RemSpc, " Lease %d", opt->u.llq.llqlease); in GetRRDisplayString_rdb()
226 length += mDNS_snprintf(buffer+length, RemSpc, " Lease %d", opt->u.updatelease); in GetRRDisplayString_rdb()
229 length += mDNS_snprintf(buffer+length, RemSpc, " Vers %d", opt->u.owner.vers); in GetRRDisplayString_rdb()
230 …length += mDNS_snprintf(buffer+length, RemSpc, " Seq %3d", (mDNSu8)opt->u.owner.seq); // Display a… in GetRRDisplayString_rdb()
231 length += mDNS_snprintf(buffer+length, RemSpc, " MAC %.6a", opt->u.owner.HMAC.b); in GetRRDisplayString_rdb()
234 length += mDNS_snprintf(buffer+length, RemSpc, " I-MAC %.6a", opt->u.owner.IMAC.b); in GetRRDisplayString_rdb()
236 … length += mDNS_snprintf(buffer+length, RemSpc, " Password %.6a", opt->u.owner.password.b); in GetRRDisplayString_rdb()
240 length += mDNS_snprintf(buffer+length, RemSpc, " Unknown %d", opt->opt); in GetRRDisplayString_rdb()
251 length += mDNS_snprintf(buffer+length, RemSpc, "%s ", DNSTypeName(i)); in GetRRDisplayString_rdb()
255 default: mDNS_snprintf(buffer+length, RemSpc, "RDLen %d: %s", rr->rdlength, rd->data); in GetRRDisplayString_rdb()
2548 …if (!status) tbuffer[mDNS_snprintf(tbuffer, sizeof(tbuffer), sent ? "Sent" : "Received" … in DumpPacket()
2549 …else tbuffer[mDNS_snprintf(tbuffer, sizeof(tbuffer), "ERROR %d %sing", status, sent ? "Sen… in DumpPacket()
2550 if (sent) sbuffer[mDNS_snprintf(sbuffer, sizeof(sbuffer), "port " )] = 0; in DumpPacket()
2551 else sbuffer[mDNS_snprintf(sbuffer, sizeof(sbuffer), "%#a:", srcaddr)] = 0; in DumpPacket()
2553 dbuffer[mDNS_snprintf(dbuffer, sizeof(dbuffer), " to %#a:%d", dstaddr, mDNSVal16(dstport))] = 0; in DumpPacket()
2995 i = mDNS_snprintf(mDNS_VACB, sizeof(mDNS_VACB), "«ZERO ADDRESS»"); in mDNS_vsnprintf()
2998 case 4: i = mDNS_snprintf(mDNS_VACB, sizeof(mDNS_VACB), "%d.%d.%d.%d", in mDNS_vsnprintf()
3000 case 6: i = mDNS_snprintf(mDNS_VACB, sizeof(mDNS_VACB), "%02X:%02X:%02X:%02X:%02X:%02X", in mDNS_vsnprintf()
3002 case 16: i = mDNS_snprintf(mDNS_VACB, sizeof(mDNS_VACB), in mDNS_vsnprintf()
3006 default: i = mDNS_snprintf(mDNS_VACB, sizeof(mDNS_VACB), "%s", "<< ERROR: Must specify" in mDNS_vsnprintf()
3081 … { s += mDNS_snprintf(s, mDNS_VACB_Remain(s), "<<INVALID LABEL LENGTH %u>>", *a); break; } in mDNS_vsnprintf()
3083 { s += mDNS_snprintf(s, mDNS_VACB_Remain(s), "<<NAME TOO LONG>>"); break; } in mDNS_vsnprintf()
3087 s += mDNS_snprintf(s, mDNS_VACB_Remain(s), "%s.", buf); in mDNS_vsnprintf()
3107 … i = mDNS_snprintf(mDNS_VACB, sizeof(mDNS_VACB), "<<UNKNOWN FORMAT CONVERSION CODE %%%c>>", c); in mDNS_vsnprintf()
3143 mDNSexport mDNSu32 mDNS_snprintf(char *sbuffer, mDNSu32 buflen, const char *fmt, ...) in mDNS_snprintf() function