add RCODES

This commit is contained in:
AJ ONeal 2017-10-05 15:43:55 -06:00
父節點 84908c62df
當前提交 b24345fe26
共有 1 個檔案被更改,包括 15 行新增0 行删除

15
dns.rcodes.js Normal file
查看文件

@ -0,0 +1,15 @@
(function (exports) {
'use strict';
var rcodes = exports.DNS_RCODES = {
SUCCESS: 0x00 // 0
, NXDOMAIN: 0x03 // 3
, REFUSED: 0x05 // 5
};
// and in reverse
Object.keys(rcodes).forEach(function (key) {
rcodes[rcodes[key]] = key;
});
}('undefined' !== typeof window ? window : exports));