summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-24Document monitor mode support in iwm(4).Stefan Sperling
2017-04-24Implement monitor mode support for iwm(4).Stefan Sperling
The magic commands to capture raw 802.11 frames on e.g. channel 1 are: ifconfig iwm0 mediaopt monitor chan 1 tcpdump -n -i iwm0 -y IEEE802_11_RADIO -s 4096 -w /tmp/iwm.pcap ifconfig iwm0 -mediaopt monitor -chan
2017-04-24Implement support for multiple packets per receive DMA buffer in iwm(4).Stefan Sperling
We can now clear SINGLE_FRAME_MSK in the receive configuration register. Linux has not set this bit in years, and Dragonfly stopped setting it in commit b5eb43f0280bbcfd26af51cf5a4b8e8ff3590b67. This is a prerequisite for monitor mode since the firmware seems to ignore the SINGLE_FRAME_MSK bit while running in monitor mode and sends us garbage. Tested on 7260, 7265, and 8260 devices.
2017-04-24Stop dumping registers on "normal" segmentation faults. Do print the contentsMark Kettenis
of the esr_el1 register for unhandled userland exceptions (and continue to dump the registers in that case). Handle breakpoint traps and make sure we call refreshcreds() on userland traps. ok jsg@
2017-04-24Don't overflow the allocated DHCP response buffer.Reyk Floeter
When copying the DHCP/BOOTP response into the allocated buffer, use the calculated response length instead of the maximum size of a DHCP packet. The response length was verified correctly but the very last step missed to use it. Found by Caspar Schutijser and malloc.conf(5) "S" OK deraadt@
2017-04-24Fix configuration of ASN1_DN IDs.Reyk Floeter
Public key authentication uses public key files that are stored in the /etc/iked/pubkeys/ directory where the IKE IDs are encoded as filenames. This does not simply work with ASN1_DNs where the IDs include slashes and other special characters. Instead of breaking and failing when an ASN1_DN is configured, simply skip the public key lookup but allow to use it with certificates or PSKs. Reported and fix tested by Igor V. Gubenko - Thanks.
2017-04-24Fix typos. From Michael W. Bombardieri <mb at ii.net>. Thanks!Alexandre Ratchov
2017-04-24Print usage on stderr as do other programs. From MichaelAlexandre Ratchov
Bombardieri <mb at ii.net>, thanks.
2017-04-23Handle unequal numbers of Tx and Rx streams in MiRA.Stefan Sperling
Problem reported by Colton Lewis on misc@ ok tb@
2017-04-23Only use ED for clear screen if at the bottom, same as earlier fix toNicholas Marriott
clear end of screen.
2017-04-23Some of the LOG_NOTICE messages from PF were seen in normal operationsStuart Henderson
with certain rulesets and excessively noisy; move them to LOG_INFO (which was previously unused). ok benno@
2017-04-23oops, this was meant to be committed with the pfctl.8 change:Jason McIntyre
sync usage() with SYNOPSIS;
2017-04-23trim the documentation for -k: make it more consistent,Jason McIntyre
and do not try to do all the documenting in SYNOPSIS/usage(); ok deraadt
2017-04-23Rearrange text a bit to make it clear what "discarded" means; ok jmc@ deraadt@Otto Moerbeek
2017-04-22syncTheo de Raadt
2017-04-22Recognize Loongson 3A2000/3B2000 processors.Visa Hankala
2017-04-22Fix an early boot failure on Loongson 3A2000.Visa Hankala
Reported and patch tested by wen heping
2017-04-22The gnome module supports cmake now.Antoine Jacoutot
2017-04-22do not leave temp files after the diffing is doneRobert Nagy
2017-04-22Add a small shell script to be used by syspatch to diff the fake rootRobert Nagy
directories for changes due to the fact that we have to do some "magic" to figure out if things have really changed.
2017-04-22rework the syspatch makefile and do complete builds for each errataRobert Nagy
and diff those instead of doing partial builds of affected directories
2017-04-22Memory leak from David CARLIER.Nicholas Marriott
2017-04-22Reindent with tabs and add missing braces.Visa Hankala
2017-04-22Do not need getopt.h.Nicholas Marriott
2017-04-22Xr mutex(9) and rwlock(9)Visa Hankala
2017-04-22Shuffle bits into their proper files.Visa Hankala
Prompted by jmc@
2017-04-22Can't collect UTF-8 characters of more than one byte at the moment.Nicholas Marriott
2017-04-22new -A should use the session name.Nicholas Marriott
2017-04-22Get rid of the extra layer of flags and cmd_prepare() and just store theNicholas Marriott
CMD_FIND_* flags in the cmd_entry and call it for the command. Commands with special requirements call it themselves and update the target for hooks to use.
2017-04-22For small allocations (chunk) freezero only validates the givenOtto Moerbeek
size if canaries are enabled. In that case we have the exact requested size of the allocation. But we can at least check the given size against the chunk size if C is not enabled. Plus add some braces so my brain doesn't have to scan for dangling else problems when I see this code.
2017-04-22Mouse bindings and hooks set up an initial current state when running aNicholas Marriott
command. This is used for the session, window and pane for all commands in the command sequence if there is no -t or -s. However, using it for all commands in the command sequence means that if the active pane or current session is changed, subsequent commands still use the previous state. So make commands which explicitly change the current state (such as neww and selectp) update it themselves for later commands. Commands which may invalidate the state (like killp) are already OK because an invalid state will be ignored. Also fill in the current state for all key bindings rather than just the mouse, so that any omissions are easier to spot.
2017-04-22We need to collect UTF-8 characters so that width != 1 characters areNicholas Marriott
correctly flushed.
2017-04-22Fix if-shell without a client (so in the config file). Reported by TheoNicholas Marriott
Buehler.
2017-04-22Typo in example.Nicholas Marriott
2017-04-22Memory leaks, from David CARLIER.Nicholas Marriott
2017-04-22Manual page for witness(4). Adapted from FreeBSD.Visa Hankala
2017-04-21Add "key" modifier for -k to make pfctl can kill a state by specifyingYASUOKA Masahiko
the key of the state. ok sasha
2017-04-21Speed up DIOCKILLSTATES by using the RB tree index if all fields usedYASUOKA Masahiko
by the tree of given state key are filled. ok sasha
2017-04-21Log error properly when no current state, and some other minor tweaks.Nicholas Marriott
2017-04-21Make sure cmd_find_from_* clear the state if they fail.Nicholas Marriott
2017-04-21Rename a variable.Nicholas Marriott
2017-04-21Clear shared state if not filling it in.Nicholas Marriott
2017-04-21Make the cmd_find_* functions more obvious when looking for a client,Nicholas Marriott
rather than having it inside other functions. Should be no change to the way targets are resolved just yet.
2017-04-21Key needs to be initialized to zero now it has flags in it.Nicholas Marriott
2017-04-21Cast the result of the __swapXX macros to the proper type.Todd C. Miller
The ternary operator was causing the result to be promoted to int for __swap16. Fixes warning with clang. OK guenther@
2017-04-21Style nits and an unused struct.Nicholas Marriott
2017-04-21Make id parameter of iwm_send_cmd_pdu() a uint32_t so that it matchesStefan Sperling
the size of the corresponding id field in struct iwm_host_cmd. Patch by Imre Vadasz.
2017-04-21Add cmd_find_from_winlink_pane and use it in a couple of places, andNicholas Marriott
make functions that can't fail void.
2017-04-21Fix nic lock usage around iwm_disable_rx_dma().Stefan Sperling
iwm_disable_rx_dma() was unintentionally releasing the nic lock too early. Patch by Imre Vadasz.
2017-04-21Fix nic lock usages around iwm_{read,write}_prph().Stefan Sperling
The iwm_{read,write}_prph() calls don't grab the nic lock themselves so make sure to acquire it where necessary. The iwm_{set,clear}_bits_prph() on the other hand acquire/release the nic lock themselves. Since the nic lock doesn't do recursive locking we need to be careful to avoid accidentally releasing the nic lock too early that way. Patch by Imre Vadasz.