summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-04-11Add 'restrict' per POSIX, per prodding by tedu@. (Might permit more warnings?)Philip Guenther
Tweak standards exposure of memchr (never) and strdup (POSIX-2008) Remove unnecessary tests of __BSD_VISIBLE ok millert@
2013-04-11quiet disconnect notifications on the server from error() back to logit()Damien Miller
if it is a normal client closure; bz#2057 ok+feedback dtucker@
2013-04-11The tweaks I suggested to the previous diff resulted in the typeflagPhilip Guenther
being checked after it was overwritten by the next block read in. Eliminate the argument aliasing that led to this being overlooked by passing rd_xheader() the size and typeflag directly. problem discovery and ok fgsch@
2013-04-10Correctly handle data memory protection ID traps: if occuring in user mode,Miod Vallat
SIGSEGV the process; if occuring in kernel mode, check for a possible pcb_onfault to recover, before otherwise panicing. ok kettenis@
2013-04-10futex: Prevent multiple futex pool initializations.Paul Irofti
This is a temporary (ugly) fix, the pool init call should be moved from linux_elf_probe into a better place.
2013-04-10futex: Sprinkle a few debug printfs that helped me in the past.Paul Irofti
2013-04-10futex: Assert that the refcount is larger than 0 when doing futex_put.Paul Irofti
2013-04-10Set EV_WRITE for jobs or run/if-shell jobs can hang. From Chris Johnsen.Nicholas Marriott
2013-04-10Fix bug where end guard in control mode was not printed after sessionNicholas Marriott
destroyed, from George Nachman.
2013-04-10Missed -o from set-window-option, from Ben Boeckel.Nicholas Marriott
2013-04-10Remove some code not needed on OpenBSD.Nicholas Marriott
2013-04-10Remove various external variable declaration from sources files andMartin Pieuchot
move them to the corresponding header with an appropriate comment if necessary. ok guenther@
2013-04-10Merge usbd_get_device_desc() into the only function using them.Martin Pieuchot
ok mglocker@
2013-04-10Instead of refetching the descriptor from the device, just use the copyMartin Pieuchot
already in memory retrieved during the autoconf USB attach logic. This is a good example of how confusing can be the usbd_get_* functions. ok mglocker@
2013-04-10Merge usb_devinfo* helper functions into usbd_print(), nothing else useMartin Pieuchot
them. ok ratchov@, mglocker@
2013-04-10Remove unused function usb_find_desc().Martin Pieuchot
2013-04-10Get the standard path from _PATH_STDPATH instead ofPhilip Guenther
sysctl({CTL_USER,USER_CS_PATH}). Expand that into the manpage too. _PATH_STDPATH suggested by miod@ Corrections from schwarze@ and jmc@ ok millert@ miod@ schwarze@ jmc@
2013-04-10Fix various glitches in queue macro usage.Philip Guenther
ok millert@
2013-04-09Add a magic number to the head of the signature block. Check for magicMike Larkin
number match during signature block read during speculative unhibernate on boot. If the magic number matches but we have otherwise chosen to not unhibernate (due to kernel/memory mismatch), clear the signature block early to avoid accidentally trying to unhibernate on subsequent boots. This prevents accidental unhibernates and endless unhibernate/reboot cycles. Add a define for HIBERNATE_DEBUG for various debugging printfs (disabled by default). Finally, change some KASSERTs to warning printfs (they probably shouldn't have been KASSERTs in the first place). "looks good" deraadt@
2013-04-09newvers.sh uses 'basename' to determine the directory name to stamp theMike Larkin
kernel version ID with, but it did not account for spaces in the name, leading to version strings like "OpenBSD 5.3-current ()". Quote the call to basename to permit paths with spaces in the name. ok halex@, deraadt@
2013-04-09Add extended header support for ustar. Currently only path and linkpath areFederico G. Schwindt
handled. input from zhuk and guenther. tested by zhuk and sthen on a bulk. ok guenther.
2013-04-09do not store a time_t or the result of a time_t division in an intGilles Chehade
prompted by deraadt@, ok claudio@ chl@ guenther@
2013-04-09Retry when SSL_read fails with SSL_ERROR_WANT_READ. Fixes the case whereStuart Henderson
an https server attempts renegotiation. ok jung@
2013-04-09When submitting a request the device's default pipe is alwaysMartin Pieuchot
used, so do not pretend to support a different one and get rid of the unused usbd_do_request_flags_pipe() function. ok mglocker@
2013-04-09There's no need for usbd_get_config_desc_full() so just call usbd_get_desc()Martin Pieuchot
directly this also makes it easier to understand which function actually generates IO. ok mglocker@
2013-04-09Remove read-only ipsec variables and directly use defines instead.Martin Pieuchot
ok mikeb@, markus@
2013-04-09show what we parsed in debug output; ok guether@Otto Moerbeek
2013-04-09knf. even old ttys need love.Ted Unangst
2013-04-09Need #include "isa.h" for NISAPhilip Guenther
Diff from Christian Groessler (chris (at) groessler.org)
2013-04-09Add missing #ifdef CRYPTO around amd64_has_aesniPhilip Guenther
Diff from Silamael (Silamael (at) coronamundi.de)
2013-04-08A few changes that reduce the diffs to the Linux code. Mostly style issues,Mark Kettenis
but in one case change the errno value that gets returened to match Linux.
2013-04-08Do not fail if the user buffer is too short to hold the packet: fill it upEric Faurot
to the given size and return the packet length. issue spotted by weerd@
2013-04-08Updates to SYNOPSIS, ERRORS, and STANDARDS.Philip Guenther
2013-04-08Use .Er for errno E* constantsPhilip Guenther
2013-04-08Recalculate the IP and protocol checksums of packets (re)injected viaLawrence Teo
divert(4) sockets. Recalculation of these checksums is necessary because (1) PF no longer updates IP checksums as of pf.c rev 1.731, so translated packets that are diverted to userspace (e.g. divert-packet with nat-to/rdr-to) will have bad IP checksums and will be reinjected with bad IP checksums if the userspace program doesn't correct the checksums; (2) the userspace program may modify the packets, which would invalidate the checksums; and (3) the divert(4) man page states that checksums are supposed to be recalculated on reinjection. This diff has been tested on a public webserver serving both IPv4/IPv6 for more than four weeks. It has also been tested on a firewall with divert-packet and nat-to/rdr-to where it transferred over 60GB of FTP/HTTP/HTTPS/SSH/DNS/ICMP/ICMPv6 data correctly, using IPv4/IPv6 userspace programs that intentionally break the IP and protocol checksums to confirm that recalculation is done correctly on reinjection. IPv6 extension headers were tested with Scapy. Thanks to florian@ for testing the original version of the diff with dnsfilter and Justin Mayes for testing the original version with Snort inline. Thanks also to todd@ for helping me in my search for the cause of this bug. I would especially like to thank blambert@ for reviewing many versions of this diff, and providing guidance and tons of helpful feedback. no objections from florian@ help/ok blambert@, ok henning@
2013-04-08lsd first synthesised 16/11/38, not 7/4/43, apparently; its wondrousJason McIntyre
properties discovered in 43, but i've left the recorded date as the first synthesised one; from James J. Lippard
2013-04-08Grammar/wording tweaks.Brian Callahan
2013-04-08Add new ioctl's USB_DEVICE_GET_CDESC and USB_DEVICE_GET_FDESC to usb(4).Marcus Glocker
Those are the equivalents for ugen(4)'s USB_GET_CONFIG_DESC and USB_GET_FULL_DESC. Help and OK mpi@, jmc@
2013-04-08expand instructions for manually configuring the MBR.Jasper Lievisse Adriaanse
2013-04-08sync with recent developmentsJasper Lievisse Adriaanse
2013-04-08create a small MSDOS partition from where u-boot will load the kernel.Jasper Lievisse Adriaanse
feedback/ok halex@ krw@
2013-04-08allow octeon to find it's root device, based on the flags passed by U-Boot. ↵Jasper Lievisse Adriaanse
The ${bootcmd} needs to be something like 'bootoctlinux root=/dev/octcf0'. This will be temporary untill we have proper bootblocks, but for now, this (in combination) with an upcoming installer diff allows my CAM-0100 to autoboot straight of the disk, without having to load the kernel via TFTP. ok bcallah@ yasuoka@
2013-04-08Comply with rfc2553. lib/libc/net/getaddrinfo.c already has this right.Christopher Zimmermann
This fixes hostname resolution for OpenVPN 2.3.1. ok eric@.
2013-04-08macro fix for previous;Jason McIntyre
2013-04-08division of time_t does not necessarily fit in an intGilles Chehade
spotted by deraadt@
2013-04-08Updates to SYNOPSIS, ERRORS, and STANDARDS.Philip Guenther
2013-04-08Fix typo in ale_stop_mac().Brad Smith
From FreeBSD ok kevlo@
2013-04-08zap trailing whitespace;Jason McIntyre
2013-04-08Use the fixed pixel clock for eDP in intel_dp_set_m_n()Jonathan Gray
from linux 3.8.6
2013-04-08Don't clobber crtc->fb when queue_flip failsJonathan Gray
from linux 3.8.6