--- src/dhcp-common.c | 3 +++ src/rfc3315.c | 3 +++ 2 files changed, 6 insertions(+)
diff --git a/src/dhcp-common.c b/src/dhcp-common.c index b004e40..6f829f3 100644 --- a/src/dhcp-common.c +++ b/src/dhcp-common.c @@ -394,7 +394,10 @@ static struct dhcp_config *find_config_match(struct dhcp_config *configs, if (!hwaddr) + { + my_syslog(MS_DHCP | LOG_INFO, "client hwaddr is NULL"); return NULL; + } /* use match with fewest wildcard octets */ for (candidate = NULL, count = 0, config = configs; config; config = config->next) diff --git a/src/rfc3315.c b/src/rfc3315.c index bc09887..ccfc149 100644 --- a/src/rfc3315.c +++ b/src/rfc3315.c @@ -636,7 +636,10 @@ static int dhcp6_no_relay(struct state *state, int msg_type, unsigned char *inbu solicit_tags = tagif; if (ignore) + { + my_syslog(MS_DHCP | LOG_INFO, "Found config is set to ignore"); return 0; + } /* reset USED bits in leases */ lease6_reset(); -- 2.27.0 发件人: renmingshuai 发送时间: 2023年4月17日 19:57 收件人: 'dnsmasq-discuss@lists.thekelleys.org.uk' <dnsmasq-discuss@lists.thekelleys.org.uk> 抄送: Yanan (Euler) <ya...@huawei.com>; liaichun <liaic...@huawei.com> 主题: Add more dhcp log about finding dhcp-config failed Hi ! When dnsmasq attempts to search for the configured DHCPv6 address based on the MAC address, it will send NS packets to obtain the client MAC address. If dnsmasq fails to obtain the MAC address because any net reason, it cannot find the configured DHCPv6 address. As a result, the client cannot obtain the MAC address as expected. Adding some dhcp logs about finding dhcp-config failure will help users to find the cause more quickly.
_______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss