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 other DHCP servers fails on FreeBSD #3417

Closed
EugeneOne1 opened this issue Aug 4, 2021 · 0 comments
Closed

Checking other DHCP servers fails on FreeBSD #3417

EugeneOne1 opened this issue Aug 4, 2021 · 0 comments
Assignees
Labels
external libs Issues that require changes in external libraries.

Comments

@EugeneOne1
Copy link
Member

In #3289 we've made it possible to enable DHCP server on FreeBSD. However, "Check for DHCP server" button still fails with an error:

receiving packet: invalid argument

A cursory investigation revealed that the error occurs in the tryConn4 function. The error itself is returned from ReadFrom method of the net.PacketConn which has the type of *nclient4.BroadcastRawUDPConn, so, here are some possible reasons to inspect:

  • nclient4.NewRawUDPConn configures the connection for FreeBSD sockets incorrectly;

  • nclient4.BroadcastRawUDPConn's ReadFrom implementation is not valid for FreeBSD.

@EugeneOne1 EugeneOne1 added the external libs Issues that require changes in external libraries. label Aug 4, 2021
@EugeneOne1 EugeneOne1 self-assigned this Aug 4, 2021
heyxkhoa pushed a commit to heyxkhoa/AdGuardHome that referenced this issue Mar 20, 2023
Merge in DNS/adguard-home from 3225-bsd-dhcp to master

Closes AdguardTeam#3225.
Closes AdguardTeam#3417.

Squashed commit of the following:

commit e7ea691
Author: Eugene Burkov <e.burkov@adguard.com>
Date:   Thu Aug 12 17:02:02 2021 +0300

    all: imp code, docs

commit 5b598fc
Author: Eugene Burkov <e.burkov@adguard.com>
Date:   Thu Aug 12 16:28:12 2021 +0300

    all: mv logic, imp code, docs, log changes

commit e3e1577
Author: Eugene Burkov <e.burkov@adguard.com>
Date:   Thu Aug 12 14:15:10 2021 +0300

    dhcpd: imp checkother

commit 3cc8b05
Author: Eugene Burkov <e.burkov@adguard.com>
Date:   Wed Aug 11 13:20:18 2021 +0300

    all: imp bsd support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external libs Issues that require changes in external libraries.
Projects
None yet
Development

No branches or pull requests

1 participant