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
edeeae9d
Commit
edeeae9d
authored
Jan 31, 2018
by
Tomek Mrugalski
🛰
Browse files
[5514] Change after review:
- the opion-space check removed from DHCPv4 similar to DHCPv6
parent
80634745
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/libdhcp++.cc
View file @
edeeae9d
...
...
@@ -533,10 +533,12 @@ size_t LibDHCP::unpackOptions4(const OptionBuffer& buf,
OptionDefContainerTypeRange
range
;
// Number of option definitions returned.
size_t
num_defs
=
0
;
if
(
option_space
==
DHCP4_OPTION_SPACE
)
{
range
=
idx
.
equal_range
(
opt_type
);
num_defs
=
distance
(
range
.
first
,
range
.
second
);
}
// Previously we did the lookup only for "dhcp4" option space, but there
// may be standard options in other spaces (e.g. radius). So we now do
// the lookup for every space.
range
=
idx
.
equal_range
(
opt_type
);
num_defs
=
distance
(
range
.
first
,
range
.
second
);
// Standard option definitions do not include the definition for
// our option or we're searching for non-standard option. Try to
...
...
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