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:
479cd9f
)
PD: don't consider deprecated assigned prefixes when calculating avilable PD size
author
Steven Barth
<steven@midlink.org>
Wed, 13 Aug 2014 14:53:06 +0000
(16:53 +0200)
committer
Steven Barth
<steven@midlink.org>
Wed, 13 Aug 2014 14:53:06 +0000
(16:53 +0200)
src/dhcpv6-ia.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6-ia.c
b/src/dhcpv6-ia.c
index 90dcaf53f46ff66a83fdda5d97041bf9a656020c..2fef6267225b39005419a2b990f80035e7d63be9 100644
(file)
--- a/
src/dhcpv6-ia.c
+++ b/
src/dhcpv6-ia.c
@@
-595,7
+595,7
@@
static void update(struct interface *iface)
int minprefix = -1;
for (int i = 0; i < len; ++i) {
- if (addr[i].prefix > minprefix)
+ if (addr[i].pref
erred > 0 && addr[i].pref
ix > minprefix)
minprefix = addr[i].prefix;
addr[i].addr.s6_addr32[3] = 0;