CVS: cvs.openbsd.org: src

2021-01-14 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2021/01/14 23:16:21

Modified files:
share/man/man4 : vmt.4 

Log message:
now we report more addresses to the host



CVS: cvs.openbsd.org: src

2021-01-14 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2021/01/14 23:14:41

Modified files:
sys/dev/pv : vmt.c 

Log message:
Report full IP address information to the host.  Contrary to what I wrote
here 10 years ago, xdr isn't scary at all.

ok dlg@



CVS: cvs.openbsd.org: src

2021-01-14 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2021/01/14 21:31:25

Modified files:
usr.bin/ssh: sshkey.c 

Log message:
Make output buffer larger to prevent potential truncation warnings from
compilers not smart enough to know the strftime calls won't ever fully
fill "to" and "from".  ok djm@



CVS: cvs.openbsd.org: src

2021-01-14 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2021/01/14 19:58:12

Modified files:
usr.bin/ssh: misc.c 
regress/usr.bin/ssh/unittests/misc: tests.c 

Log message:
Change types in convtime() unit test to int to match change its new type.
Add tests for boundary conditions and fix convtime to work up to INT_MAX.
ok djm@



CVS: cvs.openbsd.org: src

2021-01-14 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2021/01/14 19:32:41

Modified files:
usr.bin/ssh: misc.c 

Log message:
In waitfd(), when poll returns early we are subtracting the elapsed time
from the timeout each loop, so we only want to measure the elapsed time
the poll() in that loop, not since the start of the function.  Spotted by
chris.xj.zhu at gmail.com, ok djm@



CVS: cvs.openbsd.org: src

2021-01-14 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2021/01/14 14:53:42

Modified files:
regress/sys/net/pflog: Makefile pf.conf 

Log message:
IPv4 loopback addresses do not work with af-to as in_canforward()
prevents forwarding such packets.  Switch regress to IPv4 link-local
addresses.  Add tests for pflog(4) on af-to rules.



CVS: cvs.openbsd.org: src

2021-01-14 Thread Rob Pierce
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2021/01/14 12:45:07

Modified files:
usr.bin/ssh: ssh_config.5 sshd_config.5 

Log message:
Minor grammatical correction.

OK jmc@



CVS: cvs.openbsd.org: src

2021-01-14 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2021/01/14 06:52:27

Modified files:
sys/dev/acpi   : acpidmar.c 

Log message:
Some BIOS seem to provide memory regions <16M in their reserved memory
region reporting table.  Since the extent only covered memory starting
at 16M, these regions could not be reserved and would in turn cause a
panic.  Make the extent start at 0 and immediately reserve the first
16M right away, so that we can change the reserved memory allocator to
EX_CONFLICTOK to make allocations succeed if they are already reserved.

ok kettenis@



CVS: cvs.openbsd.org: src

2021-01-14 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2021/01/14 06:41:28

Modified files:
regress/sys/net/pflog: Makefile pf.conf 

Log message:
IPv6 link-local addresses are broken in pf(4) as scope ID is used
inconsistently.  Switch regress to unique-local addresses.  Add
tests for pflog(4) on rdr-to and nat-to rules.



CVS: cvs.openbsd.org: src

2021-01-14 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/01/14 02:44:33

Modified files:
sys/net: pf.c 

Log message:
Fix build without carp: ifp0 is only used within #if NCARP > 0.

ok kn mvs



CVS: cvs.openbsd.org: src

2021-01-14 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2021/01/14 01:29:26

Modified files:
usr.sbin/bgpd  : rde_decide.c 

Log message:
Cleanup prefix_cmp() a bit. Make sure that the return value can not overflow
the int type by doing calculations on bigger types. Instead just do a > and <
check. Also improve the remote_addr test by using the same address comparison
as in other places.
OK benno@