From: David Ahern Date: Fri, 7 Jun 2019 22:38:07 +0000 (-0700) Subject: libnetlink: Set NLA_F_NESTED in rta_nest X-Git-Tag: v5.3.0~67^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2360b8cb21cca737de191aaa6751bf8ed3bbc0f6;p=thirdparty%2Fiproute2.git libnetlink: Set NLA_F_NESTED in rta_nest Kernel now requires NLA_F_NESTED to be set on new nested attributes. Set NLA_F_NESTED in rta_nest. Signed-off-by: David Ahern --- diff --git a/lib/libnetlink.c b/lib/libnetlink.c index 0d48a3d43..6ae51a9db 100644 --- a/lib/libnetlink.c +++ b/lib/libnetlink.c @@ -1336,6 +1336,7 @@ struct rtattr *rta_nest(struct rtattr *rta, int maxlen, int type) struct rtattr *nest = RTA_TAIL(rta); rta_addattr_l(rta, maxlen, type, NULL, 0); + nest->rta_type |= NLA_F_NESTED; return nest; }