Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
ae1dc8b4
Commit
ae1dc8b4
authored
Jun 28, 2017
by
0x0916
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile_utils: supporting new net hwaddr key in update_hwaddr
Signed-off-by:
0x0916
<
w@laoqinren.net
>
parent
4a787c27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
confile_utils.c
src/lxc/confile_utils.c
+4
-5
No files found.
src/lxc/confile_utils.c
View file @
ae1dc8b4
...
@@ -593,9 +593,9 @@ bool lxc_config_net_hwaddr(const char *line)
...
@@ -593,9 +593,9 @@ bool lxc_config_net_hwaddr(const char *line)
}
}
/*
/*
* If we find a lxc.net.
hwaddr in the original config file, we expand it in
* If we find a lxc.net.
[i].hwaddr or lxc.network.hwaddr in the original config
*
the unexpanded_config, so that after a save_config we store the hwaddr for
*
file, we expand it in the unexpanded_config, so that after a save_config we
* re-use.
*
store the hwaddr for
re-use.
* This is only called when reading the config file, not when executing a
* This is only called when reading the config file, not when executing a
* lxc.include.
* lxc.include.
* 'x' and 'X' are substituted in-place.
* 'x' and 'X' are substituted in-place.
...
@@ -608,8 +608,7 @@ void update_hwaddr(const char *line)
...
@@ -608,8 +608,7 @@ void update_hwaddr(const char *line)
if
(
line
[
0
]
==
'#'
)
if
(
line
[
0
]
==
'#'
)
return
;
return
;
if
((
strncmp
(
line
,
"lxc.network.hwaddr"
,
18
)
!=
0
)
&&
if
(
!
lxc_config_net_hwaddr
(
line
))
(
strncmp
(
line
,
"lxc.net.hwaddr"
,
14
)
!=
0
))
return
;
return
;
/* Let config_net_hwaddr raise the error. */
/* Let config_net_hwaddr raise the error. */
...
...
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