BIND 10 trac3242, updated. b6c929fa55635e2fc6b673b6eb02569c55a16887 [3242] Log when received message is not supported.
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Feb 7 15:52:39 UTC 2014
The branch, trac3242 has been updated
via b6c929fa55635e2fc6b673b6eb02569c55a16887 (commit)
from 555c87c709c5b8306f469e620cded1ca4c95f2e6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b6c929fa55635e2fc6b673b6eb02569c55a16887
Author: Marcin Siodelski <marcin at isc.org>
Date: Fri Feb 7 16:52:30 2014 +0100
[3242] Log when received message is not supported.
-----------------------------------------------------------------------
Summary of changes:
src/bin/dhcp4/dhcp4_messages.mes | 6 ++++++
src/bin/dhcp4/dhcp4_srv.cc | 4 ++++
2 files changed, 10 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/dhcp4/dhcp4_messages.mes b/src/bin/dhcp4/dhcp4_messages.mes
index 0c10da8..e8b5812 100644
--- a/src/bin/dhcp4/dhcp4_messages.mes
+++ b/src/bin/dhcp4/dhcp4_messages.mes
@@ -141,6 +141,12 @@ This debug message indicates that the message type carried in DHCPv4 option
on the IANA website: http://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml#message-type-53.
The message will not be processed by the server.
+% DHCP4_UNSUPPORTED_RCVD_PACKET_TYPE received message (transaction id %1), having type %2 is not supported
+This debug message indicates that the message type carried in DHCPv4 option
+53 is valid but the message will not be processed by the server. This includes
+messages being normally sent by the server to the client, such as Offer, ACK,
+NAK etc.
+
% DHCP4_LEASE_ADVERT lease %1 advertised (client client-id %2, hwaddr %3)
This debug message indicates that the server successfully advertised
a lease. It is up to the client to choose one server out of othe advertised
diff --git a/src/bin/dhcp4/dhcp4_srv.cc b/src/bin/dhcp4/dhcp4_srv.cc
index e6cb252..3c46f46 100644
--- a/src/bin/dhcp4/dhcp4_srv.cc
+++ b/src/bin/dhcp4/dhcp4_srv.cc
@@ -1629,6 +1629,10 @@ Dhcpv4Srv::acceptMessageType(const Pkt4Ptr& query) const {
if ((type != DHCPDISCOVER) && (type != DHCPREQUEST) &&
(type != DHCPRELEASE) && (type != DHCPDECLINE) &&
(type != DHCPINFORM)) {
+ LOG_DEBUG(dhcp4_logger, DBG_DHCP4_DETAIL,
+ DHCP4_UNSUPPORTED_RCVD_PACKET_TYPE)
+ .arg(type)
+ .arg(query->getTransid());
return (false);
}
More information about the bind10-changes
mailing list