CVS: cvs.openbsd.org: src

2016-11-17 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2016/11/17 19:53:48

Modified files:
sys/net: pipex.c 
sys/netinet: ip_output.c udp_usrreq.c udp_var.h 
sys/netinet6   : ip6_output.c udp6_output.c 

Log message:
turn ipstat into a set of percpu counters.

each counter is identified by an enum value which correspond to the
original members of the udpstat struct.

udpstat_inc(udps_foo) replaces udpstat.udps_foo++ for the actual
updates. udpstat_inc is a thin wrapper around counters_inc.

counters are still returned to userland via the udpstat struct for
now.

ok mpi@ mikeb@ deraadt@



CVS: cvs.openbsd.org: src

2016-11-17 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2016/11/17 15:45:41

Modified files:
distrib/sets/lists/man: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2016-11-17 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/11/17 14:18:23

Modified files:
sys/dev/pci: ixgbe_phy.c 

Log message:
A firmware block check missed in previous commits



CVS: cvs.openbsd.org: src

2016-11-17 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/11/17 14:13:27

Modified files:
sys/dev/pci: ixgbe_phy.c ixgbe_type.h 

Log message:
Support for I2C combined messages as required by X550



CVS: cvs.openbsd.org: src

2016-11-17 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/11/17 14:08:27

Modified files:
sys/dev/pci: ixgbe.c ixgbe.h ixgbe_82599.c ixgbe_phy.c 
 ixgbe_type.h ixgbe_x540.c 

Log message:
Autoconfiguration and firmware semaphore refactoring



CVS: cvs.openbsd.org: src

2016-11-17 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2016/11/17 14:06:16

Modified files:
lib/libcrypto/man: ERR.3 ERR_GET_LIB.3 ERR_error_string.3 
   ERR_get_error.3 ERR_load_crypto_strings.3 
   ERR_load_strings.3 ERR_print_errors.3 
   ERR_put_error.3 

Log message:
various cleanup;



CVS: cvs.openbsd.org: src

2016-11-17 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/11/17 13:44:04

Modified files:
sys/dev/pci: ixgbe.c ixgbe.h ixgbe_type.h ixgbe_x540.c 

Log message:
EEPROM code refactoring for X540



CVS: cvs.openbsd.org: www

2016-11-17 Thread Theo Buehler
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2016/11/17 12:32:48

Modified files:
faq: current.html 

Log message:
whitespace



CVS: cvs.openbsd.org: src

2016-11-17 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/11/17 12:26:57

Modified files:
sys/dev/pci: ixgbe.c ixgbe.h ixgbe_82598.c ixgbe_82599.c 
 ixgbe_phy.c ixgbe_type.h ixgbe_x540.c 

Log message:
Bring in new PHY bits, some of the 82599 specific stuff becomes shared



CVS: cvs.openbsd.org: src

2016-11-17 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2016/11/17 10:34:55

Modified files:
usr.sbin/smtpd : ioev.c ioev.h smtpd.h util.c 

Log message:
Add io api functions for dealing with buffered data, as wrapper around
their iobuf counterparts.

ok gilles@ sunil@



CVS: cvs.openbsd.org: src

2016-11-17 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2016/11/17 10:27:05

Modified files:
regress/sys/netinet6/frag6: Makefile frag6.py frag6_ext.py 
frag6_hop.py frag6_opt.py 
frag6_overatomic.py 
frag6_overdrop.py frag6_overhead.py 
frag6_overhead0.py frag6_overtail.py 
frag6_padding.py frag6_permute.py 
frag6_refrag.py frag6_shortatomic.py 
frag6_timeout.py frag6_udpatomic.py 
frag6_udpheader.py 
frag6_udppayload.py 
frag6_zerofirst.py 
frag6_zerosecond.py 
Added files:
regress/sys/netinet6/frag6: LICENSE 

Log message:
Put all make targets in a loop and print a little more what each
IPv6 fragment header test is doing.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Rafael Zalamena
CVSROOT:/cvs
Module name:src
Changes by: rzalam...@cvs.openbsd.org   2016/11/17 09:24:00

Modified files:
usr.sbin/switchd: ofp10.c ofp13.c ofrelay.c 

Log message:
Fix some styles issues: break big lines and remove some useless spaces.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2016/11/17 08:41:14

Modified files:
sys/net: bpf.h 

Log message:
Add DLT_USER1..15 with the same values as the upstream libpcap repository.
Suggested by reyk@ as a quick fix to unbreak ports/net/wireshark.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2016/11/17 08:22:41

Modified files:
lib/libssl : s3_srvr.c 

Log message:
Convert ssl3_get_client_kex_dhe() to CBS and perform some general code
cleanup, including the removal of a dead code path.

ok beck@



CVS: cvs.openbsd.org: src

2016-11-17 Thread Antoine Jacoutot
CVSROOT:/cvs
Module name:src
Changes by: ajacou...@cvs.openbsd.org   2016/11/17 08:15:49

Modified files:
usr.sbin/syspatch: syspatch.sh 

Log message:
Re-add the root user checks in the quirks; that part is to be removed soon.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2016/11/17 08:09:47

Modified files:
share/man/man4 : com.4 pci.4 

Log message:
Add loongson references.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2016/11/17 08:06:22

Modified files:
lib/libssl : s3_pkt.c 

Log message:
Use defines instead of magic numbers and comments.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2016/11/17 08:06:16

Modified files:
share/man/man4/man4.loongson: Makefile 
Added files:
share/man/man4/man4.loongson: htb.4 leioc.4 

Log message:
Add htb(4) and leioc(4).



CVS: cvs.openbsd.org: src

2016-11-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2016/11/17 07:58:38

Modified files:
usr.sbin/httpd : server.c 

Log message:
Check the return value of tls_config_set_protocols(), now that it returns
an int.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2016/11/17 07:52:49

Modified files:
usr.sbin/httpd : httpd.h parse.y server.c 

Log message:
Move OCSP loading into a separate function - it is not part of the keypair
and this way we can give a separate specific error message.

ok beck@ reyk@



CVS: cvs.openbsd.org: src

2016-11-17 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2016/11/17 07:44:34

Modified files:
sys/arch/loongson/conf: GENERIC RAMDISK 

Log message:
Turn Loongson 3A bits on.

The work on the platform was made possible by a hardware donation
from Loongson Technology.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2016/11/17 07:41:21

Modified files:
sys/arch/loongson/conf: files.loongson 
sys/arch/loongson/dev: mainbus.c 
sys/arch/loongson/include: intr.h 
sys/arch/loongson/loongson: machdep.c 
Added files:
sys/arch/loongson/dev: com_leioc.c htb.c htbreg.h htbvar.h 
   leioc.c leiocreg.h leiocvar.h 
sys/arch/loongson/loongson: generic3a_machdep.c 

Log message:
Add drivers for PCI host bridge and built-in UARTs on Loongson 3A,
and put the pieces together by platform glue.

Feedback from miod@



CVS: cvs.openbsd.org: src

2016-11-17 Thread Rafael Zalamena
CVSROOT:/cvs
Module name:src
Changes by: rzalam...@cvs.openbsd.org   2016/11/17 07:37:55

Modified files:
regress/usr.sbin/switchd: args-packet-jumbo.pm run.pl 

Log message:
Add support for OpenFlow 1.3.5 tests and make jumbo test use the new
version.

ok reyk@



CVS: cvs.openbsd.org: src

2016-11-17 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2016/11/17 07:12:33

Modified files:
sys/dev/pci: if_iwm.c 

Log message:
Make iwm(4) pass Tx/Rx MCS rates to bpf so they can be examined with tcpdump.
ok mpi@



CVS: cvs.openbsd.org: src

2016-11-17 Thread Antoine Jacoutot
CVSROOT:/cvs
Module name:src
Changes by: ajacou...@cvs.openbsd.org   2016/11/17 07:05:46

Modified files:
usr.sbin/syspatch: syspatch.sh 

Log message:
Drop priv. to the _pkgfetch (for now) user when running ftp(1) and signify(1).
Similar to what the installer does.

Listing installed patches and displaying the usage are now the only actions
allowed to a non-privileged user.

discussed with deraadt@



CVS: cvs.openbsd.org: src

2016-11-17 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2016/11/17 06:37:20

Modified files:
sys/net: if_etherip.c 

Log message:
Remove splsoftnet()s in the ioctl(2) path.

Since soft-interrupt for network processing are no more, the
KERNEL_LOCK() is what protect two concurrent threads from
accessing  data structures.

ok goda@



CVS: cvs.openbsd.org: src

2016-11-17 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2016/11/17 06:24:32

Modified files:
regress/sys/netinet6/frag6: Makefile 
Added files:
regress/sys/netinet6/frag6: frag6_hop.py 

Log message:
Send fragment with Hop-by-Hop extension header after the fragment
header.  I must not be processed.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2016/11/17 06:17:32

Modified files:
sys/net: pf.c 

Log message:
The pf fragment reassembly code accepted IPv6 hop-by-hop headers
after fragment headers.  Add an extra check that the hop-by-hop
header is always the first extension header after the IPv6 header.
Found by Antonios Atlasis; OK sthen@ mpi@



CVS: cvs.openbsd.org: src

2016-11-17 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/11/17 06:12:03

Modified files:
sys/dev/pci: ixgbe_82598.c 

Log message:
Update 82598 specific module

A custom method to enable RX DMA is introduced because of the
upcoming API change in the common code.  Otherwise it's just
a copy of the ixgbe_enable_rx_dma_generic.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2016/11/17 06:10:26

Modified files:
usr.sbin/switchd: ofp_common.c 

Log message:
In oflowmod, automatically open the instructions block with the first
instruction.  This allows to make the grammar more flexible.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2016/11/17 05:40:56

Modified files:
usr.sbin/switchd: ofp13.c ofp_common.c switchd.h types.h 

Log message:
Add an abstraction layer / API to create flows including all matches
and instructions.  This makes it easier to integrate flow features in
switchd and switchctl later.

Written and committed during a long flight.

OK rzalamena@



CVS: cvs.openbsd.org: src

2016-11-17 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/11/17 05:21:27

Modified files:
sys/dev/pci: ixgbe.c ixgbe_82598.c ixgbe_82599.c ixgbe_phy.c 
 ixgbe_x540.c 

Log message:
Style and typo fixes; no binary change



CVS: cvs.openbsd.org: src

2016-11-17 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2016/11/17 03:53:11

Modified files:
etc/examples   : pkg.conf 

Log message:
sync



CVS: cvs.openbsd.org: www

2016-11-17 Thread Stuart Henderson
CVSROOT:/cvs
Module name:www
Changes by: st...@cvs.openbsd.org   2016/11/17 03:52:52

Modified files:
.  : ftp.html ftplist 
openbgpd   : ftp.html 
openssh: ftp.html portable.html 
openntpd   : portable.html 

Log message:
sync



CVS: cvs.openbsd.org: www

2016-11-17 Thread Stuart Henderson
CVSROOT:/cvs
Module name:www
Changes by: st...@cvs.openbsd.org   2016/11/17 03:52:11

Modified files:
build  : mirrors.dat 

Log message:
remove mirror.telepoint.bg; outdated, doesn't follow our url conventions,
and there's another mirror in .bg



CVS: cvs.openbsd.org: src

2016-11-17 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2016/11/17 03:15:05

Modified files:
usr.sbin/switchd: ofp13.c 

Log message:
Accept OFP_XM_T_ETH_TYPE.

OK rzalamena@



CVS: cvs.openbsd.org: src

2016-11-17 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2016/11/17 03:06:08

Modified files:
usr.bin/tmux   : format.c xmalloc.c xmalloc.h 

Log message:
Key running commands for #() by the unexpanded command, and run them
again if the expanded form changes (otherwise at most once per second as
usual). Fixes issues reported by Gregory Pakosz.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2016/11/17 03:05:44

Modified files:
usr.sbin/switchd: ofp_common.c switchd.h 
usr.sbin/switchctl: Makefile 

Log message:
Add ofp_validate() for all supported versions. Will be used by switchctl,
no functional change.



CVS: cvs.openbsd.org: src

2016-11-17 Thread Rafael Zalamena
CVSROOT:/cvs
Module name:src
Changes by: rzalam...@cvs.openbsd.org   2016/11/17 02:42:11

Modified files:
usr.sbin/switchd: ofp13.c ofp_common.c switchd.h 

Log message:
Added the missing code to build flow-mod messages and to install
table-miss by default for switch(4).

ok reyk@