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

Method setRcode

src/main/java/core/org/xbill/DNS/Header.java:176–183  ·  view source on GitHub ↗

Sets the message's rcode @see Rcode

(int value)

Source from the content-addressed store, hash-verified

174 * @see Rcode
175 */
176public void
177setRcode(int value) {
178 if (value < 0 || value > 0xF)
179 throw new IllegalArgumentException("DNS Rcode " + value +
180 " is out of range");
181 flags &= ~0xF;
182 flags |= value;
183}
184
185/**
186 * Retrieves the mesasge's rcode

Callers 2

addAnswerMethod · 0.80
buildErrorMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected