| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
"Looks good" to deraadt@
|
| |
|
|
|
|
|
|
|
|
|
| |
value specified in dhcpd.conf.
i.e. don't assume it is always the primary address of the interface
the packet arrived on.
Fixes issues with redundant dhcpd servers and CARP'd interfaces.
Issue reported and fix tested by Johan Huldtgren
|
| |
|
|
|
|
| |
- Use explicit_bzero(3) instead of bzero(3) to clean temporary HMAC
OK krw@
|
| |
|
|
|
|
|
|
|
|
| |
inappropriate. Which is why client_identifier_len exists.
Replace copy&pasted strlen() with client_identifier_len.
Symptoms (crash) and cause (bad c&p) spotted by sthen@.
tested & ok sthen@
|
| |
|
|
|
|
|
|
|
|
|
| |
RFC 3042 says servers that do not understand the option will not
echo it.
Plus, our desultory attempt at echoing was almost certainly broken
for OFFERs (use after free of packet data) and not even attempted
for NACKs.
ok millert@
|
| |
|
|
|
|
|
| |
the client-identifier value. RFC 6842 says the server MUST echo it.
Echoing the information disambiguates packets for relays and clients
when chaddr is 0. Similar to what dhcpv6 does.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
uses of very long #define names) to access option data in nak_lease()
and ack_lease().
Shortens a lot of lines, which allows a number of line splits to
be eliminates.
Makes some upcoming diffs easier to integrate.
No intentional functional change.
|
| | |
|
| |
|
|
|
|
| |
timegm, and tzset
ok deraadt@
|
| | |
|
| |
|
|
| |
Diff from Edgar Pettijohn.
|
| |
|
|
|
|
|
|
| |
the udp socket.
Found by David Carlier.
ok yasuoka@
|
| |
|
|
| |
ok deraadt jca
|
| |
|
|
|
|
|
| |
this will be forbidden. The remaining pledge(2) calls after chroot(2) are still
kept.
OK semarie@ "it is time now"
|
| |
|
|
|
|
|
|
|
| |
missing from udpsock_startup() (udpsock.c) which happens earlier and therefore
would abort the program due to SIOCGIFADDR ioctl(2) on udpsock_handler
Reported by Philip Higgins <phil ! unita.com.au>
OK tb@
|
| |
|
|
|
|
| |
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
|