Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Adam Osuchowski
Kea
Commits
c1270cb6
Commit
c1270cb6
authored
Nov 24, 2015
by
Francis Dupont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[4097a] Addressed not configured class VENDOR_CLASS_*
parent
f397db49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
src/bin/dhcp4/dhcp4_srv.cc
src/bin/dhcp4/dhcp4_srv.cc
+8
-3
src/bin/dhcp6/dhcp6_srv.cc
src/bin/dhcp6/dhcp6_srv.cc
+7
-2
No files found.
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