From 086343cf7c919885c6b3a0f84d4ae3db94ab107f Mon Sep 17 00:00:00 2001 From: Thomas Markwalder Date: Wed, 15 Apr 2015 14:08:33 -0400 Subject: [PATCH] [3743] Add bad_packet logger to dhcp4 server doc/guide/logging.xml - added new logger description src/bin/dhcp4/dhcp4_log.cc - added bad_packet logger and log name declarations src/bin/dhcp4/dhcp4_log.h - added bad_packet and log name externs src/bin/dhcp4/dhcp4_messages.mes - changed drop and NAK message identifiers src/bin/dhcp4/dhcp4_srv.cc - changed packet drop and NAK log invocations src/bin/dhcp4/main.cc - used extern for log name --- doc/guide/logging.xml | 13 ++++- src/bin/dhcp4/dhcp4_log.cc | 5 ++ src/bin/dhcp4/dhcp4_log.h | 12 ++++ src/bin/dhcp4/dhcp4_messages.mes | 96 ++++++++++++++++---------------- src/bin/dhcp4/dhcp4_srv.cc | 31 +++++------ src/bin/dhcp4/main.cc | 6 +- 6 files changed, 92 insertions(+), 71 deletions(-) diff --git a/doc/guide/logging.xml b/doc/guide/logging.xml index 5db5e0bd29..6ef86fc25f 100644 --- a/doc/guide/logging.xml +++ b/doc/guide/logging.xml @@ -154,6 +154,13 @@ the settings from this logger if there is no specialized logger provided. + + kea-dhcp4.bad_packet - this is the + logger used by the DHCPv4 server deamon for logging inbound clien + packets that were dropped or to which the server responded with a + NAK. The allows adminstrators to configure a separate log + output that contains only packet drop and reject entries. + kea-dhcp4.dhcp4 - this is the logger used solely by the DHCPv4 server deamon. This logger does not @@ -362,7 +369,7 @@ TODO; there's a ticket to determine these levels, see #1074 -