Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
int i = 0, rem;
nla_for_each_nested(attr, data[IFLA_BOND_ARP_IP_TARGET], rem) {
- __be32 target = nla_get_u32(attr);
+ __be32 target = nla_get_be32(attr);
targets[i++] = target;
}
targets_added = 0;
for (i = 0; i < BOND_MAX_ARP_TARGETS; i++) {
if (bond->params.arp_targets[i]) {
- nla_put_u32(skb, i, bond->params.arp_targets[i]);
+ nla_put_be32(skb, i, bond->params.arp_targets[i]);
targets_added = 1;
}
}