Commit Graph

191 Commits

Author SHA1 Message Date
mellon
a32e54aef9 Belated import of recent DHCP core dumps, etc. Approved by releng. 2000-06-10 18:04:36 +00:00
matt
a3ab2a3d02 Add/fix FDDI support for NetBSD (& Tru64). [Tru64 has at least one bug left] 2000-05-28 01:27:52 +00:00
thorpej
3a6d2f7276 Define the PXE DHCP option codes. 2000-05-13 04:00:48 +00:00
thorpej
baa6042b06 Add placeholders for Preboot Execution Environment (PXE) options,
from version 2.1 of the PXE spec.
2000-05-13 03:44:51 +00:00
enami
36069eacc0 - Use a tab instead of eight spaces for consistency and better output.
- Fix a typo.
2000-05-10 02:11:34 +00:00
matt
7a16f4991b fix an off by 1 error that prevents bootp from working. 2000-05-08 19:25:10 +00:00
thorpej
f5fc764943 Only invoke hostname(1) and domainname(1) if they exist (tested with the
`type' shell built-in).  Makes it possible to save some space on install
media which uses DHCP.
2000-04-28 16:34:31 +00:00
thorpej
d07c2b5b7e Fix a missing ~ which caused fixed-address leases to be treated like
normal leases, resulting in an eventual NULL-deref in supersede_lease().

Fixes PR #9976.
2000-04-26 23:11:20 +00:00
thorpej
acd373ca8f .cvsignore bad! bad _MelloN_, no biscuit! 2000-04-25 21:18:44 +00:00
thorpej
7b512c0ae2 Avoid an unaligned access. 2000-04-24 05:38:51 +00:00
thorpej
0ce0f58ae0 Fix a bug where a clause in the client configuration file like:
default nis-domain "";

would cause a NULL pointer deref while writing out the lease into
the persistent database if the server didn't include an nis-domain
option in the reply.
2000-04-24 05:27:51 +00:00
mellon
e2074b3bbf Fix dhcpctl subdir build. 2000-04-23 21:42:29 +00:00
thorpej
7188cd9f3b Back out previous; it builds on LP64 platforms now. 2000-04-23 18:39:54 +00:00
thorpej
4ea436d3e0 Address LP64 issues (just add some casts; the code is safe). 2000-04-23 18:39:00 +00:00
sommerfeld
c8ad38a791 Disable build of client on alpha due to LP64 issues. 2000-04-23 03:08:12 +00:00
sommerfeld
e012be0e69 unsigned != size_t (tripped up build on alpha). 2000-04-23 02:47:57 +00:00
sommerfeld
4a799f6f27 disable dhcpctl subdir to un-break build since it doesn't have a makefile yet 2000-04-22 18:04:34 +00:00
mellon
e04a818808 Initial merge of ISC DHCP 3.0 into NetBSD tree (incomplete) 2000-04-22 08:18:11 +00:00
mellon
e86d6c24ba Initial import of version 3 of the ISC DHCP distribution. 2000-04-22 07:11:26 +00:00
soren
e7d9a82c6f 'If it comes from a client that already knows its address and is not
requesting a broadcast response, and we can unicast to a client without
using the ARP protocol, sent it directly to that client.'

Make some ARCS firmware happy.

Many thanks to Ted Lemon for debugging this.
1999-12-07 23:23:16 +00:00
mjl
2c3c567c94 From FreeBSD misc/14850: When communicating with a BOOTP server,
dhclient would fail to configure the interface and crash. Added check
for lease time option present before using that value.
1999-11-15 15:50:16 +00:00
hubertf
4fa18183d7 Install example dhcpd.conf into /usr/share/examples/dhcp 1999-10-09 15:33:36 +00:00
enami
9ce05a481a Move the actual work when dhclient got signal out of signal handlers,
and make not to exit the program if the signal is hanldled properly.

Reviewed by: Ted Lemon
1999-08-24 03:25:31 +00:00
thorpej
4281f72137 If we get an NIS domain name, set it. If we set, clear it when the
lease is released.
1999-06-04 20:40:50 +00:00
thorpej
a2b8006ca9 If we get a host-name option, set it. 1999-06-04 20:12:52 +00:00
thorpej
26e41e4c44 The host-name option is text. 1999-06-04 20:09:12 +00:00
mellon
3c82a97a8d Merge with ISC source. 1999-04-26 15:47:03 +00:00
mellon
58d7576468 Patchlevel 27 1999-04-26 15:43:06 +00:00
mellon
177a06d1a4 Resolve conflicts from Patchlevel 25 import. 1999-04-09 17:55:01 +00:00
mellon
95518966c2 Patchlevel 25 1999-04-09 17:52:05 +00:00
mellon
a20da108b1 Merge patchlevel 22. 1999-03-30 03:12:28 +00:00
mellon
2edefbc506 Import 2.0b1pl22, the pecked-to-death-by-ducks patchlevel. 1999-03-30 03:10:46 +00:00
mellon
6ad36e81ac Re-add README file and RELNOTES, as they may actually be of some interest. 1999-03-30 01:54:50 +00:00
mellon
ba99fde8c5 Merge patchlevel 21 1999-03-30 01:53:57 +00:00
mellon
1cc8443c6f Patchlevel 21 1999-03-30 01:51:44 +00:00
mellon
029f7c27bf Resolve conflicts in pl20a merge. 1999-03-30 00:12:14 +00:00
mellon
4f34fd30b5 Patchlevel 20 fixes 1999-03-30 00:10:08 +00:00
mellon
579e9efdc7 Resolve conflicts in pl20 merge. 1999-03-29 23:08:21 +00:00
mellon
3b4ecb27b5 Patchlevel 20 1999-03-29 23:00:49 +00:00
drochner
61e1563f2b Revert to the last ISC version. The local modification breaks bootp
clients which have the requested filename fixed in ROM.
The intended echoing behaviour is already provided by the ISC version
(if no special bootfile name is specified in dhcpd.conf).
1999-03-26 20:15:01 +00:00
mellon
7ccf21d94d Fix conflicts in merge. 1999-03-26 17:52:45 +00:00
mellon
28f100096f Patchlevel 19 1999-03-26 17:49:19 +00:00
lukem
7e1c62baf8 set MKLINT=no. noted by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp> 1999-03-13 23:17:46 +00:00
mycroft
867aa13949 Remove bashism, so this actually works. 1999-03-05 22:37:43 +00:00
mellon
0c19a76c66 Add some documentation on customization. 1999-03-05 18:10:36 +00:00
mellon
83ec6e889e Merge with 2.0b1pl18 1999-03-05 17:52:44 +00:00
mellon
9c2d0f125c 2.0 Beta 1 Patchlevel 18 1999-03-05 17:43:43 +00:00
mellon
e7b0bff792 Resolve conflicts in 2.0b1pl15 1999-02-24 04:14:34 +00:00
mellon
984693e047 V2 Beta 1 Patchlevel 15 1999-02-24 04:11:01 +00:00
mellon
aa0c70bd9e Merge Patchlevel 14 with trunk. 1999-02-19 22:39:06 +00:00
mellon
a72b8385ee Not needed in NetBSD 1999-02-19 22:38:07 +00:00
mellon
db803634cc Not needed in NetBSD 1999-02-19 22:01:10 +00:00
mellon
4c4fb0b6fd Patchlevel 14 1999-02-19 21:58:14 +00:00
mellon
d6ea104a53 Update call to write_client_lease. 1999-02-18 22:14:36 +00:00
mellon
8087ed2222 fallback_interface no longer needed. 1999-02-18 22:14:01 +00:00
mellon
2b8be45751 Resolve conflicts in 2.0b1pl13 import 1999-02-18 22:04:06 +00:00
mellon
d661579959 Obsolete 1999-02-18 21:50:49 +00:00
mellon
c6b1d8a95d DHCP 2.0b1pl13 1999-02-18 21:48:47 +00:00
lukem
dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
cjs
6831000ea5 Don't include bsd.obj.mk here; you can't include it without first
including bsd.own.mk.
1999-02-12 03:01:56 +00:00
thorpej
bf316e0bb0 Make sure SIGTERM is blocked in the SIGHUP handler and vice versa. 1999-02-10 03:00:06 +00:00
thorpej
be28226520 On second thought, don't use atexit(3). Instead, invoke cleanup() directly
from catch_sigterm() before calling exit().  This follows the style of
the rest of the code.
1999-02-05 18:17:27 +00:00
thorpej
3771908e3d Reinitialize leases on SIGHUP, and release leases and exit on SIGTERM. 1999-02-05 09:13:32 +00:00
thorpej
44e3c78cf9 Make sure the pidfile is gone upon exit. 1999-02-05 08:52:50 +00:00
tron
6f942f16fd Add RCS Id as suggested by Rob Windsor in PR bin/6931. 1999-02-03 00:19:00 +00:00
thorpej
cd43b55bc4 Fix a typo in an ACTION_APPEND message. 1999-02-02 09:40:46 +00:00
thorpej
876f7929f4 Use ping -n; if we're running a local nameserver, it may try to
reverse-resolve the IP address we're given, which will take a while
to time out, since we're still scanning cached leases (i.e. the network
isn't up yet).
1999-01-28 23:09:07 +00:00
sommerfe
6df264a8da Fix pr6874: add way to specify last resort filename 1999-01-25 22:31:45 +00:00
cgd
c014ce1d6e Don't use the RCS 'Name' keyword, it makes doing release builds more
annoying for no good reason.  Since a version seems to be desired,
define an OS_VERSION string in the Makefile and use it in the code.
1999-01-19 07:05:59 +00:00
frueauf
26adfcb85a Fix grammatical error, closes pr 6105 by Mason Loring Bliss. 1998-10-24 19:54:44 +00:00
jtk
46510bb5d4 make network-location-changed actually work 1998-10-08 14:13:25 +00:00
jtk
5372885234 fix synopsis, per pr #6194 1998-09-25 00:47:01 +00:00
marc
3386dbf8ac refer to dhclient-script(8) 1998-09-24 04:45:32 +00:00
marc
d09fc7c471 include the appreviation in the synopsis so that man -k works
intelligently.
1998-09-24 04:33:45 +00:00
kleink
c039c662a2 GMT -> UTC 1998-09-10 19:30:37 +00:00
mellon
f0ee4a66e9 Oops, release the lease _before_ deconfiguring the interface. 1998-09-04 18:03:56 +00:00
mellon
2c64334bb9 Build sysconfd and statmsg 1998-09-04 18:01:59 +00:00
mellon
17cf92b7ae Reincorporate sysconfd support. Add support for releasing leases. 1998-09-04 18:01:14 +00:00
mellon
f397d4ea4a Add prototype for client_reinit() 1998-09-04 18:00:17 +00:00
mellon
65a4f4bad8 Mention that statmsg depends on sysconfd. 1998-09-04 17:58:16 +00:00
mellon
a8737b8da6 Documentation for sysconfd. 1998-09-04 17:57:33 +00:00
mellon
753854cd53 Add release-current-dhcp-leases message. 1998-09-04 17:51:36 +00:00
mellon
d424c62366 Document statmsg command. 1998-09-04 17:50:23 +00:00
mellon
b9680f85dc Add sysconf message to release DHCP-acquired leases. 1998-09-04 16:47:56 +00:00
enami
b8d6676d67 add missing endif. 1998-08-26 02:11:58 +00:00
mycroft
6bbe486e22 If we get a weird vendor ID, just send it back. This is necessary to make at
least one type of system (old NeXTs) boot.
1998-08-09 16:47:52 +00:00
sommerfe
ff9a2c8d5c oops, KNF that 1998-07-31 21:38:43 +00:00
sommerfe
c13b52407e Fix long-standing bug which causes dhclient to clobber interface configs on uninvolved interfaces 1998-07-31 21:27:08 +00:00
mycroft
3c0eeb1ed3 const poisoning. 1998-07-26 15:34:18 +00:00
mellon
e7910d8d32 Hard-code NetBSD-specific directory names 1998-07-11 00:04:23 +00:00
mellon
dac2726066 Document NetBSD-specific system requirements. 1998-07-11 00:02:39 +00:00
mellon
b13a0491e0 Hard-code NetBSD-specific directory names 1998-07-11 00:02:08 +00:00
mellon
53904df9e4 Document NetBSD-specific system requirements. 1998-07-10 23:58:27 +00:00
thorpej
c7a84c77fa If the client requests a specific boot file, echo it back, per RFC951. 1998-05-31 00:37:38 +00:00
mellon
9f60f89a46 Version 2.0 Beta 1 Patchlevel 1 1998-05-18 06:53:52 +00:00
cgd
83202075dd allow LDSTATIC definition to be overridden by bsd.own.mk/mk.conf 1998-03-04 01:38:57 +00:00
cgd
af8d9682ca NOLINT isn't necessary here, so don't define it. 1998-03-04 01:38:38 +00:00
mellon
0c2e0b74fe Build the dhclient.leases and dhclient-script man pages 1997-11-22 09:37:25 +00:00
mellon
911d9b399b Build the dhcpd.leases man page 1997-11-22 09:32:12 +00:00
mellon
5c92c77573 Build the dhcp-options man page 1997-11-22 09:31:00 +00:00