diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-25 09:54:13 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-25 09:54:13 +0200 |
commit | 8758677c03d3c94d3fd81c8e44b3a7307b693e9c (patch) | |
tree | f20cdab8705b7766ba72c6c2fc664ccc154c3aea /interface-ip.c | |
parent | 2dfdcd4c6a2381bedb6e1b10ff0fdc4246802c82 (diff) |
fix endian handling of the ipv4 broadcast address
Diffstat (limited to 'interface-ip.c')
-rw-r--r-- | interface-ip.c | 2 |
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); } } |