Skip to content

Crashing on options in the reserved space #62

@SibertDekimo

Description

@SibertDekimo

The DHCP crashes when a DCHP-request is sent with options in the 224-254 range.
According to iana, this space is reserved for private use. Microsoft happens to use this range (249 for classless static route), which makes the DHCP-server incompatible with my OS, Windows 10.

I have fixed this by editing line 206 in dhcp.js:
this.emit('error', 'Unknown option ' + req);

becomes

if(!(req >= 224 && req <= 255))
{
	this.emit('error', 'Unknown option ' + req);
}

I don't know if this is the correct/best solution, but it works for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions