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

19 lines
428 B
JavaScript

(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));