Returns the message's rcode (error code). This incorporates the EDNS extended rcode.
()
| 326 | * extended rcode. |
| 327 | */ |
| 328 | public int |
| 329 | getRcode() { |
| 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 |
no test coverage detected