Code Monkey home page Code Monkey logo

dhcp's Introduction

dhcp

Low level DHCP server in Node.js

Currently under initial development, so expect things to change. Join me, if you like. I accept pull requests and work on issues.

A short notice on the current state of development: I currently can't spare enough time to really continue the work on this in a professional fashion. However, I've uploaded my most recent stuff to the 0.1.0 branch.

dhcp's People

Contributors

buschtoens avatar

Stargazers

Lsong avatar Ted Feng avatar Krzysztof Antczak avatar Frank avatar Andrey Sidorov avatar

Watchers

 avatar James Cloos avatar Maxence Dalmais avatar  avatar

dhcp's Issues

dhcp.broadcast(header, options, cb)

Being able to broadcast a message can come in very handy.

I propose this signature: dhcp.broadcast(header, options, cb)

Maybe a unicast like dhcp.send(address, header, options, cb) could be useful, too, speaking of leases and other client specific stuff. However the broadcast should be implemented first.

Priotity Levels

Side branch of #2.

I think using priority levels is a good habit, but we should declare them first. What about this:

  • LOWEST: 5
  • LOW: 4
  • NORMAL: 3
  • HIGH: 2
  • HIGHEST: 1
  • LOCKED: 0

The levels are compared like this:

if(newPriority < oldPriority) {
  // overwrite
} else {
  // don't overwrite
}

This implies, that when you assign LOCKED, you effectively can't change this value later on, unless you do some hackish stuff like -1 which is higly discouraged.

This is important for the overwrite callbacks. They can't go above LOCKED, meaning that we don't end up having infinite recursion, because two middlewares can't seem to agree on one value.

First working version

First goal is to get something, that works. It doesn't have to beautiful, but it should be able to do some basic DHCP control.

Later on, the working code will be cleaned and refactored on a new branch.

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.