Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
58ae0641
Commit
58ae0641
authored
Jul 09, 2019
by
rogerferre
Committed by
Francesc Guasch
Jul 12, 2019
Browse files
feature(backend):Set three first MAC octets as static
issue #1103
parent
a914be15
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/VM/KVM.pm
View file @
58ae0641
...
...
@@ -2021,7 +2021,7 @@ sub _xml_modify_mac {
for
(
1
..
1000
)
{
for
my
$cont
(
1
..
1000
)
{
my
@macparts
=
@macparts0
;
my
$pos
=
int
(
rand
(
scalar
(
@macparts
)
-
1
))
+
1
;
my
$pos
=
int
(
rand
(
scalar
(
@macparts
)
-
3
))
+
3
;
my
$num
=
sprintf
"
%02X
",
rand
(
0xff
);
die
"
Missing num
"
if
!
defined
$num
;
$macparts
[
$pos
]
=
$num
;
...
...
Write
Preview
Supports
Markdown
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