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

19 lines
434 B
JavaScript
Raw Normal View History

2018-03-19 16:31:44 +00:00
// (function (exports) {
2018-03-10 10:31:54 +00:00
'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;
};
2018-03-19 16:31:44 +00:00
// }('undefined' !== typeof window ? window : exports));