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
426
Issues
426
List
Boards
Labels
Service Desk
Milestones
Merge Requests
64
Merge Requests
64
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
ISC Open Source Projects
Kea
Commits
991fea36
Commit
991fea36
authored
Mar 26, 2014
by
Marcin Siodelski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[3360] Fix Memfile config string for Dhcp4 srv unit tests.
parent
b96b7707
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/bin/dhcp4/tests/dhcp4_test_utils.h
src/bin/dhcp4/tests/dhcp4_test_utils.h
+2
-1
src/bin/dhcp6/tests/dhcp6_test_utils.h
src/bin/dhcp6/tests/dhcp6_test_utils.h
+1
-1
No files found.
src/bin/dhcp4/tests/dhcp4_test_utils.h
View file @
991fea36
...
...
@@ -117,7 +117,8 @@ public:
/// @param port port number to listen on; the default value 0 indicates
/// that sockets should not be opened.
NakedDhcpv4Srv
(
uint16_t
port
=
0
)
:
Dhcpv4Srv
(
port
,
"type=memfile"
,
false
,
false
)
{
:
Dhcpv4Srv
(
port
,
"type=memfile universe=4 persist=false"
,
false
,
false
)
{
// Create fixed server id.
server_id_
.
reset
(
new
Option4AddrLst
(
DHO_DHCP_SERVER_IDENTIFIER
,
asiolink
::
IOAddress
(
"192.0.3.1"
)));
...
...
src/bin/dhcp6/tests/dhcp6_test_utils.h
View file @
991fea36
...
...
@@ -45,7 +45,7 @@ class NakedDhcpv6Srv: public isc::dhcp::Dhcpv6Srv {
public:
NakedDhcpv6Srv
(
uint16_t
port
)
:
isc
::
dhcp
::
Dhcpv6Srv
(
port
)
{
// Open the "memfile" database for leases
std
::
string
memfile
=
"type=memfile universe=6"
;
std
::
string
memfile
=
"type=memfile universe=6
persist=false
"
;
isc
::
dhcp
::
LeaseMgrFactory
::
create
(
memfile
);
}
...
...
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