Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dhcp

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dhcp - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

2

examples/client.js

@@ -27,3 +27,3 @@

// `sysctl -w net.inet.ip.forwarding=1`
s.close();
});

@@ -30,0 +30,0 @@

@@ -61,2 +61,10 @@

s.on("close", function () {
console.log('close');
});
s.listen();
process.on('SIGINT', () => {
s.close();
});
/**
* @license DHCP.js v0.2.3 28/06/2017
* @license DHCP.js v0.2.10 28/06/2017
* http://www.xarg.org/2017/06/a-pure-javascript-dhcp-implementation/

@@ -104,2 +104,6 @@ *

sock.on('close', function() {
self.emit('close');
});
this._sock = sock;

@@ -352,3 +356,3 @@ this._conf = config;

// INADDR_BROADCAST : 68 <- SERVER_IP : 67
this._send(INADDR_BROADCAST, ans);
this._send(this.config('broadcast'), ans);

@@ -398,3 +402,3 @@ },

// INADDR_BROADCAST : 68 <- SERVER_IP : 67
this._send(INADDR_BROADCAST, ans);
this._send(this.config('broadcast'), ans);
},

@@ -427,3 +431,3 @@ sendNak: function(req) {

// Send the actual data
this._send(INADDR_BROADCAST, ans);
this._send(this.config('broadcast'), ans);
},

@@ -451,2 +455,6 @@

close: function(callback) {
this._sock.close(callback);
},
_send: function(host, data) {

@@ -520,2 +528,6 @@

sock.on('close', function() {
self.emit('close');
});
this._sock = sock;

@@ -898,2 +910,6 @@ this._conf = config || {};

close: function(callback) {
this._sock.close(callback);
},
_send: function(host, data) {

@@ -900,0 +916,0 @@

/**
* @license DHCP.js v0.2.3 28/06/2017
* @license DHCP.js v0.2.10 28/06/2017
* http://www.xarg.org/2017/06/a-pure-javascript-dhcp-implementation/

@@ -4,0 +4,0 @@ *

/**
* @license DHCP.js v0.2.3 28/06/2017
* @license DHCP.js v0.2.10 28/06/2017
* http://www.xarg.org/2017/06/a-pure-javascript-dhcp-implementation/

@@ -280,2 +280,3 @@ *

} else {
this._r += len;
console.error('Type ' + opt + ' not known');

@@ -282,0 +283,0 @@ }

{
"name": "dhcp",
"title": "dhcp",
"version": "0.2.9",
"version": "0.2.10",
"homepage": "https://github.com/infusion/node-dhcp",

@@ -6,0 +6,0 @@ "bugs": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc