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
41a3300d
Unverified
Commit
41a3300d
authored
Sep 11, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: use correct type in lxc_netns_set_nsid()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
88fbc010
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
network.c
src/lxc/network.c
+2
-2
No files found.
src/lxc/network.c
View file @
41a3300d
...
@@ -3196,7 +3196,7 @@ enum {
...
@@ -3196,7 +3196,7 @@ enum {
int
lxc_netns_set_nsid
(
int
fd
)
int
lxc_netns_set_nsid
(
int
fd
)
{
{
ssize_
t
ret
;
in
t
ret
;
char
buf
[
NLMSG_ALIGN
(
sizeof
(
struct
nlmsghdr
))
+
char
buf
[
NLMSG_ALIGN
(
sizeof
(
struct
nlmsghdr
))
+
NLMSG_ALIGN
(
sizeof
(
struct
rtgenmsg
))
+
NLMSG_ALIGN
(
sizeof
(
struct
rtgenmsg
))
+
NLMSG_ALIGN
(
1024
)];
NLMSG_ALIGN
(
1024
)];
...
@@ -3209,7 +3209,7 @@ int lxc_netns_set_nsid(int fd)
...
@@ -3209,7 +3209,7 @@ int lxc_netns_set_nsid(int fd)
ret
=
netlink_open
(
&
nlh
,
NETLINK_ROUTE
);
ret
=
netlink_open
(
&
nlh
,
NETLINK_ROUTE
);
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
-
1
;
memset
(
buf
,
0
,
sizeof
(
buf
));
memset
(
buf
,
0
,
sizeof
(
buf
));
hdr
=
(
struct
nlmsghdr
*
)
buf
;
hdr
=
(
struct
nlmsghdr
*
)
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