dns-suite.js/parser/type.nsec.js

19 lines
428 B
JavaScript
Raw Normal View History

2018-03-10 10:31:54 +00:00
(function (exports) {
'use strict';
exports.DNS_PARSER_TYPE_NSEC = function (ab, packet, record) {
var rdataAb = ab.slice(record.rdstart,record.rdstart + record.rdlength)
var dv = new DataView(rdataAb);
// !!! Not actually implemented !!!
record.priority = 0;
record.weight = 0;
record.port = 0;
record.target = null;
return record;
};
}('undefined' !== typeof window ? window : exports));