summaryrefslogtreecommitdiffhomepage
path: root/interface-ip.c
diff options
context:
space:
mode:
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);
}
}