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

dhcpd: fix malformed link-layer address packet #5841

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yamanq
Copy link

@yamanq yamanq commented May 22, 2023

closes #5840

See issue for details on bug and approach for this fix.

@snachx
Copy link

snachx commented Jun 5, 2023

I think we should also modify the Length field of the source link-layer address option based on the length of the return result of hwAddrToLinkLayerAddr, instead of always setting it to 1. https://github.com/AdguardTeam/AdGuardHome/blob/ae7bd79a6c2dba0061db4d5d46b9069e4bd3f22c/internal/dhcpd/routeradv.go#LL179C11-L179C11

@yamanq
Copy link
Author

yamanq commented Jun 5, 2023

You're absolutely right, I forgot to change that part. I pushed a change that should fix it, but I am no longer using AdGuard as I found other issues with the DHCP server.

@snachx
Copy link

snachx commented Jun 5, 2023

You are right, AdGuard Home's DHCP server does indeed have several other issues. For example, the parameters for Router Advertisement (RA) messages are not configurable, and the most severe problem is that the default interval for sending RA messages is 1 second, which is too short. The recommended maximum interval according to the RFC is 600 seconds, and the minimum interval is 200 seconds. Additionally, it lacks the functionality to respond in real-time to received Router Solicitation (RS) messages, among other things. There is still much work to be done to use AdGuard Home as a DHCPv6 server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Malformed Router Advertisment packet in DHCPv6 (with patch)
2 participants