Skip to content

Conversation

@mkresin
Copy link
Member

@mkresin mkresin commented Mar 28, 2025

If the DHCPV6_OPT_AUTH option is set in a DHCPv6 server response, we can't rewrite the DNS server within the response as it would result in a checksum mismatch.

Instead of silently dropping the server response, forward the unmodified response instead.

If the DHCPV6_OPT_AUTH option is set in a DHCPv6 server response, we
can't rewrite the DNS server within the response as it would result in a
checksum mismatch.

Instead of silently dropping the server response, forward the unmodified
response instead.

Signed-off-by: Mathias Kresin <dev@kresin.me>

if (rewrite_cnt == 0) {
if (odhcpd_get_interface_dns_addr(iface, &addr)) {
syslog(LOG_ERR, "Unable to get interface address");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps some more context in the error message. e.g.

syslog(LOG_ERR, "Unable to get interface address while rewriting DNS servers during relay of server response ");

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.

2 participants