The libnl-tiny library does not provide a nla_put_be32(), use nla_put_u32()
again in conjunction with htonl() to convert the values.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
}
if (okey)
- nla_put_be32(nlm, IFLA_VTI_OKEY, okey);
+ nla_put_u32(nlm, IFLA_VTI_OKEY, htonl(okey));
if (ikey)
- nla_put_be32(nlm, IFLA_VTI_IKEY, ikey);
+ nla_put_u32(nlm, IFLA_VTI_IKEY, htonl(ikey));
nla_nest_end(nlm, infodata);
nla_nest_end(nlm, linkinfo);