projects
/
oweals
/
odhcp6c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e50917
)
Add default T1, T2, T3 for buggy servers
author
Steven Barth
<steven@midlink.org>
Thu, 12 Sep 2013 12:48:57 +0000
(14:48 +0200)
committer
Steven Barth
<steven@midlink.org>
Thu, 12 Sep 2013 12:48:57 +0000
(14:48 +0200)
src/dhcpv6.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6.c
b/src/dhcpv6.c
index 785b57b03aedf1543dea2ff08a08594599873ceb..50bbb0225cf20755f320c8906d03613de0598df2 100644
(file)
--- a/
src/dhcpv6.c
+++ b/
src/dhcpv6.c
@@
-821,6
+821,15
@@
static int dhcpv6_handle_reply(enum dhcpv6_msg orig,
}
}
+ if (t1 == UINT32_MAX)
+ t1 = 300;
+
+ if (t2 == UINT32_MAX)
+ t2 = 600;
+
+ if (t3 == UINT32_MAX)
+ t3 = 3600;
+
return true;
}