Skip to content

Unix socket and interfaces #59670

@mastergt

Description

@mastergt

What is the problem this feature will solve?

Im need to write DHCP server, based on NODEJS.(linux)
clients can send DHCP DISCOVER packet from a number of interfaces:
vlan1, vlan100, vxlan1001 ....
Current problem - i cant determine interface name, packet received from, to match network to lease IP address according to this interface. I receive rinfo:
rinfo: {'0.0.0.0','ipv4',67,300}

What is the feature you are proposing to solve the problem?

https://nodejs.org/api/dgram.html
Based on documentation - we have rinfo object:

Please add here another property:

looks like:
rinfo: {'0.0.0.0','ipv4',67,300,'vlan10'}

What alternatives have you considered?

Unfortunately, I couldn't find an acceptable solution and was forced to write DHCP server using PERL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions