summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-03-21Add support for XBox One gamecontroller, including report descriptor.Thomas Frohwein
Based on previous XBox 360 controller code and NetBSD's implementation. Tested by me and solene@. Input by solene@ and stsp@. ok stsp@ phessler@ ok solene@ for an earlier version.
2022-03-21Make sure that the string generated by pretty_key_id() is always properlyClaudio Jeker
NUL terminated. Diff by Martin Vahlensieck <openbsd () academicsolutions ! ch> OK tb@
2022-03-21Adjust to renaming of F_CTL_ACTIVE/F_PREF_ACTIVE to F_CTL_ACTIVE/F_PREF_BESTClaudio Jeker
OK tb@
2022-03-21Rename F_CTL_ACTIVE and F_PREF_ACTIVE to the more correctClaudio Jeker
F_CTL_BEST and F_PREF_BEST. This is used to mark the one best path in bgpctl. When ECMP support is added then more then one path can be active. OK tb@
2022-03-21Header netinet/in_pcb.h includes sys/mutex.h now. Recommit mutexAlexander Bluhm
for PCB tables. It does not break userland build anymore. pf_socket_lookup() calls in_pcbhashlookup() in the PCB layer. To run pf in parallel, make parts of the stack MP safe. Protect the list and hashes in the PCB tables with a mutex. Note that the protocol notify functions may call pf via tcp_output(). As the pf lock is a sleeping rw_lock, we must not hold a mutex. To solve this for now, collect these PCBs in inp_notify list and protect it with exclusive netlock. OK sashan@
2022-03-21Remove unused files which serve no purpose in OpenBSD; with and ok jsg@Miod Vallat
(works better with `cvs rm' prior to commit...)
2022-03-21Remove unused files which serve no purpose in OpenBSD; with and ok jsg@Miod Vallat
2022-03-21Remove data dependency barrier from atomic_load_* functionsVisa Hankala
This makes the atomic_load_* functions relaxed in terms of memory ordering. Now it should be acceptable to use these functions in assertions. The need of the data dependency barrier is conditioned to usage. The barrier is unnecessary for the control decisions that cond_wait() and refcnt_finalize() make. READ_ONCE() and SMR_PTR_GET() use the barrier so that loaded pointers would work as excepted in lock-free contexts (some Alpha CPUs have a data cache design that can cause unusual load-load reordering if not synchronized properly). OK bluhm@
2022-03-21default the conffile variable to the default file name instead of NULL.David Gwynne
this avoids having to test for NULL and swap the right name in place in a bunch of places. it also avoids having NULL passed to format strings in the parser. the only place where it actually matters if we're using the default or not is when we're parsing the config. if you don't specify a config, and the default file doesnt exist, that's ok. ok florian@
2022-03-21call in_pcbselsrc from rip_output so route sourceaddr can take effect.David Gwynne
previously things that used sendto or similar with raw sockets would ignore any configured sourceaddr. this made it inconsistent with other traffic, which in turn makes things confusing to debug if you're using ping or traceroute (which use raw sockets) to figure out what's happening to other packets. the ipv6 equiv already does this too. ok sthen@ claudio@
2022-03-21treat 255.255.255.255 like an mcast address in in_pcbselsrc.David Gwynne
this allows the IP_MULTICAST_IF sockopt to specify which address you want to send a limited broadcast (255.255.255.255) packet out of. requested by and ok claudio@
2022-03-21No point in calling scsi_link_shutdown() if link->pool is NULL.Kenneth R Westerback
Ditto config_detach() if link->device_softc is NULL. Currently just some extra paranoia, but will allow simplification of exit logic in scsi_probe_link() and other future uses of scsi_detach_link() on partially configured links. No intentional functional change.
2022-03-20setusercontext: only call setrtable(2) if "rtable" set explicitly.Todd C. Miller
When LOGIN_SETRTABLE is set in flags, only call setrtable(2) if there is an "rtable" entry in login.conf. Previously, a default value of 0 was used if the capability was missing. That had the effect of resetting the rtable for every program that uses setusercontext(3), even if a different rtable was chosen by, e.g., "route -T exec command". OK deraadt@ matthieu@
2022-03-20Include sys/mutex.h from netinet/in_pcb.h. Struct mutex will beAlexander Bluhm
needed to make inpcb in kernel MP safe. To build sysctl and libkvm based programs, we have to export it to userland. OK claudio@
2022-03-20Move/group i2d_ASN1_OBJECT() and d2i_ASN1_OBJECT().Joel Sing
2022-03-20Always check if softraid0 is NULL before dereferencing it.Kenneth R Westerback
Avoids panic on reboot when softraid has been disabled. Discovered by, diagnosed, first diff from & fix tested by Scott Nicholas. ok bluhm@
2022-03-20Introduce an alternative mechanism for wifi drivers to communicateStefan Sperling
the channel on which a frame was received. ieee80211_inputm() was expecting that ic->ic_bss->ni_chan would correspond to the channel which is currently being scanned. This dates back to older devices which are manually tuned to the next channel by the driver during SCAN->SCAN state transitions. However, this approach is very awkward for drivers which scan across a whole range of channels in firmware. Such drivers had an ugly workaround in place which tweaked ni_chan for each received frame. Introduce a channel number field in the Rx info struct which drivers can use to indicate the channel on which a frame was received. If this field is set, net80211 will use it instead of using the current channel of ic_bss. Use this new mechanism in all affected drivers. Tested by jmc@, sthen@, and myself on iwm(4) and iwx(4). Changes to iwn(4) and bwfm(4) are the same mechanical changes to get rid of the ni_chan tweak, and are therefore expected to work. ok sthen@ dlg@
2022-03-20Don't announce VHT caps on 2GHz channels during iwm(4) and iwx(4) scans.Stefan Sperling
VHT capabilities were written into the "common" secion of the firmware probe request frame template. This section is used on 2GHz and 5GHz bands. Announcing VHT capabilities on 2GHz makes no sense. Move them into the 5GHz-only section. ok sthen@
2022-03-20syncStuart Henderson
2022-03-20don't leak argument list; bz3404, reported by Balu GajjalaDamien Miller
ok dtucker@
2022-03-20make addargs() and replacearg() a little more robust and improve errorDamien Miller
reporting make freeargs(NULL) a noop like the other free functions ok dtucker as part of bz3403
2022-03-20Make background scans pick up APs on 2GHz channels while in 11ac mode.Stefan Sperling
found by landry@
2022-03-20Enable interrupt moderation, targeting around 20k interrupts per second.Jonathan Matthew
There are separate timers for rx and tx interrupts, so we can use longer timeouts for tx since that doesn't affect packet processing latency. ok dlg@
2022-03-19Remove three useless tests filesTheo Buehler
The asn1test depends on asn1_mac.h which had a date with the bitbucket a few years back (and the test "isn't meant to run particularly, it's just to test type checking"). methtest.c tests an API that was never present in OpenSSL's git history. r160test.c is nothing but a licence. "nuke away" jsing
2022-03-19Provide t2i_ASN1_OBJECT_internal() and use it for OBJ_txt2obj()Joel Sing
The current OBJ_txt2obj() implementation converts the text to ASN.1 object content octets, builds a full DER encoding from it, then feeds the entire thing back through the DER to ASN.1 object conversion. Rather than doing this crazy dance, provide an t2i_ASN1_OBJECT_internal() function that converts the text to ASN.1 object content octets, then creates a new ASN1_OBJECT and attaches the content octets to it. ok inoguchi@ tb@
2022-03-19Revise regress for ascii/text to ASN.1 object conversion rewrite.Joel Sing
2022-03-19Rewrite ascii/text to ASN.1 object conversion.Joel Sing
Rewrite the ascii/text to ASN.1 object conversion code using CBB/CBS, while also addressing some of the bizarre behaviour (such as allowing mixed separators and treating '..' as a zero value). ok inoguchi@ tb@
2022-03-19remove unused Pp;Jason McIntyre
2022-03-19Add another invalid separator test case.Joel Sing
2022-03-19Fix wrongly implemented check for 5GHz access point RSSI threshold.Stefan Sperling
This check was wrong for drivers which report RSSI as a percentage, such as iwm(4) and iwx(4). Such drivers will now prefer 5GHz with 50% or greater RSSI, as was intended. ok phessler@
2022-03-19Give 11n and 11ac networks a higher score during SSID selection.Stefan Sperling
ok phessler@
2022-03-19Fix wrong logic in a check in iwm_vht_single_rate_control() to matchStefan Sperling
what was intended. ok phessler@
2022-03-19Fix attach of multiple iwm(4) or iwx(4) interfaces in the same machine.Stefan Sperling
ok kettenis@, jca@
2022-03-19Remove the paragraph about 802.11ac from CAVEATS in the iwm(4) man page.Stefan Sperling
2022-03-19Do not define RA_DEBUG; pointed out by miod@Stefan Sperling
2022-03-19backout r1.86 "login class routing table should be honored when doingStuart Henderson
a full login with su -l", it breaks rc.d(8) daemon_rtable
2022-03-19Add initial 802.11ac support to the iwm(4) driver.Stefan Sperling
VHT MCS and 80MHz channels can now be used. Other 11ac features such as larger aggregates are left for later work. Tested: 3160: stsp 7260: florian, jmatthew 7265: rfreeman, mlarkin, landry, Peter J. Philip 8260: bket 8265: jturner, Marcus MERIGHI, stsp 9260: florian, matthieu, stsp 9650: kmos, sthen ok sthen@
2022-03-19Add 11ac/VHT Tx rate adaptation support to net80211.Stefan Sperling
Based on our existing RA module for 11n. The main difference is in dealing with 11ac-specific ratesets. Tx rate selection heuristics remain identical. Only supports 80MHz channels, for now. 160MHz is left for future work. ok sthen@
2022-03-19mark injection fault test as okay to fail, since this case no longerMarc Espie
creates temp files with the current optimization.
2022-03-18add list of apple machines from arm64.htmlJonathan Gray
apple specific install instructions still needed
2022-03-18Simplify SSL_do_handshake().Joel Sing
ok inoguchi@ tb@
2022-03-18Rewrite legacy DTLS unexpected handshake message handling.Joel Sing
Rewrite the code that handles unexpected handshake messages in the legacy DTLS stack. Parse the DTLS message header up front, then process it based on the message type. Overall the code should be more strict and we should reject various invalid messages that would have previously been accepted. ok inoguchi@ tb@
2022-03-18Cleanup reference counting. Remove #ifdef DIAGNOSTIC to keep theAlexander Bluhm
code similar in non DIAGNOSTIC case. Rename refcnt variable to refs for consistency with r_refs. Add KASSERT() in refcnt_finalize(). OK visa@
2022-03-18Use the refcnt API with struct plimit.Visa Hankala
OK bluhm@ dlg@
2022-03-18regenMiod Vallat
2022-03-18Add bwfm chips to sdmmcdevs in order to get symbolic constants for them.Miod Vallat
ok jsg
2022-03-18Don't bother generating (unused) CIS overrides.Miod Vallat
ok jsg
2022-03-18add crossrefs to the other port module documentation to port-modules(5)Stuart Henderson
(cabal/cargo/gnome/go/python/qmake-module; ruby-module is already listed)
2022-03-18don't try to resolve ListenAddress directives in the sshd re-execDamien Miller
path - we're never going to use the result and if the operation fails then it can prevent connections from being accepted. Reported by Aaron Poffenberger; with / ok dtucker@
2022-03-18remove blank lineDamien Miller