projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dfdcd4
)
fix endian handling of the ipv4 broadcast address
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 25 May 2012 07:54:13 +0000
(09:54 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 25 May 2012 07:54:13 +0000
(09:54 +0200)
interface-ip.c
patch
|
blob
|
history
diff --git
a/interface-ip.c
b/interface-ip.c
index e09a74fd932f8603ba4c4e1b034ddea3333dcf30..14feb6fa6ddcdf41b353d6cd82c0c2347c1f9701 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)
;
}
}