Commit 7c0f2543 authored by Simon Kelley's avatar Simon Kelley

Tweak last commit.

parent ca85a282
......@@ -2275,16 +2275,16 @@ static void do_options(struct dhcp_context *context,
t2val = hval;
}
/* ensure T1 is still < T2 */
if (t2val <= t1val)
t1val = t2val - 1;
while (fuzz > (t1val/8))
fuzz = fuzz/2;
t1val -= fuzz;
t2val -= fuzz;
/* ensure T1 is still < T2 */
if (t2val <= t1val)
t1val = t2val - 1;
option_put(mess, end, OPTION_T1, 4, t1val);
option_put(mess, end, OPTION_T2, 4, t2val);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment