Lines Matching defs:query
79 // Query and Answer operations are actually subdivided into two classes:
80 // Browse query/answer and
81 // Resolve query/answer
85 // The "Browse" variants of query/answer
90 // The "Resolve" variants of query/answer
133 static int NumPktQ, NumPktL, NumPktR, NumPktB; // Query/Legacy/Response/Bad
164 HostPkt_Q = 0, // Query
165 HostPkt_L = 1, // Legacy Query
300 DNSMessage query;
301 mDNSu8 *qptr = query.data;
302 const mDNSu8 *const limit = query.data + sizeof(query.data);
304 InitializeDNSMessage(&query.h, id, QueryFlags);
305 qptr = putQuestion(&query, qptr, limit, name, rrtype, kDNSClass_IN);
312 // We try the first query using unicast, but if that doesn't work we try again via multicast.
320 InterfaceID = mDNSInterface_Any; // Send query from our unicast reply socket
323 mDNSSendDNSMessage(&mDNSStorage, &query, qptr, InterfaceID, mDNSNULL, target, MulticastDNSPort, mDNSNULL, mDNSNULL);
331 // If we've done a query in the last second, give the host a chance to reply before trying again
360 if (list->num) mprintf("\n%-25s%s%s\n", "Source Address", OPBanner, " Pkts Query LegacyQ Response");
460 mDNSlocal const mDNSu8 *FindUpdate(mDNS *const m, const DNSMessage *const query, const mDNSu8 *ptr, const mDNSu8 *const end,
464 for (i = 0; i < query->h.numAuthorities; i++)
467 ptr = GetLargeResourceRecord(m, query, ptr, end, q->InterfaceID, kDNSRecordTypePacketAuth, pkt);
661 // the same as a single query, to more accurately reflect the burden on the network
662 // (A query with a six-packet KA list is *at least* six times the burden on the network as a single-packet query.)
804 if (QR_OP == StdQ) mprintf("Unicast query from %#a\n", srcaddr);
899 mprintf("Modern Query Packets: %7d (avg%5d/min)\n", NumPktQ, NumPktQ * mul / div);
900 mprintf("Legacy Query Packets: %7d (avg%5d/min)\n", NumPktL, NumPktL * mul / div);
906 mprintf("Total Query Questions: %7d (avg%5d/min)\n", NumQuestions, NumQuestions * mul / div);
983 fprintf(stderr, "-Q- Multicast Query from mDNS client that accepts multicast responses\n");
985 fprintf(stderr, "-LQ- Multicast Query from legacy client that does *not* listen for multicast responses\n");
992 fprintf(stderr, "(LQ) Legacy Query Question\n");
993 fprintf(stderr, "(QM) Query Question, requesting multicast response\n");
994 fprintf(stderr, "(QU) Query Question, requesting unicast response\n");