From fcf81a54a4a01349cbc75a9f04d49c6084c4f624 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Wed, 29 Oct 2014 10:52:07 +0100 Subject: [PATCH] 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. --- src/libsystemd/sd-rtnl/rtnl-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-rtnl/rtnl-message.c b/src/libsystemd/sd-rtnl/rtnl-message.c index dac306127..ccef7165b 100644 --- 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; -- 2.30.2