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
ycai
simbricks
Commits
2a16a5b9
Commit
2a16a5b9
authored
Aug 29, 2020
by
Antoine Kaufmann
Browse files
libnicbm: fix mac address generation
parent
c3e266e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libnicbm/nicbm.cc
libnicbm/nicbm.cc
+1
-1
No files found.
libnicbm/nicbm.cc
View file @
2a16a5b9
...
...
@@ -275,7 +275,7 @@ Runner::Runner(Device &dev_)
mac_addr
=
lrand48
();
mac_addr
<<=
16
;
mac_addr
^=
lrand48
();
mac_addr
&=
~
(
3ULL
<<
40
)
;
mac_addr
&=
~
3ULL
;
std
::
cerr
<<
std
::
hex
<<
mac_addr
<<
std
::
endl
;
}
...
...
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