summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-01-04Replace magic shifts and bitmasks used for ADDBA parametersStefan Sperling
with proper names, now that we have the corresponding macros.
2016-01-04Fix another case where the return value of ieee80211_chan2mode() wasStefan Sperling
used for indexing something other than ic_sup_rates. Should have been part of earlier commit.
2016-01-04ADDBA frames have a parameter set which we check against our own capabilitiesStefan Sperling
but we were checking bits in these parameters with the wrong set of bitmasks. Negotiating A-MPDUs with some APs failed because of this bug. ok kettenis@
2016-01-04Fix manual scan while associated in 11a mode. It would only show APs on 5GHz.Stefan Sperling
Problem found by benno@ ok benno@ kettenis@
2016-01-04Don't return 11n mode from ieee80211_chan2mode() so we can switch intoStefan Sperling
11a and 11b/g mode correctly when the driver supports 11n. And make sure the result of this funtion is only used to index ic_sup_rates. Its stated purpose is to help select a legacy rate. ok sthen jasper kettenis deraadt mpi
2016-01-04While configuring ERP we need to know if we're in 11a or 11g mode so onlyStefan Sperling
configure ERP once we are sure about our operation mode against the AP. ok sthen jasper kettenis deraadt mpi
2016-01-04Skip over 11n mode during scanning to avoid scanning channels more than once.Stefan Sperling
ok sthen jasper kettenis deraadt mpi
2016-01-04More headers removal and sorted the remaining alphabetically.mestre
Most noticeable that were removed are sys/types.h which will be included from stdlib.h and in turn also brings along sys/cdefs.h. The other one is limits.h that was used with the old idiom (denom * random() / LONG_MAX), although it was only removed were applicable (some files still need that header). OK tb@
2016-01-04Use err(3) instead of various handrolled combinations of perror(3) andtb
fprintf(stderr, ...) with strerror(3) and exit(3). Make sure the exit status is 2 if an error occurred. Prompted by gsoares@'s and jsg@'s audit of exit statuses after failure of pledge(2). ok gsoares@
2016-01-04pledge(2) spamd-setup(8)mestre
It needs these annotations, to at least run the operations next to them: stdio: malloc(3) rpath: open(2) inet: connect(2)/socket(2) proc: fork(2) exec: execvp(3) While here remove netinet/in.h since all we need is already in arpa/inet.h and sort the headers alphabetically OK beck@
2016-01-04Use an bitmap of handler function pointers to track I/O device to handlerMike Larkin
function mappings. First step in reworking device support in vmd to better handle interrupts.
2016-01-04mark the driver MPSAFE. most of this is cleaning up the oactive handling.David Gwynne
if there's lingering bugs we'll deal with them in tree. ok jmatthew@
2016-01-04Remove parameter name from gpt_chk_mbr() prototype and add prototypeKenneth R Westerback
for findopenbsd_gpt().
2016-01-04Use the correct values for TLS certificate / private key flags.Brent Cook
fix from Andreas Bartelt <obsd at bartula.de>
2016-01-04bzero -> memset for consistencyMike Larkin
2016-01-04Calling clone(2) with CLONE_NEWPID yields multiple processes with pid=1.Brent Cook
Work around this particular case by reseeding whenever pid=1, but as guenther@ notes, directly calling clone(2), and then forking to match another pid, provides other ways to bypass new process detection on Linux. Hopefully at some point Linux implements something like MAP_INHERIT_ZERO, and does not invent a corresponding mechanism to subvert it. Noted by Sebastian Krahmer and the opmsg team. See http://stealth.openwall.net/crypto/randup.c for a test program. ok beck@
2016-01-04Do proper termination of VMs by doing proper VCPU run state management.Mike Larkin
This should fix some of the odd termination errors people have been seeing (vmctl status showing running VMs after they have exited/crashed, and invalid instruction panics on vmptrld during certain races) This diff also implements dropping the biglock when running a VCPU, and reacquiring the lock as needed based on the type of exit (normal vs. external interrupt) diff supplied by Stefan Kempf <sn.kempf at t-online.de>, many thanks!
2016-01-04wrap a long lineMike Larkin
2016-01-03Clarify vmctl console operation.Mike Larkin
From Michal Mazurek, thanks!
2016-01-03Add a cleanup block, fix a couple of memory leaks, fix a typo and a bitMike Larkin
of KNF. Submitted by Michal Mazurek, thanks!
2016-01-03Fix typo in comment.Mark Kettenis
Pointed out by mlarkin@
2016-01-03Allow macro execution to continue without delay in the event of aMark Lumsden
visble bell call.
2016-01-03Fix description of fuser -u: what's usually reported in brackets is thetb
username, as determined by the real user id, not the real user id itself. ok jmc@
2016-01-03forgot to call RB_INIT. but yet things mostly worked...Ted Unangst
2016-01-03fix wording which becomes confusing now that filters is a real thingGilles Chehade
diff from Marcus MERIGHI <mcmer-openbsd@tor.at> ok jmc@ while at it, fixed an example
2016-01-03The pkgpath given mentioned -qt4, but the description wrongly told -main.Vadim Zhukov
2016-01-03Don't need two 16K static buffers to checksum the GPT entries and find theKenneth R Westerback
OpenBSD partition. Just one 128-byte stack copy of a single entry. Problems with EFI installs involving many disks reported by and fix tested by Thomas Bohl. Stefan Kempf pointed finger of suspicion at the addition of the 2nd 16K static buffer for softraid GPT and suggested/reviewed several versions of the diff. Tweaked and ok jsing@
2016-01-03Add missing pledge "getpw". If -s or -o were specified on the commandtb
line and the `remote file name' is subject to `tilde expansion', a call to getpwnam(3) happens. ok semarie@
2016-01-03About 13 years ago when the idiom srandom(time()), and sometimesmestre
srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h> lived up until this day so remove it. Additionally, earlier than that, 18 years ago, random(6) was one of the first consumers of arc4random(3) family, and was pulling it from dev/rndvar.h but these days we pull it from stdlib.h, which is already done, so while here remove dev/rndvar.h also. "seems comprehensive to me" deraadt@ and OK tb@
2016-01-03Remove obsolete and undocumented "-carpdev" option, from Fabian Raetz.Martin Pieuchot
ok benno@, claudio@
2016-01-03enable pchtemp(4) on i386.Daniel Dickman
ok kettenis@
2016-01-03Add support for 100 series to pchtemp(4).Daniel Dickman
ok kettenis@
2016-01-03syncTheo de Raadt
2016-01-03copyright++;Jonathan Gray
2016-01-02make sure debug will be initialized, choose "unknown" (because pfctlSebastian Benoit
loglevel_to_string() uses "unknown" as well) ok kettenis@ florian@
2016-01-02garbage collect unused variable tmSebastian Benoit
ok kettenis@ florian@
2016-01-02remove unused variable cur. code probably c&p from print_bar_title().Sebastian Benoit
remove useless decleration of variable change. ok kettenis@ florian@
2016-01-02clock-mode needs CMD_PANE.Nicholas Marriott
2016-01-02fix typo in comment, found by Michal Mazurek, thanksSebastian Benoit
2016-01-02garbage collect unsused variableSebastian Benoit
found by evh -AT- riseup -DOT- net, ok florian@
2016-01-02Sync magdir/animation with file 5.25, amongst other updates this fixes anStuart Henderson
incorrect detection of mp3 sample frequency/audio channels with non-mp3 files tracked down by Brandon Vincent. ok nicm@
2016-01-02fixes fuser(1) when invoking with -u: it requires "getpw" promise.Sebastien Marie
problem reported by Michael Reed m.reed at mykolab dot com. ok tb@ and benno@ (which as provided near the same diff, but 5min later :p)
2016-01-02Add dired-find-alternate-file.Mark Lumsden
2016-01-02update currency exchange rates;Jason McIntyre
2016-01-02tweak previous;Jason McIntyre
2016-01-02tweak previous;Jason McIntyre
2016-01-02Document recent videoio.h changes.Ingo Feinerer
ok jmc@
2016-01-02Take the PHY of iec(4) out of reset before attaching the interface.Visa Hankala
Otherwise the PHY goes undetected on the slave node of a dual-node Origin 200. The PHY gets enabled by diagnostic checks but only on the master node. As the attach code will now do the enabling, the checks can be disabled on reboot, making reboots faster especially on IP27. Tested on Origin 200 (IP27), Fuel (IP35 with iec), and Origin 350 (IP35 without iec). Diff from miod@, ok krw@
2016-01-02mmcc noticed that nd.ni_pledge was uninitialized in doopenat() for theTheo de Raadt
oflags & 3 == 3 case. Therefore this depends on vn_open() blocking the operation later. Probably this meant the ni_pledge request would be too high, causing transient operation failure, rather than transient operation passage). Instead of initializing based on the oflags value use the result of FFLAGS(). I should have done this from the start. ok semarie [oflags & 3 == 3 is major dejavu for me]
2016-01-01Improve error message for sed -i by appending strerror(errno).tb
From Michael Reed, thanks! ok deraadt@