diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-02-11 22:50:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-02-11 22:50:00 +0000 |
commit | afdf1aa62ffc283f59a1699cb636c362485f2eeb (patch) | |
tree | f5a8261a27470155eed81dbe9d0d740c609935d2 /usr.sbin/dhcp/dhclient/clparse.c | |
parent | 42da94a1ff57acac34fea98eeb640b9267949d7e (diff) |
ship lease time in network order; cas@trans-nt.com
Diffstat (limited to 'usr.sbin/dhcp/dhclient/clparse.c')
-rw-r--r-- | usr.sbin/dhcp/dhclient/clparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcp/dhclient/clparse.c b/usr.sbin/dhcp/dhclient/clparse.c index ed0dbd7f9cc..c284da920e0 100644 --- a/usr.sbin/dhcp/dhclient/clparse.c +++ b/usr.sbin/dhcp/dhclient/clparse.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: clparse.c,v 1.3 1998/09/17 15:31:15 deraadt Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; +"$Id: clparse.c,v 1.4 1999/02/11 22:49:59 deraadt Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -106,7 +106,7 @@ int read_client_conf () top_level_config.requested_options [top_level_config.requested_option_count++] = DHO_HOST_NAME; - requested_lease_time = 7200; + requested_lease_time = htonl(7200); top_level_config.send_options [DHO_DHCP_LEASE_TIME].data = (unsigned char *)&requested_lease_time; top_level_config.send_options [DHO_DHCP_LEASE_TIME].len |