Commit Graph

95 Commits

Author SHA1 Message Date
christos
8de5cf0e33 Coverity CID 2639: Fix obvious bug in loop handling. Using and freeing the
wrong pointer.
2006-04-02 01:10:39 +00:00
christos
995a3df3f0 PR/33174: Wolfgang Stukenbrock: dhcpd fails to deliver hostnames for dynamic
ranges because it is using the wrong universe in the host lookup.
2006-03-31 17:28:50 +00:00
drochner
9fbefaf7c9 merge dhcp-3.0.3 2005-08-11 17:13:21 +00:00
drochner
1b6f9e91ef import ISC dhcp-3.0.3 onto the vendor branch 2005-08-11 16:54:17 +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
jmc
7a0ba84f10 gcc 2.96 requires all declarations before variable usage so the last set of
changes to fix -Wunitialized broke on vax. Moved definitions of
option and op before the initializations.
2005-06-16 22:04:24 +00:00
he
ab70040846 Add initialization of local variable to appease -Wuninitialized.
Marked with XXXGCC for arm and sparc64 compilers (found while
building for those).

Reviewed by lukem.
2005-06-10 23:48:24 +00:00
chs
7bbdd188e1 appease gcc -Wuninitialized on hp700. 2005-06-05 19:08:28 +00:00
lukem
7f4d732106 appease gcc -Wuninitialized 2005-06-02 11:10:00 +00:00
lukem
51d9d5224b omapi_io_destroy(): ensure last is initialized before use, similar to the
method used in omapi_unregister_io_object().
Detected with gcc -Wuninitialized
2005-06-02 11:09:02 +00:00
lukem
f1ce52a40f Don't attempt to close a random file descriptor.
Detected with gcc -Wuninitialized.
2005-06-02 05:45:59 +00:00
lukem
8fe660271c Ensure name_str is initialized because we try to free it later.
Detected with gcc -Wuninitialized.
2005-06-02 05:33:01 +00:00
lukem
edd6967461 Sanity checking. Detected with gcc -Wuninitialized 2005-06-02 05:30:12 +00:00
christos
9ab78e153b use /dev/bpf 2004-12-01 23:45:12 +00:00
christos
aad48c44a7 One bpf is enough. 2004-12-01 23:23:39 +00:00
christos
be07a6cfdb One bpf is enough 2004-12-01 23:22:42 +00:00
dsl
cfe7f80ff0 Add (unsigned char) cast to ctype functions 2004-10-29 20:51:11 +00:00
perry
808ab1197e Use packet length from IP header instead of packet length from BPF
header.
Patches given to me by Ted Lemon.
This avoids using potentially garbage data returned if the ethernet
driver returns a packet that's too long.
2004-10-22 05:22:39 +00:00
mellon
ed5b9801d3 Don't log overly-long (>32 byte) client hostnames. 2004-06-11 19:54:02 +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
darrenr
221fa57241 With recent changes to BPF, pushing the default buffer size to 1MB, running
a bunch of small daemons that seem small packet flows can easily chew up
significant kernel memory (each BPF device opened takes 2*buffersize of
wired memory.)  In each of these applications, add code to set the buffer
size to 32k before setting the interface.
2004-04-10 17:53:05 +00:00
nakayama
083eb7818c Use _LP64 to indicate 64-bit platform, per suggestion on source-changes@. 2004-04-05 13:06:23 +00:00
nakayama
cf7c3ba713 s/__sparc_v9__/__sparc64__/
"gcc -m32 -mcpu=ultrasparc" defines __sparc_v9__, so __sparc64__ is
more appropriate to indicate a 64-bit environment.
2004-04-04 11:59:51 +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
65489ae9e4 Add omapi key. 2004-03-30 19:41:35 +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
de4e43d0c5 - Add declarations for lhs_context and rhs_context. For some reason these
were missing from the diff between 3.0.1rc11 and 3.0.1rc12, so the previous
  commit didn't compile.   :'(
2003-10-27 21:08:25 +00:00
mellon
0f26f5c9ea - Apply patches from ISC DHCP 3.0.1rc12 to correct a parser bug that causes
the ISC DHCP server to fail to start when it is configured to use the
  ad-hoc DNS update mechanism.   This fixes PR#20460 and PR#23284 (once
  this is pulled up to the 1.6 branch).
2003-10-27 20:16:09 +00:00
mellon
5ec655da0e increase ttl - internet is getting big. 2003-10-24 05:30:33 +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
mycroft
769c59467e The I/O path is assymetric -- we can't deal with IPsec packets coming in, so
don't send them out.  For now.

XXX "Oh my does this need work."
2003-09-25 01:01:39 +00:00
agc
865595bdf3 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22253, verified by myself.
2003-08-07 09:20:39 +00:00
abs
7aabc9df8a Skip !IFF_BROADCAST interfaces (such as strip). After discussion
with Ted Lemon leave in checks for IFF_LOOPBACK and IFF_POINTTOPOINT
in case an OS incorrectly marks them with IFF_BROADCAST.
Patch submitted back to dhcp-server@isc.org
2003-05-16 15:16:41 +00:00
drochner
8aee2aa821 Get rid of an extremely annoying message logged with "error"
priority:
"<src address>: network <whatever>: no free leases"
on each "foreign" request if I'm just not serving for
unknown clients.
Replace it which a less misleading message at "info" priority.
2003-04-11 17:11:11 +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
perry
fbf638659e Spelling errors, some from Igor Sobrado, PR misc/19909
This needs to be fed back to Ted Lemon
2003-03-31 17:27:57 +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
wiz
644690013e Replace some man macros with mdoc macros, and clean up a bit. 2003-03-17 07:28:59 +00:00
wiz
76c4d78af3 eliminating, not elimininating. From Igor Sobrado in PR 20723. 2003-03-15 22:38:46 +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
perry
8a49ec08e4 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +00:00
groo
9361711536 Be careful about destination buffer having positive size. 2003-01-15 00:29:13 +00:00