summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-12-20In midiread() and midiwrite(), add a second goto label toAlexandre Ratchov
factor calls to mtx_leave() before returning. From Michael W. Bombardieri <mb at ii.net>. Thanks!
2016-12-20Fix many typos. From Michael W. Bombardieri <mb at ii.net>. ThanksAlexandre Ratchov
2016-12-20Simplify the activate() functions of auglx(4), autri(4), andAlexandre Ratchov
auvia(4). From Michael W. Bombardieri <mb at ii.net>. Thanks.
2016-12-20This commit removes bio_status() calls after a BIOCLOCATE since thePatrick Wildt
bio status will never be updated on a BIOCLOCATE. In addition with missed zeroing of the passed bio struct, this could lead to a print of uninitialized memory. While there, properly zero the bio struct before passing it to ioctl(). ok mikeb@
2016-12-20Group identical close_in_jack() and close_out_jack() into a singleAlexandre Ratchov
routine. From Michael W. Bombardieri <mb at ii.net>. Thanks!
2016-12-20Set free(9) size argument. From Michael W. Bombardieri <mb at ii.net>.Alexandre Ratchov
Thanks.
2016-12-20Release the NET_LOCK() before calling any socket function since it isMartin Pieuchot
not recursive. This is temporary until all recursions are found and can be addressed in a correct way. With inputs from bluhm@
2016-12-20Prevent grabing the NET_LOCK() twice in the ioctl(2) and input path.Martin Pieuchot
While here remove two redundant splsoftnet()/splx() dances. inputs and ok bluhm@
2016-12-20Kill recursive splsoftnet()/splx() in tcp_ctloutput().Martin Pieuchot
ok mikeb@, bluhm@
2016-12-20fix use of uninitialised variablesJonathan Gray
ok kettenis@
2016-12-20no need to test if an array is non-NULLJonathan Gray
ok kettenis@
2016-12-20Document our new WPA default settings. Discourage use of TKIP.Stefan Sperling
2016-12-20Disable TKIP (WPA1) by default.Stefan Sperling
It is time for this legacy of WEP to die (remember WEP?). The 802.11-2012 standard says: The use of TKIP is deprecated. The TKIP algorithm is unsuitable for the purposes of this standard. TKIP has numerous problems. One of which is that TKIP allows a denial of service attack which can be triggered by any client. Report 2 Michael MIC failures to a TKIP AP to trigger "TKIP countermeasures". The AP is now required by the 802.11 standard to lock everyone out for at least 60 seconds. The network will remain unusable for as long as such MIC failure reports are sent twice per minute. TKIP remains available for interoperability purposes, for now. It must be enabled manually with ifconfig(8). Prompted by discussion with Mathy Vanhoef. ok deraadt@ sthen@ reyk@
2016-12-20Make 'ifconfig if0 wpa' and 'ifconfig if0 -wpa' reset WPA params (does notStefan Sperling
include the wpakey) to their defaults. And make 'ifconfig if0 wpaprotos' reset WPA crypto parameters to settings which are appropriate for the specified WPA protocol version.
2016-12-20Remove duplicate in_ioctl() prototype, it is in in_var.h now.Alexander Bluhm
2016-12-20Kill recursive splsoftnet()/splx() dances in ioctl(2) path.Martin Pieuchot
ok rzalamena@
2016-12-20fix an uninitialised variable on altivec assist trapJonathan Gray
ok krw@ kettenis@
2016-12-20Put a write memory barrier into counters_enter(). This ensuresAlexander Bluhm
that the generation number increment is written before the function returns and anything else is written. OK patrick@ mpi@ dlg@
2016-12-20Add the u-boot arm64 architecture number and map it to "aarch64" toJonathan Gray
match OpenBSD/arm64 MACHINE_ARCH. ok patrick@
2016-12-20Call the multicast timer callback per domain instead of for all domainsRafael Zalamena
this way we save doing big tables walk and iterating tables that we don't need to. ok mpi@
2016-12-20No need for splsoftnet()/splx() dance around a pool_put() if the poolMartin Pieuchot
has IPL_SOFTNET as ipl. ok mikeb@, kettenis@
2016-12-20Remove unused timeout that was never being set.Rafael Zalamena
ok reyk@
2016-12-20Compile clang with clang by default instead of egcc. This allows ourPatrick Wildt
build system to selfhost itself after the initial clang bootstrap without relying on an external compiler. Setting BOOTSTRAP_CLANG allows bootstrapping clang with egcc. ok kettenis@
2016-12-20Fix operand of pushq instruction; clang's integrated assembler is lessMark Kettenis
forgiving than gas and insists that we use a 64-bit integer. No binary change. ok mlarkin@
2016-12-19Compile libc++ and libc++abi with clang by default instead of egcc.Patrick Wildt
This allows our build system to selfhost itself after the initial clang bootstrap without relying on an external compiler. with input from and ok kettenis@
2016-12-19use standard /bin/sh equality test; from Mike FrysingerDamien Miller
2016-12-19Implement interface detachingMike Belopuhov
2016-12-19Add experimental support for device hot-pluggingMike Belopuhov
We're installing watches on all nodes under "device/" and re-scan the subtree every time the watch is triggered looking for changes in the output. Tested with xnf(4) and xbf(4), helpful hints from Roger Pau Monne, thanks!
2016-12-19Convert the gcc 3 scheduling information to the gcc 4 model.Miod Vallat
2016-12-19Generating mixed 16-bit/32-bit/64-bit code with clang's integratedMark Kettenis
assembler is a bit tricky. It supports the .code16, .code32 and .code64 directives. But it doesn't know about the data16/data32 and addr16/addr32 instruction prefixes. Instead it tries to determine those from the instruction opcode. It mostly succeeds, but there are a couple of corner cases where clang will generate the "addr32" form where gas generates the "addr16" form in .code16 segments. That should be no problem (and just waste a couple of bytes), but it makes comparing the generated code a bit difficult. Allow the trampoline code to be compiled with both. For clang #define away the addr32 prefix and avoid using the data32 prefix by using a mnemonic that explicitly encodes the size of the operand. Add a few addr32 prefixes in .code16 blocks to reduce the differences between code generated by clang and gas. ok patrick@, deraadt@, mlarkin@
2016-12-19Revert r1.934 to unbreak autoinstallRobert Peichaer
2016-12-19- no need to export the TERM variable twiceRobert Peichaer
- re-format case-block - unquote single word default answer - use 'break' instead of return to leave (same effect here, but needed later when the function is no function anymore) - use -q option with kbd to limit output to warnings/errors only discussed with and OK krw@ tb@
2016-12-19A couple more unused variables.Kenneth R Westerback
tweak & ok kettenis@
2016-12-19Stop mentioning splsoftnet() in comments, it's almost history.Martin Pieuchot
2016-12-19Kill useless comment about splsoftnet() which is going away.Martin Pieuchot
2016-12-19Sending keep alive ends up in ip_output(), so it needs the NET_LOCK().Martin Pieuchot
ok bluhm@
2016-12-19Assert that IPL_SOFTNET is needed rather than calling splsoftnet()Martin Pieuchot
recursively. ok bluhm@
2016-12-19Remove redundant splsoftnet().Martin Pieuchot
ok bluhm@
2016-12-19Timer sending packets need to grab the NET_LOCK().Martin Pieuchot
ok bluhm@
2016-12-19fix typo, from OpenSSLIngo Schwarze
commit 0b742f93ea7882a447f6523ac56a6f847d9f8e92 Author: Finn Hakansson <finn_hakansson@yahoo.com> Date: Thu Dec 15 12:58:19 2016 -0500
2016-12-19Kill unused function.Rafael Zalamena
ok mpi@
2016-12-19Remove a recursive splsoftnet() in in_ioctl() that already asserts thatMartin Pieuchot
it is called at IPL_SOFTNET.
2016-12-19If rt_ifa_addlocal() in in_ifinit() fails, the address has beenAlexander Bluhm
added to the interface address list, but the local route is missing. This inconsistency could result in a "ifa == rt->rt_ifa" assertion panic later. So in case of a route add error, remove the interface address to get a consistent state again. OK stsp@ mpi@
2016-12-19Adjust Makefile to gain improvements that were made in other archsPatrick Wildt
already. This means for example dropping -Wno-format or adding -g by default. Prompted by jsg@
2016-12-19Fix debug printf format and arguments.Patrick Wildt
Found by and input from jsg@
2016-12-19Extend the multicast sockets and multicast hash table support to multipleRafael Zalamena
domains. This is one step towards supporting to run more than one multicast socket in different domains at the same time. ok mpi@
2016-12-19Introduce the NET_LOCK() a rwlock used to serialize accesses to the partsMartin Pieuchot
of the network stack that are not yet ready to be executed in parallel or where new sleeping points are not possible. This first pass replace all the entry points leading to ip_output(). This is done to not introduce new sleeping points when trying to acquire ART's write lock, needed when a new L2 entry is created via the RT_RESOLVE. Inputs from and ok bluhm@, ok dlg@
2016-12-19fix uninitialised variable warnings from clangJonathan Gray
ok patrick@
2016-12-19remove redundant return statementsJonathan Gray
ok patrick@
2016-12-19ansify function declaration; better whitespacePatrick Wildt