diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2016-03-04 19:36:32 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2016-03-04 19:36:35 +0100 |
commit | da687c2689f7ff2af1dccc9a428806dd15c3d554 (patch) | |
tree | 06a33edb15c80baf6dd69da3bc2c92baefbce8d1 /system-linux.c | |
parent | e27e23f76437edc7871c03c8c92d69fbe52d30f5 (diff) |
system-linux: fix build error
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>
Diffstat (limited to 'system-linux.c')
-rw-r--r-- | system-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system-linux.c b/system-linux.c index 2d56808..052bc94 100644 --- a/system-linux.c +++ b/system-linux.c @@ -2224,10 +2224,10 @@ static int system_add_vti_tunnel(const char *name, const char *kind, } 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); |