summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2015-05-13 13:19:26 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2015-05-13 13:19:26 +0200
commit38e835dede88158d97c3039ed22faabed79c7181 (patch)
treea3c746b25de68cadf082cef7b4d7577a3c153ccf /sysdep
parent9fdf9d29b6b570205c36934aab7e50539e042102 (diff)
Fix in the last commit
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/linux/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c
index 72837ce0..71f58554 100644
--- a/sysdep/linux/netlink.c
+++ b/sysdep/linux/netlink.c
@@ -316,7 +316,7 @@ nl_add_multipath(struct nlmsghdr *h, unsigned bufsize, struct mpnh *nh)
rtnh->rtnh_hops = nh->weight;
rtnh->rtnh_ifindex = nh->iface->index;
- nl_add_attr_u32(h, bufsize, RTA_GATEWAY, nh->gw);
+ nl_add_attr_ipa(h, bufsize, RTA_GATEWAY, nh->gw);
nl_close_nexthop(h, rtnh);
}