Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking for another DHCP server doesn't work properly on OpenBSD #3441

Open
EugeneOne1 opened this issue Aug 12, 2021 · 1 comment
Open
Assignees
Milestone

Comments

@EugeneOne1
Copy link
Member

In #3225 we've added an incomplete support for DHCP on OpenBSD. Checking for other DHCP servers in the network still doesn't work properly in some circumstances.

It seems that net.ListenPacket binds to the unspecified IP address with the specified port and ignores packets that were read by any other listener of the same port. Setting socket options SO_REUSEPORT and SO_REUSEADDR also didn't help.

Perhaps, we may peek some implementation details in github.com/insomniacslk/dhcp/dhcpv4/nclient4.

@EugeneOne1 EugeneOne1 added this to the v0.108.0 milestone Aug 12, 2021
@EugeneOne1 EugeneOne1 self-assigned this Aug 12, 2021
@EugeneOne1
Copy link
Member Author

After a bit of investigating, the problem seems to require more sofisticated raw socket manipulation. As a workaround, we may recommend disabling the competing processes (e.g. dhclient, dhcpd, etc) manually on OpenBSD. We'll consider adding this to the documentation until a better solution appears.

@ainar-g ainar-g modified the milestones: v0.108.0, v0.107.9 Jul 25, 2022
@ainar-g ainar-g modified the milestones: v0.107.9, v0.107.10 Aug 3, 2022
@ainar-g ainar-g modified the milestones: v0.107.10, v0.107.11, v0.107.12 Aug 17, 2022
@ainar-g ainar-g modified the milestones: v0.107.12, v0.107.13, v0.107.14 Sep 7, 2022
@ainar-g ainar-g modified the milestones: v0.107.14, v0.107.15 Sep 29, 2022
@EugeneOne1 EugeneOne1 modified the milestones: v0.107.15, v0.107.16 Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants