MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / getRcode

Method getRcode

src/main/java/core/org/xbill/DNS/Message.java:328–335  ·  view source on GitHub ↗

Returns the message's rcode (error code). This incorporates the EDNS extended rcode.

()

Source from the content-addressed store, hash-verified

326 * extended rcode.
327 */
328public int
329getRcode() {
330 int rcode = header.getRcode();
331 OPTRecord opt = getOPT();
332 if (opt != null)
333 rcode += (opt.getExtendedRcode() << 4);
334 return rcode;
335}
336
337/**
338 * Returns an array containing all records in the given section, or an

Callers 2

doxfrMethod · 0.95
toStringMethod · 0.95

Calls 2

getOPTMethod · 0.95
getExtendedRcodeMethod · 0.95

Tested by

no test coverage detected