Giter Site home page Giter Site logo

native-dns-packet's Introduction

native-dns-packet

  • Packet.parse(buffer) returns an instance of Packet
  • Packet.write(buffer, packet) writes the given packet into the buffer, truncating where appropriate
var Packet = function () {
  this.header = {
    id: 0,
    qr: 0,
    opcode: 0,
    aa: 0,
    tc: 0,
    rd: 1,
    ra: 0,
    res1: 0,
    res2: 0,
    res3: 0,
    rcode: 0
  };
  this.question = [];
  this.answer = [];
  this.authority = [];
  this.additional = [];
  this.edns_options = [];
  this.payload = undefined;
};

History

0.1.1 - October 5, 2014
  • Fixing NPM tagging issue...
0.1.0 - October 2, 2014
  • Added TLSA support
  • Fixed EDNS & NAPTR support + deprecates some EDNS fields on Packet
  • Now includes support for forwarding EDNS responses (Packet.edns)
  • Added many TODOs with suggested improvements
  • Added many links to GH issues and RFCs
  • Cleaned up code a bit to better please linters
  • Added deprecation notices (see parseOpt)
  • Handle unhandled RRs on writing packet instead of throwing exception.
  • edns/opt should use BufferCursor.copy (Fixes #11)
  • Updated package.json to include all authors
  • Merged tj's master branch to add License info
  • Updated README to include history of changes

native-dns-packet's People

Contributors

tjfontaine avatar taoeffect avatar ydw223 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.