Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
afce78d4
Commit
afce78d4
authored
Jan 14, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace `detail::iface_info` with string pair
parent
de76b158
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
libcaf_core/caf/detail/get_mac_addresses.hpp
libcaf_core/caf/detail/get_mac_addresses.hpp
+2
-4
libcaf_core/src/node_id.cpp
libcaf_core/src/node_id.cpp
+1
-1
libcaf_riac
libcaf_riac
+1
-1
No files found.
libcaf_core/caf/detail/get_mac_addresses.hpp
View file @
afce78d4
...
...
@@ -27,10 +27,8 @@
namespace
caf
{
namespace
detail
{
struct
iface_info
{
std
::
string
interface_name
;
std
::
string
ethernet_address
;
};
using
iface_info
=
std
::
pair
<
std
::
string
/* interface name */
,
std
::
string
/* interface address */
>
;
std
::
vector
<
iface_info
>
get_mac_addresses
();
...
...
libcaf_core/src/node_id.cpp
View file @
afce78d4
...
...
@@ -168,7 +168,7 @@ node_id::data* node_id::data::create_singleton() {
std
::
vector
<
std
::
string
>
macs
;
macs
.
reserve
(
ifs
.
size
());
for
(
auto
&
i
:
ifs
)
{
macs
.
emplace_back
(
std
::
move
(
i
.
ethernet_address
));
macs
.
emplace_back
(
std
::
move
(
i
.
second
));
}
auto
hd_serial_and_mac_addr
=
join
(
macs
,
""
)
+
detail
::
get_root_uuid
();
node_id
::
host_id_type
nid
;
...
...
libcaf_riac
@
d2634f2d
Subproject commit
fcf305450e030116ff4446576596ad11cdf5d47d
Subproject commit
d2634f2da9699088829fc97abe46b01e95723db6
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