summaryrefslogtreecommitdiff
path: root/interface-ip.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-25 09:54:13 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-05-25 09:54:13 +0200
commit8758677c03d3c94d3fd81c8e44b3a7307b693e9c (patch)
treef20cdab8705b7766ba72c6c2fc664ccc154c3aea /interface-ip.c
parent2dfdcd4c6a2381bedb6e1b10ff0fdc4246802c82 (diff)
downloadnetifd-8758677c03d3c94d3fd81c8e44b3a7307b693e9c.tar.gz
fix endian handling of the ipv4 broadcast address
Diffstat (limited to 'interface-ip.c')
-rw-r--r--interface-ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-ip.c b/interface-ip.c
index e09a74f..14feb6f 100644
--- a/interface-ip.c
+++ b/interface-ip.c
@@ -301,7 +301,7 @@ interface_update_proto_addr(struct vlist_tree *tree,
uint32_t *a = (uint32_t *) &a_new->addr;
mask >>= a_new->mask;
- a_new->broadcast = *a | mask;
+ a_new->broadcast = *a | htonl(mask);
}
}