Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
949fc23e
Commit
949fc23e
authored
Aug 20, 2013
by
Tomek Mrugalski
🛰
Browse files
[2983] Server now handles v4 packet without message type option correctly.
parent
3bcbbb7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/dhcp4_messages.mes
View file @
949fc23e
...
...
@@ -158,6 +158,10 @@ This is a general catch-all message indicating that the processing of a
received packet failed. The reason is given in the message. The server
will not send a response but will instead ignore the packet.
% DHCP4_PACKET_DROP_NO_TYPE dropped packet received on interface %1: does not have msg-type option
THis is a debug message informing that incoming DHCPv4 packet did not
have mandatory DHCP message type option and thus was dropped.
% DHCP4_PACKET_RECEIVED %1 (type %2) packet received on interface %3
A debug message noting that the server has received the specified type of
packet on the specified interface. Note that a packet marked as UNKNOWN
...
...
src/bin/dhcp4/dhcp4_srv.cc
View file @
949fc23e
...
...
@@ -241,12 +241,14 @@ Dhcpv4Srv::run() {
int
type
=
-
1
;
try
{
type
=
query
->
getType
();
}
catch
(
const
std
::
exception
&
e
)
{
}
catch
(...)
{
LOG_DEBUG
(
dhcp4_logger
,
DBG_DHCP4_DETAIL
,
DHCP4_PACKET_DROP_NO_TYPE
)
.
arg
(
query
->
getIface
());
continue
;
}
LOG_DEBUG
(
dhcp4_logger
,
DBG_DHCP4_DETAIL
,
DHCP4_PACKET_RECEIVED
)
.
arg
(
serverReceivedPacketName
(
query
->
getT
ype
()
))
.
arg
(
serverReceivedPacketName
(
t
ype
))
.
arg
(
type
)
.
arg
(
query
->
getIface
());
LOG_DEBUG
(
dhcp4_logger
,
DBG_DHCP4_DETAIL_DATA
,
DHCP4_QUERY_DATA
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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