Commit Graph

38 Commits

Author SHA1 Message Date
christos b3d08e40dc Instead of printing the raw suspect value instead of the name (!?!?), print the
name and the suspect value vis encoded.
2011-08-17 08:06:38 +00:00
christos 3b8a1d51ed CVE-2011-0997 dhclient: insufficient sanitization of certain DHCP
response values. Apply patch by hand from the 3.1-ESV-R1 release.
2011-04-06 20:24:16 +00:00
snj c4acb3fa95 Fix a thinko: the DHCP _client_ is doing the requesting.
Reported by Anonymous in PR misc/39162.
2010-02-17 01:17:36 +00:00
christos 96a538bff1 Limit the length of the address mask before we copy it. 2009-06-23 19:50:50 +00:00
mellon 3265aaf1d6 Get rid of a spurious dereference in DHCPRELEASE. 2008-02-26 05:03:29 +00:00
tron 66ac2330dc Teach dhclient(8) to exit gracefully if another instance is already
running instead of overwriten the PID file, removing IPv4 address
from the network interface(s) and leaving the system in a broken state.

This fixes PR bin/26504 by Jun-ichiro itojun Hagino. Patch supplied
by Rivo Nurges during NetBSD's second Bugathon.
2006-10-07 14:14:06 +00:00
christos a6fd778155 don't zerodivide when "backoff-cutoff 0;" tested by zafer 2006-08-03 20:17:43 +00:00
drochner 9fbefaf7c9 merge dhcp-3.0.3 2005-08-11 17:13:21 +00:00
mellon 3323a8aa52 Add a -o flag that causes the client to exit once it's bound a lease. 2005-07-01 01:19:02 +00:00
lukem 7f4d732106 appease gcc -Wuninitialized 2005-06-02 11:10:00 +00:00
christos be07a6cfdb One bpf is enough 2004-12-01 23:22:42 +00:00
itojun 937e8b0fbe add O_TRUNC to open(2). revision 1.11 used fopen(foo, "w") which implies
truncation of opened file.  it should suppress bogus "corrupted lease file"
warning and broken dhclient.leases staying around.
2004-05-06 09:07:54 +00:00
mrg 8808c7e901 create the dhclient.leases file mode 600 for now as it may contain
"media" lines that contain wireless network keys, that eg, ifconfig(8)
carefully hides.

this is not a complete solution, but it's OK until one arrives.

approved by mellon@.  fixes the problem described in PR#22271.
2004-04-04 02:35:21 +00:00
mellon 47427353e5 Cut out some stuff that can't or shouldn't be defined in SMALL builds. 2004-04-02 22:53:15 +00:00
mellon 5bbdf02211 - If we find a lease in the lease file that matches a predefined lease,
and it's expiry time is earlier than the expiry on the predefined lease,
  don't nuke the predefined lease.
2004-03-31 19:05:18 +00:00
mellon 53b16d12a9 Document omapi port and omapi key 2004-03-30 20:05:01 +00:00
mellon 15943a0402 If an omapi key is configured, use it. 2004-03-30 19:40:58 +00:00
mellon 40a59b47b4 Add support for OMAPI KEY configuration. 2004-03-30 19:39:39 +00:00
mellon dddda170ba Write the pid file twice, so scripts can kill client before it daemonizes. 2003-10-24 05:27:55 +00:00
mellon bc6c928df7 Attempt to fix a bug which throws away valid static leases
when parsing dhclient.leases. PR bin/9405.
2003-10-24 05:19:31 +00:00
perry 63b7f42d33 occurrance->occurrence
Igor Sobrado, PR misc/19909
Will feed back to Ted Lemon
2003-03-31 17:32:28 +00:00
perry d2e86b176e Some spelling changes.
Will feed back to Ted Lemon
2003-03-31 17:31:19 +00:00
wiz a29072f49a 3Com, not 3com. From jmc@openbsd. 2003-03-31 11:36:22 +00:00
wiz 0385ba9e85 Fix section in Xref. 2003-03-17 07:30:38 +00:00
drochner b6ae80da0f merge dhcp-3.0.1rc11 2003-02-18 17:08:38 +00:00
drochner 49c6e76122 import of ISC dhcp-3.0.1rc11 2003-02-18 16:37:52 +00:00
drochner d6101bf1eb get closer to the original in a whitespace matter 2002-06-11 14:27:21 +00:00
drochner c12aee07f2 merge dhcp-3.0.1rc9 2002-06-11 13:59:59 +00:00
drochner 0fbf47fd83 import of ISC dhcp-3.0.1rc9 2002-06-11 12:24:31 +00:00
itojun 5b43820fcf WARNS=1 clean. patch submitted to dhcp-bugs@isc.org. 2002-06-10 00:30:33 +00:00
christos abf0491189 fix the error message to print the correct value. Pointed out by Richard Rauch 2002-04-03 03:32:50 +00:00
wiz 78e040dc00 Check for '-' as first character only after we checked all recognized
options. Problem report and fix by Tero Kivinen in bin/14935.
2001-12-14 15:20:17 +00:00
drochner 6c1ac34eb0 remove .cvsignore files which got imported inadvertently, as pointet
out by Ben Harris
2001-08-07 08:31:16 +00:00
wiz 2b4b375b7e Remove unneeded files. okay'd by drochner. 2001-08-03 15:35:09 +00:00
wiz 0624fa6b95 Replace remaining occurances of DBDIR and RUNDIR with corresponding
NetBSD paths.
2001-08-03 13:47:17 +00:00
drochner fce24bb552 pull in manpage adaptions / corrections from usr.sbin/dhcp 2001-08-03 13:34:08 +00:00
drochner e0c9112eff pull in code patches from usr.sbin/dhcp 2001-08-03 13:07:03 +00:00
drochner bd5592e542 import of ISC dhcp-3.0rc10 2001-08-03 11:35:28 +00:00