mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-12-04 22:08:27 +00:00
Make --quiet-dhcp apply to DHCPDISCOVER when client ignored.
This commit is contained in:
1 parent
e62e9b6187
commit
cc1a29e250
1 file changed
+2
@@ -962,6 +962,8 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
|
|||||||
case DHCPDISCOVER:
|
case DHCPDISCOVER:
|
||||||
if (ignore || have_config(config, CONFIG_DISABLE))
|
if (ignore || have_config(config, CONFIG_DISABLE))
|
||||||
{
|
{
|
||||||
|
if (option_bool(OPT_QUIET_DHCP))
|
||||||
|
return 0;
|
||||||
message = _("ignored");
|
message = _("ignored");
|
||||||
opt = NULL;
|
opt = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user