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

Method apply

src/main/java/core/org/xbill/DNS/TSIG.java:350–355  ·  view source on GitHub ↗

Generates a TSIG record with a specific error for a message and adds it to the message. @param m The message @param error The error @param old If this message is a response, the TSIG from the request

(Message m, int error, TSIGRecord old)

Source from the content-addressed store, hash-verified

348 * @param old If this message is a response, the TSIG from the request
349 */
350public void
351apply(Message m, int error, TSIGRecord old) {
352 Record r = generate(m, m.toWire(), error, old);
353 m.addRecord(r, Section.ADDITIONAL);
354 m.tsigState = Message.TSIG_SIGNED;
355}
356
357/**
358 * Generates a TSIG record for a message and adds it to the message

Callers 1

applyStreamMethod · 0.95

Calls 3

generateMethod · 0.95
toWireMethod · 0.45
addRecordMethod · 0.45

Tested by

no test coverage detected