Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
235
Issues
235
List
Board
Labels
Milestones
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
Kea
Commits
c6e2ee63
Commit
c6e2ee63
authored
Dec 20, 2018
by
Thomas Markwalder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
#363
, !177] Addressed review comments
parent
c580327c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
libdhcp++.h
src/lib/dhcp/libdhcp++.h
+3
-3
pkt4.cc
src/lib/dhcp/pkt4.cc
+2
-0
No files found.
src/lib/dhcp/libdhcp++.h
View file @
c6e2ee63
...
...
@@ -182,15 +182,15 @@ public:
/// and the Relay Agent Information option and END options last. This
/// function is initially called to pack the options for a packet in
/// @ref Pkt4::pack(). That call leads to it being called recursively in
///
vai
@ref Option::packOptions(). Thus the logic used to output the
/// @ref Option::packOptions(). Thus the logic used to output the
/// message type should only be executed by the top-most. This is governed
/// by the paramater top, below.
///
/// @param buf output buffer (assembled options will be stored here)
/// @param options collection of options to store to
/// @param top indicates if this is the first call to pack the options.
/// When true logic to emit the message type
is executed. It defaults to
/// false.
/// When true logic to emit the message type
first is executed. It
///
defaults to
false.
static
void
packOptions4
(
isc
::
util
::
OutputBuffer
&
buf
,
const
isc
::
dhcp
::
OptionCollection
&
options
,
bool
top
=
false
);
...
...
src/lib/dhcp/pkt4.cc
View file @
c6e2ee63
...
...
@@ -135,6 +135,8 @@ Pkt4::pack() {
// write DHCP magic cookie
buffer_out_
.
writeUint32
(
DHCP_OPTIONS_COOKIE
);
// Call packOptions4() with parameter,"top", true. This invokes
// logic to emit the message type option first.
LibDHCP
::
packOptions4
(
buffer_out_
,
options_
,
true
);
// add END option that indicates end of options
...
...
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