finished PTR parser

This commit is contained in:
dwes7 2017-02-01 20:37:28 -07:00
parent e8edc20080
commit 88e6779641
3 changed files with 3 additions and 2 deletions

View File

@ -10,8 +10,9 @@
// ame ttl class rr name
// 15 IN PTR www.example.com.
exports.DNS_TYPE_PTR = function (rdata) {
var unpackLabels = exports.DNS_UNPACK_LABELS || require('./dns.unpack-labels.js').DNS_UNPACK_LABELS;
exports.DNS_TYPE_PTR = function (ab, pack, record) {
return unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name;
};
}('undefined' !== typeof window ? window : exports));

BIN
samples/aaaa-0.mdns.bin Normal file

Binary file not shown.

BIN
samples/aaaa-1.mdns.bin Normal file

Binary file not shown.