diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2014-03-20 15:47:18 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2014-03-20 15:47:18 +0000 |
commit | cc1a29e2502b9984e6687a74f8bcbaea1fb5c5db (patch) | |
tree | 76359f8d6c9499482667a583261dc18b5f587642 | |
parent | e62e9b618763b4cb506efbb5108dac9a6205dbe3 (diff) | |
download | dnsmasq-cc1a29e2502b9984e6687a74f8bcbaea1fb5c5db.tar.gz |
Make --quiet-dhcp apply to DHCPDISCOVER when client ignored.
-rw-r--r-- | src/rfc2131.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rfc2131.c b/src/rfc2131.c index 12dd284..5c90408 100644 --- a/src/rfc2131.c +++ b/src/rfc2131.c @@ -962,6 +962,8 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index, case DHCPDISCOVER: if (ignore || have_config(config, CONFIG_DISABLE)) { + if (option_bool(OPT_QUIET_DHCP)) + return 0; message = _("ignored"); opt = NULL; } |