mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Don't report spurious netlink errors.
This commit is contained in:
@@ -13,6 +13,9 @@ version 2.64
|
|||||||
Fix broken vendor-option processing for BOOTP. Thanks to
|
Fix broken vendor-option processing for BOOTP. Thanks to
|
||||||
Hans-Joachim Baader for the bug report.
|
Hans-Joachim Baader for the bug report.
|
||||||
|
|
||||||
|
Don't report spurious netlink errors, regression in
|
||||||
|
2.63. Thanks to Vladislav Grishenko for the patch.
|
||||||
|
|
||||||
|
|
||||||
version 2.63
|
version 2.63
|
||||||
Do duplicate dhcp-host address check in --test mode.
|
Do duplicate dhcp-host address check in --test mode.
|
||||||
|
|||||||
@@ -336,7 +336,8 @@ static int nl_async(struct nlmsghdr *h)
|
|||||||
if (h->nlmsg_type == NLMSG_ERROR)
|
if (h->nlmsg_type == NLMSG_ERROR)
|
||||||
{
|
{
|
||||||
struct nlmsgerr *err = NLMSG_DATA(h);
|
struct nlmsgerr *err = NLMSG_DATA(h);
|
||||||
my_syslog(LOG_ERR, _("netlink returns error: %s"), strerror(-(err->error)));
|
if (err->error != 0)
|
||||||
|
my_syslog(LOG_ERR, _("netlink returns error: %s"), strerror(-(err->error)));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else if (h->nlmsg_pid == 0 && h->nlmsg_type == RTM_NEWROUTE)
|
else if (h->nlmsg_pid == 0 && h->nlmsg_type == RTM_NEWROUTE)
|
||||||
|
|||||||
Reference in New Issue
Block a user