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)
| 348 | * @param old If this message is a response, the TSIG from the request |
| 349 | */ |
| 350 | public void |
| 351 | apply(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 |
no test coverage detected