Age | Commit message (Collapse) | Author |
|
use it once on an array declared iov[1]. Just use '1'.
ok yasuoka@
|
|
ok krw@
|
|
each *.c file.
Inspired by mention of header silliness by Edgar Pettijohn and mmcc@
on tech@.
|
|
fixed part of the IP header is completely present before using its
header length field. Then use the data in the IP header to ensure
the entire IP packet is present. Then check that the entire UDP header
is present. Then use the data in the UDP header to ensure all the
data it thinks is present is actually present.
Started when tj@ and a few others noticed ISC "DHCP CVE-2015-8605:
UDP payload length not properly checked".
ok sthen@ henning@
|
|
|
|
Diff from Ricardo Mestre. Test report from sthen@.
|
|
specified in dhcpd.conf. Broken in -r1.18.
Problem noted by Arne on bugs@, identical fix independently developed
by Serguey Parkhomovsky.
|
|
In some cases, do additional cleanup in the immediate vicinity.
|
|
ok millert krw
|
|
|
|
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@
|
|
rather do it before the macros, and get rid of cargo cult escaping.
Both to make the code more robust and less ugly, no output change.
Ugly code reported by TJ at mrsk dot me.
OK jmc@
|
|
ok jmc@
|
|
Reported long ago by matthieu@. Also Jacob Berkman via the lists.
Tests and suggestions from Jacob and Matthieu.
|
|
in get_token(). Simplifies code and shrinks future diff.
No intentional functional change.
|
|
encountering a carriage return in the input.
Found by jsg@ a long time ago in a respository far, far away.
|
|
by caching the results from excess inet_ntoa() calls before doing
the printf(). Should improve usefullness (?) of DHCPRELEASE log
entries by actually printing ciaddr and giaddr correctly when
dhcprelays stand between servers and clients.
Looks good to dlg@.
|
|
"and" and "or" to join sentence clauses, and you can use commas, but both hinders
reading;
|
|
ones that needed to be booted out of the pf table process. This
avoids removing the same addess over and over.
Problem report and original diff from Bertrand Provost.
|
|
does.
Pointed out by Bertrand Provost.
ok henning@
|
|
closed. e.g. dhcpd has been killed.
ok henning@
|
|
ports is ready, <net/pfvar.h> will stop including a pile of balony.
|
|
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
for quite some time. Mop up the last few, by using /dev/random where we
actually want it, or not even mentioning arandom where it is irrelevant.
|
|
troff displays these as typographic quotes, but nroff implementations
almost always print them literally, which rarely has the intended effect
with modern fonts, even in stock xterm.
These uses of `` '' can be replaced either with more semantic alternatives
or with Dq, which prints typographic quotes in a UTF-8 locale (but will
automatically fall back to `` '' in an ASCII locale).
improvements and ok schwarze@
|
|
less threatening and more informative.
e.g.
DHCPACK on <null address> to 5c:51:4f:56:81:c3 via em0
changes to
DHCPACK to 192.168.19.62 (3c:97:0e:0c:0c:d7) via em0
Issue noted and diff tested by Marc Peters. Thanks!
ok yasuoka@ millert@
|
|
|
|
ok millert@
|
|
|
|
ok krw@
|
|
ok krw@
|
|
halex@ and krw@ pointed out that a NULL check before free can go, too.
ok deraadt@, halex@, krw@
|
|
8 billion network packets. Mixture of many many malformed and proper
packets could result in a division by zero.
ok krw@
|
|
field and not to include the lease time parameters.
ok krw
|
|
ok krw yasuoka
|
|
|
|
the clients on non ethernet interfaces (eg. tun(4) or pppx(4)).
input krw
ok krw
|
|
octets should be changed by corresponding to the prefix length. And 0
should be allowed for the prefix length. Also fix white spaces.
Based on diff from Yuuichi Someya.
ok krw
|
|
ok beck
|
|
reported by Mikolaj Kucharski, thanks!
ok krw
|
|
ok krw
|
|
ok krw
|
|
rather than 0000 and 0664 respectively.
ok kettenis@ tedu@
|
|
|
|
(classless-ms-static-routes). dhcpd can now specify and serve
these options and dhclient can recognize and use supersede, etc.
statements on them.
Based on a diff from Stefan Rinke. Thanks!
|
|
|
|
|
|
idea ok deraadt@ matthew@
|
|
ETHER_HDR_LEN from if_ether.h. dhclient change ok matthew@ as part
of larger diff.
|
|
ok krw
|