sd-rtnl: mark nested attributes with the NLA_F_NESTED flag

The kernel mostly does not check this, but let's be consisntent and allways set it anyway. Based
on patch from Susant Sahani.
This commit is contained in:
Tom Gundersen
2014-10-29 10:52:07 +01:00
parent 0a2478a918
commit fcf81a54a4
+1 -1
View File
@@ -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;