| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
ok benno@
|
|
|
|
| |
"Looks good" to deraadt@
|
| |
|
|
|
|
|
|
|
|
| |
the udp socket.
Found by David Carlier.
ok yasuoka@
|
|
|
|
|
|
|
| |
each *.c file.
Inspired by mention of header silliness by Edgar Pettijohn and mmcc@
on tech@.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
classless static routes (option 121, 249) are sent. RFC 3442 says
servers SHOULD NOT send those options.
This avoids confusing clients who fail to ignore the routers or
static routes options in the presence of classless static routes
options. RFC 3442 says clients MUST ignore those options.
Incorrect behavior in MS and Linux clients reported by Juan on
misc@.
ok millert@
|
|
|
|
|
|
| |
halex@ and krw@ pointed out that a NULL check before free can go, too.
ok deraadt@, halex@, krw@
|
|
|
|
|
|
|
| |
the clients on non ethernet interfaces (eg. tun(4) or pppx(4)).
input krw
ok krw
|
|
|
|
|
|
| |
is checked for NULL and a specific error/warning issued. Add
two such manual warning/error checks and kill those dmalloc
calls. And then there were none, so kill dmalloc(). Whew.
|
|
|
|
|
| |
immediately before the use or the pointer is checked for NULL before
the call. And then there were none, so kill dfree().
|
|
|
|
|
|
|
|
|
|
| |
for an unused overload option. Noticed by mk@ when netbooting his
G4 mac mini.
So compact the options by shifting them over the unused option and
filling the end by DHO_PAD.
Tested by mk@.
|
|
|
|
|
|
|
|
|
|
| |
I expected. They object if there are no bits set in the option
value. So just use DHO_PAD in the reserved space unless at least
one of the bits is set.
Various versions tested by Tobias Ulmer on OpenSolaris, matthieu@
on busybox's DHCP client, and Uwe Dippel on Solaris. All of which
failed before.
|
|
|
|
|
|
|
|
| |
incomplete buffer initialization and possible incorrect option
handling.
Thanks to Nick Bender
ok krw@ deraadt@
|
|
|
|
|
|
|
|
| |
While there, bail out quickly if no options can be stored, and avoid
overflow buffers if building a bootp reply.
Henning looked and didn't get upset. millert@ tested it for a few
days and liked the look of it. canacar@ glanced at it.
|
|
|
|
|
|
|
|
|
| |
too large. Fixes a problem where a nicely crafted packet could crash
dhcpd. Nuke a superfluous declaration of store_options() while here.
Problem found and fix tested by Peter Hessler.
ok beck@ millert@ henning@
|
|
|
|
|
|
|
|
|
|
| |
the priority list. Add create_priority_list() and use it to
consistantly merge mandatory, supplied and default option priority
lists into a reliable and complete list of options sorted by priority.
No intended functional change other than ensuring all options
available are returned.
"looks good" henning@ "OK, fair enough" millert@
|
|
|
|
|
|
|
| |
behaviour on several edge conditions.
Feedback, suggestion & "I like the approach" millert@
"excellent" henning@.
|
|
|
|
|
|
| |
least as large as the minimum IP MTU.
ok canacar@ henning@ millert@
|
|
|
|
|
|
|
| |
delete some blank lines, add some other blank lines, move expressions
so calculations done only once. Eliminate extraneous ++'s.
No functional change.
|
|
|
|
|
|
| |
change.
ok beck@
|
|
|
|
|
|
|
| |
buffer. Actually use the second overflow buffer now that bufix is correct
and the test for remaining options will work correctly.
ok beck@
|
|
|
|
|
|
|
| |
DHO_PAD (a.k.a. 0). Eliminate manual DHO_PAD'ing after DHO_END is put
into the buffer.
ok beck@
|
|
|
|
|
|
| |
buffer. Spotted by canacar@ and others.
ok beck@
|
|
|
|
|
|
|
| |
are used. It should reflect the end of the main options buffer rather than
the start of the options copied into it.
ok beck@
|
|
|
|
|
|
| |
the size of the outgoing packet's options field. Spotted by canacar@.
ok beck@
|
|
|
|
|
|
| |
dhcpd are the minimum size or larger no matter what the client thinks
the minimum allowable size is. Found by Nahuel Riva and Gera Richarte.
Fix by millert@.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|