projects
/
oweals
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a06dd64
)
Fix logic inversion
author
Steven Barth
<steven@midlink.org>
Tue, 14 Apr 2015 14:18:01 +0000
(16:18 +0200)
committer
Steven Barth
<steven@midlink.org>
Tue, 14 Apr 2015 14:21:39 +0000
(16:21 +0200)
Signed-off-by: Steven Barth <steven@midlink.org>
src/dhcpv6-ia.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6-ia.c
b/src/dhcpv6-ia.c
index 1476e021a590d713d4882c94bc2771e2a2f35b50..7e8e53520036ebab024101705838877c958a04df 100644
(file)
--- a/
src/dhcpv6-ia.c
+++ b/
src/dhcpv6-ia.c
@@
-596,7
+596,7
@@
static void update(struct interface *iface)
}
struct dhcpv6_assignment *border = list_last_entry(&iface->ia_assignments, struct dhcpv6_assignment, head);
- if (minprefix
<= 32 || minprefix >
64)
+ if (minprefix
> 32 && minprefix <=
64)
border->assigned = 1U << (64 - minprefix);
else
border->assigned = 0;