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

Method getOPT

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

Returns the OPT record from the ADDITIONAL section, if one is present. @see OPTRecord @see Section

()

Source from the content-addressed store, hash-verified

313 * @see Section
314 */
315public OPTRecord
316getOPT() {
317 Record [] additional = getSectionArray(Section.ADDITIONAL);
318 for (int i = 0; i < additional.length; i++)
319 if (additional[i] instanceof OPTRecord)
320 return (OPTRecord) additional[i];
321 return null;
322}
323
324/**
325 * Returns the message's rcode (error code). This incorporates the EDNS

Callers 6

getRcodeMethod · 0.95
toWireMethod · 0.95
toStringMethod · 0.95
generateReplyMethod · 0.80
applyEDNSMethod · 0.80
maxUDPSizeMethod · 0.80

Calls 1

getSectionArrayMethod · 0.95

Tested by

no test coverage detected