Skip to content

Commit 72b0e6f

Browse files
committed
[Dns] Add rcode constants to message
1 parent d28bd60 commit 72b0e6f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Message.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ class Message
1818
const OPCODE_IQUERY = 1; // inverse query
1919
const OPCODE_STATUS = 2;
2020

21+
const RCODE_OK = 0;
22+
const RCODE_FORMAT_ERROR = 1;
23+
const RCODE_SERVER_FAILURE = 2;
24+
const RCODE_NAME_ERROR = 3;
25+
const RCODE_NOT_IMPLEMENTED = 4;
26+
const RCODE_REFUSED = 5;
27+
2128
public $data = '';
2229

2330
public $header = array();

0 commit comments

Comments
 (0)