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
ISC Open Source Projects
Kea
Commits
f2fce0e4
Commit
f2fce0e4
authored
Jun 22, 2019
by
Francis Dupont
Browse files
[690-bad-ip-length-header-error-misformats-number] Added a cast for uint8_t ip_len output
parent
b7fe40b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/protocol_util.cc
View file @
f2fce0e4
// Copyright (C) 2013-201
6
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-201
9
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -88,7 +88,7 @@ decodeIpUdpHeader(InputBuffer& buf, Pkt4Ptr& pkt) {
if
(
ip_len
<
5
)
{
isc_throw
(
InvalidPacketHeader
,
"Value of the length of the IP header must not be"
<<
" lower than 5 words. The length of the received header is "
<<
ip_len
<<
"."
);
<<
static_cast
<
unsigned
>
(
ip_len
)
<<
"."
);
}
// Seek to the position of source IP address.
...
...
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