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
df4334a7
Commit
df4334a7
authored
Dec 09, 2013
by
Marcin Siodelski
Browse files
[2772] The private DHCPv4 opts (code > 224) are not standard opts.
parent
12c48d42
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/libdhcp++.cc
View file @
df4334a7
...
...
@@ -163,9 +163,9 @@ LibDHCP::isStandardOption(const Option::Universe u, const uint16_t code) {
code
==
126
||
code
==
127
||
(
code
>
146
&&
code
<
150
)
||
(
code
>
177
&&
code
<
208
)
||
(
code
>
177
&&
code
<
208
)
||
(
code
>
213
&&
code
<
220
)
||
(
code
>
221
&&
code
<
2
24
)))
{
(
code
>
221
&&
code
<
2
55
)))
{
return
(
true
);
}
...
...
src/lib/dhcp/tests/libdhcp++_unittest.cc
View file @
df4334a7
...
...
@@ -643,7 +643,10 @@ TEST_F(LibDhcpTest, isStandardOption4) {
187
,
188
,
189
,
190
,
191
,
192
,
193
,
194
,
195
,
196
,
197
,
198
,
199
,
200
,
201
,
202
,
203
,
204
,
205
,
206
,
207
,
214
,
215
,
216
,
217
,
218
,
219
,
222
,
223
};
222
,
223
,
224
,
225
,
226
,
227
,
228
,
229
,
230
,
231
,
232
,
233
,
234
,
235
,
236
,
237
,
238
,
239
,
240
,
241
,
242
,
243
,
244
,
245
,
246
,
247
,
248
,
249
,
250
,
251
,
252
,
253
,
254
};
const
size_t
unassigned_num
=
sizeof
(
unassigned_codes
)
/
sizeof
(
unassigned_codes
[
0
]);
// Try all possible option codes.
...
...
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