Lines Matching refs:np
322 register const u_char *np = cp;
351 cp = ns_nprint(np, bp);
562 register const HEADER *np;
567 np = (const HEADER *)bp;
568 TCHECK(*np);
570 qdcount = EXTRACT_16BITS(&np->qdcount);
571 ancount = EXTRACT_16BITS(&np->ancount);
572 nscount = EXTRACT_16BITS(&np->nscount);
573 arcount = EXTRACT_16BITS(&np->arcount);
575 if (DNS_QR(np)) {
578 EXTRACT_16BITS(&np->id),
579 ns_ops[DNS_OPCODE(np)],
580 ns_resp[DNS_RCODE(np)],
581 DNS_AA(np)? "*" : "",
582 DNS_RA(np)? "" : "-",
583 DNS_TC(np)? "|" : "",
584 DNS_AD(np)? "$" : "");
589 cp = (const u_char *)(np + 1);
591 if (qdcount < EXTRACT_16BITS(&np->qdcount) - 1)
645 printf("%d%s%s%s", EXTRACT_16BITS(&np->id), ns_ops[DNS_OPCODE(np)],
646 DNS_RD(np) ? "+" : "",
647 DNS_CD(np) ? "%" : "");
650 b2 = EXTRACT_16BITS(((u_short *)np)+1);
654 if (DNS_OPCODE(np) == IQUERY) {
671 cp = (const u_char *)(np + 1);
673 cp = ns_qprint(cp, (const u_char *)np, is_mdns);
678 (const u_char *)np,