CVS: cvs.openbsd.org: src

2018-12-10 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2018/12/11 00:57:31

Modified files:
usr.sbin/smtpd : smtp_session.c 

Log message:
remove unnecessary calls to getsockname()

ok gilles@



Re: CVS: cvs.openbsd.org: src

2018-12-10 Thread Landry Breuil
On Mon, Dec 10, 2018 at 06:35:55AM -0700, Landry Breuil wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   lan...@cvs.openbsd.org  2018/12/10 06:35:55
> 
> Modified files:
>   sys/sys: sensors.h 
>   share/snmp : OPENBSD-SENSORS-MIB.txt 
>   usr.sbin/snmpd : mib.c 
>   usr.sbin/sensorsd: sensorsd.c 
>   sbin/sysctl: sysctl.c 
>   usr.bin/systat : sensors.c 
> 
> Log message:
> Add a velocity sensor type (displayed as m/s)
> 
> Change distance sensor type to be displayed as meters with 3 decimals
> instead of millimeters.
> 
> ok mpi@ kettenis@

was also ok yuo@



CVS: cvs.openbsd.org: src

2018-12-10 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/12/11 00:44:25

Modified files:
usr.sbin/vmctl : main.c vmctl.8 

Log message:
Extend vmctl start -B argument to work for disk, cdrom and net.
Currently SeaBIOS will respect disk and cdrom and our kernel will
understand net.
OK ccardenas@, reyk@, mlarkin@



CVS: cvs.openbsd.org: src

2018-12-10 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2018/12/11 00:25:57

Modified files:
usr.sbin/smtpd : smtpd.h cert.c 

Log message:
Improve the cert_*() interface. Use the return value to tell whether
the request is pending (waiting for an async event) or not.  Success
or failure is always reported through the callback function.

ok gilles@



CVS: cvs.openbsd.org: src

2018-12-10 Thread Sebastien Marie
CVSROOT:/cvs
Module name:src
Changes by: sema...@cvs.openbsd.org 2018/12/10 22:45:14

Modified files:
usr.bin/libtool/LT/Mode/Link: Library.pm 

Log message:
teach libtool to build shared libraries with a soname

ok naddy@



CVS: cvs.openbsd.org: src

2018-12-10 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/12/10 18:36:42

Modified files:
sys/net: ifq.c ifq.h 

Log message:
provide ifq_is_priq, mostly so things can tell if hfsc is in effect or not.



CVS: cvs.openbsd.org: src

2018-12-10 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/12/10 18:33:40

Modified files:
share/man/man9 : ifq_enqueue.9 

Log message:
document ifq_hdatalen()

ok stsp@



CVS: cvs.openbsd.org: src

2018-12-10 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/12/10 18:34:10

Modified files:
sys/net: if_tun.c 

Log message:
use ifq_hdatalen for handling the FIONREAD ioctl

ok stsp@



CVS: cvs.openbsd.org: src

2018-12-10 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/12/10 18:33:05

Modified files:
sys/net: ifq.c ifq.h 

Log message:
add ifq_hdatalen for getting the size of the packet at the head of an ifq

this gets the locks right, and returns 0 if there's no packet available.

ok stsp@



CVS: cvs.openbsd.org: src

2018-12-10 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2018/12/10 18:27:08

Modified files:
sys/net: if_ethersubr.c 
sys/netinet: if_ether.h 

Log message:
split ether_output into resolution, encapsulation, and output functions

if if_output can be overridden on ethernet interfaces, it will allow
things like vlan to do it's packet encapsulation during output
before putting the packet directly on the underlying interface for
output.

this has two benefits. first, it can avoid having ether_output on
pseudo interfaces recurse, which makes profiling of the network
stack a lot clearer. secondly, and more importantly, it allows
pseudo ethernet interface packet encapsulation to by run concurrently
by the stack, rather than having packets unnecessarily serialied
by an ifq.

this diff just splits ether_output up, it doesnt have any interface
take advantage of it yet.

tweaks and ok claudio@



CVS: cvs.openbsd.org: src

2018-12-10 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2018/12/10 16:00:01

Modified files:
sys/netinet6   : icmp6.c 

Log message:
When forwarding IPv6 packets, generated ICMP6 packets used the
interface address of the route as source address.  To avoid using
link-local addresses in ICMP6 packets sent into networks where they
are out of scope, use the regular IPv6 source selection algorithm
also in this icmp6_reflect() case.
reported by sthen@; fix from Arnaud BRAND; OK claudio@



CVS: cvs.openbsd.org: src

2018-12-10 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/12/10 14:30:33

Modified files:
usr.sbin/vmd   : Makefile vm.c vmd.h 
Added files:
usr.sbin/vmd   : fw_cfg.c fw_cfg.h 

Log message:
Implement the fw_cfg interface basics and use it to set the bootorder
if a bootdevice was forced. This implements both the pure IO port interface
and also the new DMA interface, a few direct commands are implemented which
are needed but in general the "file" interface should be used. There is no
write support for the guest. Tested against the latest vmm-firmware port.
This requires also a -current kernel to pass the IO ports to vmd(8).
OK mlarkin@ ccardenas@



CVS: cvs.openbsd.org: src

2018-12-10 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/12/10 14:24:22

Modified files:
usr.sbin/vmd   : i8253.c 

Log message:
No need to \n in log_debug. Part of a larger diff.
OK mlarkin@ ccardenas@



CVS: cvs.openbsd.org: src

2018-12-10 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2018/12/10 14:13:59

Modified files:
sys/arch/amd64/amd64: vmm.c 

Log message:
Start passing the IO ports 0x510, 0x511, 0x514, and 0x518 to vmd(8).
These IO ports are used by qemu's fw_cfg interface and vmd(8) will start
using it to pass options to SeaBIOS.
OK mlarkin@



CVS: cvs.openbsd.org: src

2018-12-10 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2018/12/10 12:19:04

Modified files:
usr.sbin/pkg_add/OpenBSD: Add.pm 

Log message:
advance the progress meter while skipping remaning files
this gets rid of the "hung" impression on updating texlive, since most
files match, and the packages are so gigantisch the meter appears to stay
at 0% forever.



CVS: cvs.openbsd.org: src

2018-12-10 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2018/12/10 10:12:24

Modified files:
usr.bin/sed: sed.1 

Log message:
correct inaccurate and misplaced information in CAVEATS
and move it in part to the DESCRIPTION, in part to STANDARDS;
triggered by a loosely related bug report from Lars dot Nooden at gmail dot com;
OK jmc@, and no opposition when shown on bugs@



CVS: cvs.openbsd.org: src

2018-12-10 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2018/12/10 09:52:02

Modified files:
sys/arch/amd64/stand/libsa: exec_i386.c 
sys/arch/i386/stand/libsa: exec_i386.c 

Log message:
Ensure that we close the file descriptor after loading microcode.

Otherwise we end up keeping file descriptor and inode related buffers
around, that are unnecessarily consuming memory.

ok deraadt@ patrick@



CVS: cvs.openbsd.org: src

2018-12-10 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2018/12/10 09:48:05

Modified files:
sys/arch/amd64/stand/libsa: exec_i386.c 
sys/arch/i386/stand/libsa: exec_i386.c 

Log message:
Do not call free on a non-allocated pointer.

ok deraadt@



CVS: cvs.openbsd.org: src

2018-12-10 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2018/12/10 09:48:16

Modified files:
sys/net: if_pflog.c pf.c pf_if.c pf_ioctl.c pf_lb.c 
 pf_table.c pfvar.h 

Log message:
Remove useless macros

These are just unhelpful case conversion.

OK sashan henning



CVS: cvs.openbsd.org: src

2018-12-10 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2018/12/10 09:46:03

Modified files:
etc: unbound.conf 

Log message:
remove qname-minimisation from sample config, this was turned on by
default upstream in 1.7.2 (picked up by us with the update to 1.7.3).

ok florian@



CVS: cvs.openbsd.org: src

2018-12-10 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2018/12/10 09:09:11

Modified files:
usr.sbin/nsd   : Makefile.in config.h.in configlexer.lex 
 configparser.y configure configure.ac ipc.c 
 nsd-checkconf.8.in nsd-checkconf.c 
 nsd-checkzone.8.in nsd-control.8.in 
 nsd-control.c nsd.8.in nsd.c nsd.conf.5.in 
 nsd.conf.sample.in nsd.h options.c options.h 
 remote.c server.c xfrd.c zparser.y 
Added files:
usr.sbin/nsd/dnstap: dnstap.c dnstap.h dnstap.m4 dnstap.proto 
 dnstap_collector.c dnstap_collector.h 
 dnstap_config.h.in 

Log message:
Update to 4.1.26
OK sthen



CVS: cvs.openbsd.org: src

2018-12-10 Thread Landry Breuil
CVSROOT:/cvs
Module name:src
Changes by: lan...@cvs.openbsd.org  2018/12/10 06:35:55

Modified files:
sys/sys: sensors.h 
share/snmp : OPENBSD-SENSORS-MIB.txt 
usr.sbin/snmpd : mib.c 
usr.sbin/sensorsd: sensorsd.c 
sbin/sysctl: sysctl.c 
usr.bin/systat : sensors.c 

Log message:
Add a velocity sensor type (displayed as m/s)

Change distance sensor type to be displayed as meters with 3 decimals
instead of millimeters.

ok mpi@ kettenis@