FreeBSD Bugzilla – Attachment 65738 Details for
Bug 97333
net/isc-dhcp3-server: fix size of OPTION 51 in DHCPOFFER for *64 ARCHS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-server-dhcp.c
patch-server-dhcp.c (text/plain), 1.72 KB, created by
Dan Lukes
on 2006-05-22 01:16:21 UTC
(
hide
)
Description:
patch-server-dhcp.c
Filename:
MIME Type:
Creator:
Dan Lukes
Created:
2006-05-22 01:16:21 UTC
Size:
1.72 KB
patch
obsolete
>--- server/dhcp.c.ORIG Wed Feb 22 23:43:27 2006 >+++ server/dhcp.c Mon May 22 01:39:59 2006 >@@ -2442,6 +2442,7 @@ > offered_lease_time = > state -> offered_expiry - cur_time; > >+ state -> expiry = 0; > putULong ((unsigned char *)&state -> expiry, > (unsigned long)offered_lease_time); > i = DHO_DHCP_LEASE_TIME; >@@ -2452,7 +2453,7 @@ > if (option_cache_allocate (&oc, MDL)) { > if (make_const_data (&oc -> expression, > (unsigned char *)&state -> expiry, >- sizeof state -> expiry, >+ 4, > 0, 0, MDL)) { > oc -> option = dhcp_universe.options [i]; > save_option (&dhcp_universe, >@@ -2463,6 +2464,7 @@ > > /* Renewal time is lease time * 0.5. */ > offered_lease_time /= 2; >+ state -> renewal = 0; > putULong ((unsigned char *)&state -> renewal, > (unsigned long)offered_lease_time); > i = DHO_DHCP_RENEWAL_TIME; >@@ -2474,7 +2476,7 @@ > if (make_const_data (&oc -> expression, > (unsigned char *) > &state -> renewal, >- sizeof state -> renewal, >+ 4, > 0, 0, MDL)) { > oc -> option = dhcp_universe.options [i]; > save_option (&dhcp_universe, >@@ -2486,6 +2488,7 @@ > /* Rebinding time is lease time * 0.875. */ > offered_lease_time += (offered_lease_time / 2 > + offered_lease_time / 4); >+ state -> rebind = 0; > putULong ((unsigned char *)&state -> rebind, > (unsigned)offered_lease_time); > i = DHO_DHCP_REBINDING_TIME; >@@ -2496,7 +2499,7 @@ > if (option_cache_allocate (&oc, MDL)) { > if (make_const_data (&oc -> expression, > (unsigned char *)&state -> rebind, >- sizeof state -> rebind, >+ 4, > 0, 0, MDL)) { > oc -> option = dhcp_universe.options [i]; > save_option (&dhcp_universe,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 97333
:
65737
| 65738