projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix endian handling of the ipv4 broadcast address
[project/netifd.git]
/
interface-ip.c
diff --git
a/interface-ip.c
b/interface-ip.c
index
e09a74f
..
14feb6f
100644
(file)
--- 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)
;
}
}