CVS: cvs.openbsd.org: src

2017-10-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/10/18 14:24:20

Modified files:
sys/dev/ic : bwfm.c 

Log message:
Pass the SIOCG80211ALLCHANS and SIOCG80211STATS ioctls to our net80211
which can handle those ioctls quite well for us.



CVS: cvs.openbsd.org: src

2017-10-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/10/18 13:59:37

Modified files:
sys/dev/ic : bwfmvar.h bwfm.c 

Log message:
Add a scan timeout so we can recover if the firmware decides not to
send us any answers to our request.



CVS: cvs.openbsd.org: src

2017-10-18 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/10/18 13:41:31

Modified files:
regress/sys/net/etherip: Makefile 
Removed files:
regress/sys/net/etherip: etherip_1.sh etherip_subr 

Log message:
Move the test implementation into the Makefile.  Then we have only
one place to look at.  Make prints the commands it executes to
assist debugging and analysis.  If the test fails, there are simple
regress targets that can be run to reproduce the error easily.



CVS: cvs.openbsd.org: src

2017-10-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/10/18 13:18:07

Modified files:
sys/dev/ic : bwfmreg.h 

Log message:
Pad the holes in the struct to make sure compilers do not choose to
pad the structs in a different way.



CVS: cvs.openbsd.org: src

2017-10-18 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2017/10/18 11:31:01

Modified files:
libexec/spamd  : grey.c sdl.c sdl.h spamd.c 

Log message:
Make blacklist entries override the whitelist.  When running spamd
in greylisting mode, it is not uncommon for an IP to get whitelisted
before it shows up on a spam blacklist.  With this change, spamd
will check its blacklists before adding a WHITE entry to the
 pf table.  If the IP matches a blacklist, the WHITE
entry will be removed.  OK phessler@



CVS: cvs.openbsd.org: src

2017-10-18 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/10/18 11:01:14

Modified files:
sys/netinet: ip_icmp.c 
sys/netinet6   : icmp6.c 

Log message:
When reusing an mbuf at the upper end of the network stack, strip
off the mbuf properties with m_resethdr().  It is a new packet,
especially M_LOOP indicating that it was running through lo(4)
should be cleared.  Use the ph_loopcnt to prevent looping at the
upper end of the stack.  Although not strictly necessary in icmp
reflect, it is a good idea to increase and check the counter here,
like in socket splicing.
OK mpi@ sashan@



CVS: cvs.openbsd.org: src

2017-10-18 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2017/10/18 10:59:18

Modified files:
sys/arch/powerpc/ddb: db_trace.c 

Log message:
add support for printing function arguments when displaying a trace
from DDB. this uses CTF to get the correct number of arguments.

ok mpi@



CVS: cvs.openbsd.org: src

2017-10-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/10/18 09:47:39

Modified files:
sys/dev/ic : bwfm.c bwfmreg.h 

Log message:
Read and extract the channel number from the chanspec to beautify the
scan results.  Since the channel number is encoded on both IO types in
the same way, we don't need to implement per IO type helpers for now.



CVS: cvs.openbsd.org: src

2017-10-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/10/18 09:45:38

Modified files:
sys/dev/ic : bwfmreg.h 

Log message:
It turns out that using the packed attribute on most structs was a bad
idea since the brcmfmac implementation relies on the compiler generated
padding.  Removing the packed attribute allows reading correct data from
the BSS info.  As a next step it might be a good idea to pad the structs
manually.



CVS: cvs.openbsd.org: src

2017-10-18 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/10/18 09:41:25

Modified files:
bin/ksh: history.c 

Log message:
The return value of this function isn't used.

ok anton@ tb@



CVS: cvs.openbsd.org: src

2017-10-18 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2017/10/18 09:26:05

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

Log message:
Fixup previous; noticed by canacar@



CVS: cvs.openbsd.org: src

2017-10-18 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/10/18 07:16:35

Modified files:
sys/netinet6   : icmp6.c ip6_input.c 

Log message:
Setting the IPV6_MINMTU flag in the call to ip6_output() was moved
from icmp6_reflect() to ip6_send_dispatch() when ip6_send() was
introduced.  Move the comment that explains this flag also to the
place where it is used.
from sashan@



CVS: cvs.openbsd.org: src

2017-10-18 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/18 07:00:27

Modified files:
sys/dev/ic : bwfm.c 

Log message:
Stop handling SIOCSIFMTU like in the wireless stack.

This driver does not use the net80211 stack, so let ether_ioctl() handle
it like any other Ethernet driver.

Suggested by and ok patrick@, ok stsp@



CVS: cvs.openbsd.org: src

2017-10-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/10/18 06:58:45

Modified files:
sys/dev/ic : bwfm.c bwfmreg.h 

Log message:
Extract supported frequencies and HT/VHT mode from the firmware instead
of assuming the chip supports both 2.4GHz and 5Ghz.

Based on a diff from Jared McNeill.



CVS: cvs.openbsd.org: src

2017-10-18 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2017/10/18 06:52:06

Modified files:
sys/arch/amd64/amd64: identcpu.c tsc.c 

Log message:
Set TSC timecounter frequency to the CPU frequency estimate if unknown

ok mlarkin



CVS: cvs.openbsd.org: src

2017-10-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/10/18 06:48:53

Modified files:
sys/dev/ic : bwfm.c 

Log message:
Revert previous commit, since not all interfaces behaved the same.



CVS: cvs.openbsd.org: src

2017-10-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/10/18 06:33:25

Modified files:
sys/dev/ic : bwfm.c 

Log message:
Only overwrite the caller's variable if we successfully read data from
the chip.



CVS: cvs.openbsd.org: src

2017-10-18 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/18 06:08:17

Modified files:
sys/sys: exec_elf.h 

Log message:
Add missing SHN_XINDEX needed by devel/ctftools.

Reported by and ok naddy@



CVS: cvs.openbsd.org: src

2017-10-18 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/18 01:31:31

Modified files:
sbin/route : route.c 

Log message:
Typo, from Hiltjo Posthuma.