| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
From Patrick Keshishian. OK pvalchev@
|
|
|
|
| |
ok djm@ deraadt@
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
simple on/off, allowing more control over how verbose the logging is.
This also allows you to do a further level of filtering in syslog.conf
if you need to.
Also add logging of state changes, inspired by diff provided by
Brian A. Seklecki in PR 5513. These messages are logged by default.
ok henning mpf deraadt
|
|
|
|
| |
ok espie@
|
|
|
|
| |
ok otto@ espie@ millert@
|
|
|
|
|
|
|
|
|
| |
get a timestamp of when the datagram was accepted (by udp(4), for
example) rather than having to take a timestamp with gettimeofday(2)
when recv(2) returns - possibly several hundreds of microseconds later.
May be of use to those interested in precision network timing schemes
or QoS for media applications. Tested on alpha, amd64, i386 and sparc64.
manpage suggestions from jmc, ok deraadt
|
|
|
|
|
| |
deleted files after a seekdir(); testcase produced by mbalmer@; fix
with and ok mbalmer; ok millert@
|
|
|
|
|
| |
brk(2) returns an int value not a void *. brk(2) returns 0 upon success not
a pointer to the new end of memory. okay millert@, kettenis@, deraadt@
|
|
|
|
|
| |
upon a fd > SHRT_MAX. From freebsd via Jan Schaumann; ok deraadt@
millert@ espie@
|
|
|
|
| |
feedback deraadt@ drahn@; ok deraadt@
|
| |
|
|
|
|
|
|
|
| |
resistant to prediction atacks by wrapping the existing LCG in a
random permutation generator based on a Luby-Rackoff block cipher.
lots of discussion and final ok deraadt@
|
|
|
|
|
|
|
| |
Use arc4random_uniform() when the desired random number upper bound
is not a power of two
ok deraadt@ millert@
|
|
|
|
| |
ok millert
|
|
|
|
|
|
|
|
|
| |
callers may respond accordingly and correctly.
this fixes an issue where readdir_r() could not decipher the difference
between an error or no more entires.
feedback and ok kurt@, ok millert@
|
|
|
|
|
|
| |
calls vfork(2). "untested, but looks OK" marc@
- document vfork(2), popen(3) and system(3) don't call atfork handlers
in multithreaded programs. okay jmc@
|
|
|
|
|
| |
interafces. Otherwise, we end up with an extra copy in memory when
auth_call() forks that is not possible to clear.
|
| |
|
| |
|
| |
|
|
|
|
| |
and ok djm@
|
| |
|
|
|
|
|
|
|
| |
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This
works now that kernel fd passing has been fixed to accept a bit of
sloppiness because of this ABI repair.
lots of discussion with kettenis
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Instead, just return 1 if there is a difference.
Found by lint.
OK millert.
|
|
|
|
| |
- simplify a macro call (Do/Dc -> Dq)
|
| |
|
| |
|
| |
|
|
|
|
| |
ok espie@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
introduce two new APIs for requesting strong random numbers:
arc4random_buf() - fill an arbitrary memory range with random numbers
arc4random_uniform() - return a uniformly distributed random number
below
a specified upper bound, avoiding the bias that comes from a naive
"arc4random() % upper_bound" construction.
these mirror similarly-named functions in the kernel;
lots of discussion deraadt@ mcbride@
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
should be good, plus it prevents weird things from happening if
len > INT_MAX.
- Since n is now size_t, compare it against 0 instead of >= 0.
- temp is used to store individual bytes, so use char instead
(matches fp and tp).
- millert noted that the comma operator may not guarantee order of
execution, so replace with semicolons.
Found by lint, OK millert.
|
|
|
|
|
|
| |
cast to make it explicit.
Found by lint, OK millert.
|
|
|
|
|
| |
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because
of alignment; ok kettenis hshoexer
|
|
|
|
| |
an extensive discussion with otto, kettenis, millert, and hshoexer
|
|
|
|
| |
ok kettenis miod
|
|
|
|
|
| |
pointer, so add a safety-net. From Gianluigi Tiesi via Torok Edwin.
ok chl@ millert@
|
|
|
|
|
| |
prevents a few "cannot free mem because i need mem to free mem"
scenarios (one found by weingart@). ok weingart@ millert@ miod@
|
|
|
|
|
|
| |
by code that does not do zero padding. The example code does. Fix.
millert@ ok
|
|
|
|
| |
of a typo in rcs.c;
|
|
|
|
| |
HW_USERMEM as deprecated and point people towards HW_PHYSMEM64/HW_USERMEM64.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of using the same IP on multiple interfaces, carp has to be
configured with the new "carpnodes" and "balancing" options.
# ifconfig carp0 carpnodes 1:0,2:100,3:100 balancing ip carpdev sis0 192.168.5.50
Please note, that this is a flag day for anyone using carp balancing.
You'll need to adjust your configuration accordingly.
Addititionally this diff adds IPv6 NDP balancing support.
Tested and OK mcbride@, reyk@.
Manpage help by jmc@.
|
|
|
|
|
| |
there is no chance of output that was written but still pending to
be displayed. This is what the original getpass(3) did.
|