Skip to content

Commit

Permalink
Logs in DHCPv6 not suppressed by dhcp6-quiet.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkelley committed Apr 25, 2015
1 parent b8f1655 commit a5ae1f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG
Expand Up @@ -103,7 +103,11 @@ version 2.73
Previously we provided correct answers to PTR queries
in such zones (including NS and SOA) but not direct
NS and SOA queries. Thanks to Johnny S. Lee for
pointing out the problem.
pointing out the problem.

Fix logging of DHCPREPLY which should be suppressed
by quiet-dhcp6. Thanks to J. Pablo Abonia for
spotting the problem.


version 2.72
Expand Down
4 changes: 2 additions & 2 deletions src/rfc3315.c
Expand Up @@ -1047,9 +1047,9 @@ static int dhcp6_no_relay(struct state *state, int msg_type, void *inbuff, size_
{
preferred_time = valid_time = 0;
message = _("address invalid");
}
}

if (message)
if (message && (message != state->hostname))
log6_packet(state, "DHCPREPLY", req_addr, message);
else
log6_quiet(state, "DHCPREPLY", req_addr, message);
Expand Down

0 comments on commit a5ae1f8

Please sign in to comment.