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
ddfa53e9
Commit
ddfa53e9
authored
Sep 24, 2014
by
Andre Nathan
Committed by
Stéphane Graber
Sep 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix presentation of IPv6 addresses and gateway
Signed-off-by:
Andre Nathan
<
andre@digirati.com.br
>
Acked-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
5492e969
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
confile.c
src/lxc/confile.c
+4
-4
No files found.
src/lxc/confile.c
View file @
ddfa53e9
...
...
@@ -2101,15 +2101,15 @@ static int lxc_get_item_nic(struct lxc_conf *c, char *retv, int inlen,
if
(
netdev
->
ipv6_gateway_auto
)
{
strprint
(
retv
,
inlen
,
"auto"
);
}
else
if
(
netdev
->
ipv6_gateway
)
{
char
buf
[
INET_ADDRSTRLEN
];
inet_ntop
(
AF_INET
,
netdev
->
ipv6_gateway
,
buf
,
sizeof
(
buf
));
char
buf
[
INET
6
_ADDRSTRLEN
];
inet_ntop
(
AF_INET
6
,
netdev
->
ipv6_gateway
,
buf
,
sizeof
(
buf
));
strprint
(
retv
,
inlen
,
"%s"
,
buf
);
}
}
else
if
(
strcmp
(
p1
,
"ipv6"
)
==
0
)
{
struct
lxc_list
*
it2
;
lxc_list_for_each
(
it2
,
&
netdev
->
ipv6
)
{
struct
lxc_inetdev
*
i
=
it2
->
elem
;
char
buf
[
INET_ADDRSTRLEN
];
struct
lxc_inet
6
dev
*
i
=
it2
->
elem
;
char
buf
[
INET
6
_ADDRSTRLEN
];
inet_ntop
(
AF_INET6
,
&
i
->
addr
,
buf
,
sizeof
(
buf
));
strprint
(
retv
,
inlen
,
"%s
\n
"
,
buf
);
}
...
...
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