Examples of printFlags()


Examples of org.xbill.DNS.Header.printFlags()

  {
    Map<String, Object> map = new HashMap<String, Object>();
    Header header = resp.getHeader();
    map.put("opcode", Opcode.string(header.getOpcode()));
    map.put("rcode", Rcode.string(header.getRcode()));
    map.put("flags", header.printFlags().trim().split("\\s+"));
    map.put("id", header.getID());
    addRecords(resp, Section.QUESTION, map, "question");
    addRecords(resp, Section.ANSWER, map, "answers");
    addRecords(resp, Section.ADDITIONAL, map, "additional");
    addRecords(resp, Section.AUTHORITY, map, "authority");
View Full Code Here

Examples of org.xbill.DNS.Header.printFlags()

        payload = Arrays.copyOfRange(payload, 2, payload.length); // First two bytes denote the size of the DNS message, ignore them
      try {
        Message msg = new Message(payload);
        Header header = msg.getHeader();
        dnsPacket.put(DnsPacket.QUERYID, header.getID());
        dnsPacket.put(DnsPacket.FLAGS, header.printFlags());
        dnsPacket.put(DnsPacket.QR, header.getFlag(Flags.QR));
        dnsPacket.put(DnsPacket.OPCODE, Opcode.string(header.getOpcode()));
        dnsPacket.put(DnsPacket.RCODE, Rcode.string(header.getRcode()));
        dnsPacket.put(DnsPacket.QUESTION, convertRecordToString(msg.getQuestion()));
        dnsPacket.put(DnsPacket.QNAME, convertRecordOwnerToString(msg.getQuestion()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.