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
Sebastian Schrader
Kea
Commits
c1270cb6
Commit
c1270cb6
authored
Nov 24, 2015
by
Francis Dupont
Browse files
[4097a] Addressed not configured class VENDOR_CLASS_*
parent
f397db49
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/dhcp4_srv.cc
View file @
c1270cb6
...
...
@@ -840,9 +840,14 @@ Dhcpv4Srv::buildCfgOptionList(Dhcpv4Exchange& ex) {
getClientClassDictionary
()
->
findClass
(
*
cclass
);
if
(
!
ccdef
)
{
// Not found: the class is not configured
LOG_DEBUG
(
options4_logger
,
DBG_DHCP4_BASIC
,
DHCP4_CLASS_UNCONFIGURED
)
.
arg
(
ex
.
getQuery
()
->
getLabel
())
.
arg
(
*
cclass
);
if
(((
*
cclass
).
size
()
<=
VENDOR_CLASS_PREFIX
.
size
())
||
((
*
cclass
).
compare
(
0
,
VENDOR_CLASS_PREFIX
.
size
(),
VENDOR_CLASS_PREFIX
)
!=
0
))
{
// Not a VENDOR_CLASS_* so should be configured
LOG_DEBUG
(
options4_logger
,
DBG_DHCP4_BASIC
,
DHCP4_CLASS_UNCONFIGURED
)
.
arg
(
ex
.
getQuery
()
->
getLabel
())
.
arg
(
*
cclass
);
}
// Skip it
continue
;
}
if
(
ccdef
->
getCfgOption
()
->
empty
())
{
...
...
src/bin/dhcp6/dhcp6_srv.cc
View file @
c1270cb6
...
...
@@ -908,8 +908,13 @@ Dhcpv6Srv::buildCfgOptionList(const Pkt6Ptr& question,
getClientClassDictionary
()
->
findClass
(
*
cclass
);
if
(
!
ccdef
)
{
// Not found: the class is not configured
LOG_DEBUG
(
dhcp6_logger
,
DBG_DHCP6_BASIC
,
DHCP6_CLASS_UNCONFIGURED
)
.
arg
(
*
cclass
);
if
(((
*
cclass
).
size
()
<=
VENDOR_CLASS_PREFIX
.
size
())
||
((
*
cclass
).
compare
(
0
,
VENDOR_CLASS_PREFIX
.
size
(),
VENDOR_CLASS_PREFIX
)
!=
0
))
{
// Not a VENDOR_CLASS_* so should be configured
LOG_DEBUG
(
dhcp6_logger
,
DBG_DHCP6_BASIC
,
DHCP6_CLASS_UNCONFIGURED
)
.
arg
(
*
cclass
);
}
// Skip it
continue
;
}
if
(
ccdef
->
getCfgOption
()
->
empty
())
{
...
...
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