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
45809d98
Commit
45809d98
authored
Jan 27, 2014
by
Mukund Sivaraman
Browse files
[2749] Add comment that we know there's room available in the buffer
parent
c7aeb4be
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp6/dhcp6_srv.cc
View file @
45809d98
...
...
@@ -2345,6 +2345,9 @@ Dhcpv6Srv::unpackOptions(const OptionBuffer& buf,
// The buffer being read comprises a set of options, each starting with
// a two-byte type code and a two-byte length field.
while
(
offset
+
4
<=
length
)
{
// At this point, from the while condition, we know that there
// are at least 4 bytes available following offset in the
// buffer.
uint16_t
opt_type
=
isc
::
util
::
readUint16
(
&
buf
[
offset
],
2
);
offset
+=
2
;
...
...
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