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
416
Issues
416
List
Boards
Labels
Service Desk
Milestones
Merge Requests
67
Merge Requests
67
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
a1f62b04
Commit
a1f62b04
authored
Jul 07, 2020
by
Francis Dupont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
#1043
] Post rebase updates
parent
52a259cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
src/lib/dhcp/tests/iface_mgr_test_config.cc
src/lib/dhcp/tests/iface_mgr_test_config.cc
+4
-4
src/lib/dhcp/tests/iface_mgr_test_config.h
src/lib/dhcp/tests/iface_mgr_test_config.h
+4
-1
No files found.
src/lib/dhcp/tests/iface_mgr_test_config.cc
View file @
a1f62b04
...
...
@@ -104,21 +104,21 @@ IfaceMgrTestConfig::createIface(const std::string &name, const int ifindex) {
void
IfaceMgrTestConfig
::
createIfaces
()
{
// local loopback
addIface
(
"lo"
,
0
);
addIface
(
"lo"
,
LO_INDEX
);
addAddress
(
"lo"
,
IOAddress
(
"127.0.0.1"
));
addAddress
(
"lo"
,
IOAddress
(
"::1"
));
// eth0
addIface
(
"eth0"
,
1
);
addIface
(
"eth0"
,
ETH0_INDEX
);
addAddress
(
"eth0"
,
IOAddress
(
"10.0.0.1"
));
addAddress
(
"eth0"
,
IOAddress
(
"fe80::3a60:77ff:fed5:cdef"
));
addAddress
(
"eth0"
,
IOAddress
(
"2001:db8:1::1"
));
// eth1
addIface
(
"eth1"
,
2
);
addIface
(
"eth1"
,
ETH1_INDEX
);
addAddress
(
"eth1"
,
IOAddress
(
"192.0.2.3"
));
addAddress
(
"eth1"
,
IOAddress
(
"192.0.2.5"
));
addAddress
(
"eth1"
,
IOAddress
(
"fe80::3a60:77ff:fed5:abcd"
));
// eth1961
addIface
(
"eth1961"
,
3
);
addIface
(
"eth1961"
,
ETH1961_INDEX
);
addAddress
(
"eth1961"
,
IOAddress
(
"198.51.100.1"
));
addAddress
(
"eth1961"
,
IOAddress
(
"fe80::3a60:77ff:fed5:9876"
));
...
...
src/lib/dhcp/tests/iface_mgr_test_config.h
View file @
a1f62b04
...
...
@@ -24,6 +24,9 @@ const uint32_t ETH0_INDEX = 1;
/// @brief Index of the eth1 fake interface.
const
uint32_t
ETH1_INDEX
=
2
;
/// @brief Index of the eth1961 fake interface.
const
uint32_t
ETH1961_INDEX
=
1962
;
//@}
///
...
...
@@ -130,7 +133,7 @@ struct FlagInactive6 {
/// - eth1 #2
/// - 192.0.2.3
/// - fe80::3a60:77ff:fed5:abcd
/// - eth1961
/// - eth1961
#1962
/// - 198.51.100.1
/// - fe80::3a60:77ff:fed5:9876
///
...
...
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