Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
a665255e
Commit
a665255e
authored
Apr 20, 2015
by
Thomas Markwalder
Browse files
[3743] Corrected minor review comments
Fixed, copyrights, typos, minor clean up items
parent
086343cf
Changes
5
Hide whitespace changes
Inline
Side-by-side
doc/guide/logging.xml
View file @
a665255e
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
</listitem>
</listitem>
<listitem>
<listitem>
<simpara><command>
kea-dhcp4.bad_packet
</command>
- this is the
<simpara><command>
kea-dhcp4.bad_packet
</command>
- this is the
logger used by the DHCPv4 server deamon for logging inbound clien
logger used by the DHCPv4 server deamon for logging inbound clien
t
packets that were dropped or to which the server responded with a
packets that were dropped or to which the server responded with a
NAK. The allows adminstrators to configure a separate log
NAK. The allows adminstrators to configure a separate log
output that contains only packet drop and reject entries.
</simpara>
output that contains only packet drop and reject entries.
</simpara>
...
...
src/bin/dhcp4/dhcp4_log.cc
View file @
a665255e
// Copyright (C) 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2012, 2014
-2015
Internet Systems Consortium, Inc. ("ISC")
//
//
// Permission to use, copy, modify, and/or distribute this software for any
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// purpose with or without fee is hereby granted, provided that the above
...
@@ -23,7 +23,7 @@ const char* DHCP4_ROOT_LOGGER_NAME = "kea-dhcp4";
...
@@ -23,7 +23,7 @@ const char* DHCP4_ROOT_LOGGER_NAME = "kea-dhcp4";
const
char
*
DHCP4_APP_LOGGER_NAME
=
"dhcp4"
;
const
char
*
DHCP4_APP_LOGGER_NAME
=
"dhcp4"
;
const
char
*
DHCP4_BAD_PACKET_LOGGER_NAME
=
"bad-packet"
;
const
char
*
DHCP4_BAD_PACKET_LOGGER_NAME
=
"bad-packet"
;
isc
::
log
::
Logger
dhcp4_logger
(
"dhcp4"
);
isc
::
log
::
Logger
dhcp4_logger
(
DHCP4_APP_LOGGER_NAME
);
isc
::
log
::
Logger
bad_packet_logger
(
DHCP4_BAD_PACKET_LOGGER_NAME
);
isc
::
log
::
Logger
bad_packet_logger
(
DHCP4_BAD_PACKET_LOGGER_NAME
);
}
// namespace dhcp
}
// namespace dhcp
...
...
src/bin/dhcp4/dhcp4_log.h
View file @
a665255e
// Copyright (C) 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2012, 2014
-2015
Internet Systems Consortium, Inc. ("ISC")
//
//
// Permission to use, copy, modify, and/or distribute this software for any
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// purpose with or without fee is hereby granted, provided that the above
...
...
src/bin/dhcp4/dhcp4_messages.mes
View file @
a665255e
...
@@ -249,7 +249,7 @@ received packet failed. The reason is given in the message. The server
...
@@ -249,7 +249,7 @@ received packet failed. The reason is given in the message. The server
will not send a response but will instead ignore the packet.
will not send a response but will instead ignore the packet.
% DHCP4_PACKET_NAK_0001 failed to select a subnet for incoming packet, src: %1, type: %2
% DHCP4_PACKET_NAK_0001 failed to select a subnet for incoming packet, src: %1, type: %2
This
warning
message is output when a packet was received from a subnet
This
error
message is output when a packet was received from a subnet
for which the DHCPv4 server has not been configured. The most probable
for which the DHCPv4 server has not been configured. The most probable
cause is a misconfiguration of the server.
cause is a misconfiguration of the server.
...
...
src/bin/dhcp4/dhcp4_srv.cc
View file @
a665255e
...
@@ -1753,7 +1753,7 @@ Dhcpv4Srv::accept(const Pkt4Ptr& query) const {
...
@@ -1753,7 +1753,7 @@ Dhcpv4Srv::accept(const Pkt4Ptr& query) const {
// Check if the message from directly connected client (if directly
// Check if the message from directly connected client (if directly
// connected) should be dropped or processed.
// connected) should be dropped or processed.
if
(
!
acceptDirectRequest
(
query
))
{
if
(
!
acceptDirectRequest
(
query
))
{
LOG_
INFO
(
bad_packet_logger
,
DHCP4_PACKET_DROP_0002
)
LOG_
DEBUG
(
bad_packet_logger
,
DBG_DHCP4_DETAIL
,
DHCP4_PACKET_DROP_0002
)
.
arg
(
query
->
getTransid
())
.
arg
(
query
->
getTransid
())
.
arg
(
query
->
getIface
());
.
arg
(
query
->
getIface
());
return
(
false
);
return
(
false
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment