• Home
  • Raw
  • Download

Lines Matching refs:mprintf

144 mDNSlocal mDNSu32 mprintf(const char *format, ...) IS_A_PRINTF_STYLE_FUNCTION(1,2);
145 mDNSlocal mDNSu32 mprintf(const char *format, ...) in mprintf() function
360 …if (list->num) mprintf("\n%-25s%s%s\n", "Source Address", OPBanner, " Pkts Query LegacyQ R… in ShowSortedHostList()
363 int len = mprintf("%#-25a", &e->addr); in ShowSortedHostList()
364 if (len > 25) mprintf("\n%25s", ""); in ShowSortedHostList()
365 mprintf("%8lu %8lu %8lu %8lu %8lu %8lu %8lu", e->totalops, in ShowSortedHostList()
369 mprintf(" %8lu %8lu %8lu %8lu", in ShowSortedHostList()
371 if (e->pkts[HostPkt_B]) mprintf("Bad: %8lu", e->pkts[HostPkt_B]); in ShowSortedHostList()
372 mprintf("\n"); in ShowSortedHostList()
376 mprintf("%##-45s %#-14s %#s\n", e->hostname.c, e->HIHardware.c, e->HISoftware.c); in ShowSortedHostList()
454 if (i==0) mprintf("%-25s%s\n", "Service Type", OPBanner); in printstats()
455 mprintf("%##-25s%8d %8d %8d %8d %8d %8d %8d\n", m->srvtype.c, m->totalops, m->stat[OP_probe], in printstats()
486mprintf("\n%d:%02d:%02d.%06d Interface %d/%s\n", tm.tm_hour, tm.tm_min, tm.tm_sec, tv.tv_usec, ind… in DisplayPacketHeader()
488 mprintf("%#-16a %s Q:%3d Ans:%3d Auth:%3d Add:%3d Size:%5d bytes", in DisplayPacketHeader()
491 if (msg->h.id.NotAnInteger) mprintf(" ID:%u", mDNSVal16(msg->h.id)); in DisplayPacketHeader()
493 if (!mDNSAddrIsDNSMulticast(dstaddr)) mprintf(" To: %#a", dstaddr); in DisplayPacketHeader()
497 if (msg->h.flags.b[0] & kDNSFlag0_QR_Response) mprintf(" Truncated"); in DisplayPacketHeader()
498 …else mprintf(" Truncated (KA list continues in next pa… in DisplayPacketHeader()
500 mprintf("\n"); in DisplayPacketHeader()
512 …int n = mprintf("%#-16a %-5s %-5s%5lu %##s -> ", srcaddr, op, DNSTypeName(pktrr->rrtype), pktrr->r… in DisplayResourceRecord()
514 …if (pktrr->RecordType == kDNSRecordTypePacketNegative) { mprintf("**** ERROR: FAILED TO READ RDATA… in DisplayResourceRecord()
520 case kDNSType_A: n += mprintf("%.4a", &rd->ipv4); break; in DisplayResourceRecord()
521 case kDNSType_PTR: n += mprintf("%##.*s", MaxWidth - n, rd->name.c); break; in DisplayResourceRecord()
545 n += mprintf("%.*s", MaxWidth - n, buffer); in DisplayResourceRecord()
547 case kDNSType_AAAA: n += mprintf("%.16a", &rd->ipv6); break; in DisplayResourceRecord()
548 case kDNSType_SRV: n += mprintf("%##s:%d", rd->srv.target.c, mDNSVal16(rd->srv.port)); break; in DisplayResourceRecord()
556 n += mprintf("%.*s", MaxWidth - n, b + striplen); in DisplayResourceRecord()
562 n += mprintf("%s ", DNSTypeName(i)); in DisplayResourceRecord()
581 n += mprintf("%.*s", MaxWidth - n, buffer); in DisplayResourceRecord()
585 mprintf("\n"); in DisplayResourceRecord()
594 if (&ptr[i] < end) mprintf("%02X ", ptr[i]); in HexDump()
595 else mprintf(" "); in HexDump()
597 if (&ptr[i] < end) mprintf("%c", ptr[i] <= ' ' || ptr[i] >= 126 ? '.' : ptr[i]); in HexDump()
599 mprintf("\n"); in HexDump()
605 mprintf("%#-16a **** ERROR: FAILED TO READ %s **** \n", srcaddr, msg); in DisplayError()
648 mprintf("%#-16a %-5s %-5s %##s\n", srcaddr, ptype, DNSTypeName(q.qtype), q.qname.c); in DisplayQuery()
706mprintf("%#-16a (?) **** ERROR: SHOULD NOT HAVE Q IN mDNS RESPONSE **** %-5s %##s\n", srcaddr, D… in DisplayResponse()
708 mprintf("%#-16a (Q) %-5s %##s\n", srcaddr, DNSTypeName(q.qtype), q.qname.c); in DisplayResponse()
736 mprintf("%#-16a (?) **** ERROR: SHOULD NOT HAVE AUTHORITY IN mDNS RESPONSE **** %-5s %##s\n", in DisplayResponse()
804 if (QR_OP == StdQ) mprintf("Unicast query from %#a\n", srcaddr); in mDNSCoreReceive()
884 mprintf("\n\n"); in mDNSNetMonitor()
886 mprintf("Started %3d:%02d:%02d.%06d\n", tm.tm_hour, tm.tm_min, tm.tm_sec, tv_start.tv_usec); in mDNSNetMonitor()
888 mprintf("End %3d:%02d:%02d.%06d\n", tm.tm_hour, tm.tm_min, tm.tm_sec, tv_end.tv_usec); in mDNSNetMonitor()
889 mprintf("Captured for %3d:%02d:%02d.%06d\n", h, m, s, tv_interval.tv_usec); in mDNSNetMonitor()
892 mprintf("Unique source addresses seen on network:"); in mDNSNetMonitor()
893 if (IPv4HostList.num) mprintf(" %ld (IPv4)", IPv4HostList.num); in mDNSNetMonitor()
894 if (IPv6HostList.num) mprintf(" %ld (IPv6)", IPv6HostList.num); in mDNSNetMonitor()
895 if (!IPv4HostList.num && !IPv6HostList.num) mprintf(" None"); in mDNSNetMonitor()
896 mprintf("\n"); in mDNSNetMonitor()
898 mprintf("\n"); in mDNSNetMonitor()
899mprintf("Modern Query Packets: %7d (avg%5d/min)\n", NumPktQ, NumPktQ *… in mDNSNetMonitor()
900mprintf("Legacy Query Packets: %7d (avg%5d/min)\n", NumPktL, NumPktL *… in mDNSNetMonitor()
901mprintf("Multicast Response Packets: %7d (avg%5d/min)\n", NumPktR, NumPktR *… in mDNSNetMonitor()
902mprintf("Total Multicast Packets: %7d (avg%5d/min)\n", TotPkt, TotPkt *… in mDNSNetMonitor()
903 mprintf("\n"); in mDNSNetMonitor()
904mprintf("Total New Service Probes: %7d (avg%5d/min)\n", NumProbes, NumProbes *… in mDNSNetMonitor()
905mprintf("Total Goodbye Announcements: %7d (avg%5d/min)\n", NumGoodbyes, NumGoodbyes *… in mDNSNetMonitor()
906mprintf("Total Query Questions: %7d (avg%5d/min)\n", NumQuestions, NumQuestions *… in mDNSNetMonitor()
907mprintf("Total Queries from Legacy Clients:%7d (avg%5d/min)\n", NumLegacy, NumLegacy *… in mDNSNetMonitor()
908mprintf("Total Answers/Announcements: %7d (avg%5d/min)\n", NumAnswers, NumAnswers *… in mDNSNetMonitor()
909mprintf("Total Additional Records: %7d (avg%5d/min)\n", NumAdditionals, NumAdditionals *… in mDNSNetMonitor()
910 mprintf("\n"); in mDNSNetMonitor()