The kernel expects the IFLA_VTI_IKEY and IFLA_VTI_OKEY netlink attributes to
be in network byte order, so ensure that the values are stored accordingly.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
}
if (okey)
- nla_put_u32(nlm, IFLA_VTI_OKEY, okey);
+ nla_put_be32(nlm, IFLA_VTI_OKEY, okey);
if (ikey)
- nla_put_u32(nlm, IFLA_VTI_IKEY, ikey);
+ nla_put_be32(nlm, IFLA_VTI_IKEY, ikey);
nla_nest_end(nlm, infodata);
nla_nest_end(nlm, linkinfo);