projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a2478a
)
sd-rtnl: mark nested attributes with the NLA_F_NESTED flag
author
Tom Gundersen
<teg@jklm.no>
Wed, 29 Oct 2014 09:52:07 +0000
(10:52 +0100)
committer
Tom Gundersen
<teg@jklm.no>
Wed, 29 Oct 2014 09:52:07 +0000
(10:52 +0100)
The kernel mostly does not check this, but let's be consisntent and allways set it anyway. Based
on patch from Susant Sahani.
src/libsystemd/sd-rtnl/rtnl-message.c
patch
|
blob
|
history
diff --git
a/src/libsystemd/sd-rtnl/rtnl-message.c
b/src/libsystemd/sd-rtnl/rtnl-message.c
index
dac3061
..
ccef716
100644
(file)
--- a/
src/libsystemd/sd-rtnl/rtnl-message.c
+++ b/
src/libsystemd/sd-rtnl/rtnl-message.c
@@
-725,7
+725,7
@@
int sd_rtnl_message_open_container(sd_rtnl_message *m, unsigned short type) {
if (r < 0)
return r;
- r = add_rtattr(m, type, NULL, size);
+ r = add_rtattr(m, type
| NLA_F_NESTED
, NULL, size);
if (r < 0)
return r;