summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-08-18calloc() is prototyped; do not cast resultTheo de Raadt
2015-08-18_dl_malloc() proto exists, do not cast resultTheo de Raadt
2015-08-18do not cast malloc() return if stdlib.h is includedTheo de Raadt
2015-08-18syncTheo de Raadt
2015-08-18do not use -p to install the tbxi from the src tree; it createsTheo de Raadt
results that confuse krw.
2015-08-18Add a couple of ":"s at the end of lines for consistancy. Not required,Kenneth R Westerback
but these are the only two lines in any disktab that do it this way. ok miod@
2015-08-18Unbreak Octeon kernel config after r1.25 of files.mips64.Visa Hankala
Feedback and ok miod@
2015-08-18Apply the logic used for "protocol" queues to bridge(4). This allowsMartin Pieuchot
to defer the work currently done in bridge_input() and requiring the KERNEL_LOCK to bridgeintr(). Tested by sthen@ ok rzalamena@, dlg@, bluhm@
2015-08-18Remove PF_KEY-specific hacks from rtalloc(9). They are dead since SPDMartin Pieuchot
lookups use the radix API directly. ok mikeb@
2015-08-18Call rtfree(9) when we no longer need the route entry rather thanMartin Pieuchot
decrementing rt_refcnt just after rtrequest1(9). While here reduce the differences with rt_ifa_add(9). There's still an ambiguity about rtrequest1(9)'s return value, but bluhm@ will address that in a different diff. Discussed with and ok bluhm@
2015-08-18Check the error value returned by in6_ifattach().Martin Pieuchot
Prodded by and ok bluhm@
2015-08-18str_match() checked the return value of str_find_aux() incorrectly: itReyk Floeter
might return a negative number; the return value of match_error() which returns (-1). This was technically a bug, and it exists in 5.8, but there is no impact because the error is correctly catched with the returned non-NULL error string. Found by Leandro Pereira
2015-08-18Add missing trailing to error message:Stefan Sperling
pckbc0: unable to establish interrupt for irq 12pckbd0 at pckbc0 (kbd slot) ok miod@
2015-08-18Update en_US.UTF-8.src to Unicode 7.0.0Andrew Fresh
Built with gen_ctype_utf8.pl ok stsp@
2015-08-18Add a script to generate en_US.UTF-8.srcAndrew Fresh
This does require perl 5.22 which is not yet in base, but it also doesn't need to be run except when new unicode versions are released which shouldn't happen until after perl is updated. OK and prodding from stsp@
2015-08-17Add forwarding tests for pf route-to and reply-to. Keep pf forwardAlexander Bluhm
and pf fragment tests in sync.
2015-08-17DUID question is gonePhilip Guenther
ok miod@ deraadt@
2015-08-17Add missing 'extern's to avoid introducing commons into *crt0.oPhilip Guenther
ok miod@ kettenis@
2015-08-17Do not include os-note-elf.h here, otherwise we end up with duplicate OS notesMark Kettenis
in our binaries. ok miod@
2015-08-17The 80's called and want their interface back. Remove last fragments ofKenneth R Westerback
ST-506 support. Remove redundant 'precomp' variables/fields and rename remaining few to 'features' to be consistant with the rest of the code. Consensus that no ST-506 disks (requiring ISA cards, <120MB, usually rife with bad sectors that can't be worked around) are still running OpenBSD.
2015-08-17Remove anoying comment about in6_update_ifa().Martin Pieuchot
2015-08-17Fix whois server detection for new TLDs using whois.nic.<domain> whereStuart Henderson
<domain> has an old TLD as a substring. Specifically, fixes .network lookups. While there, simplify a strlcpy+strlcat to snprintf. ok millert@ phessler@
2015-08-17Use __func__ rather than the function name in log(9) calls to removeMartin Pieuchot
some grep output noise.
2015-08-17Remove unused variable in rt_ifa_add(), prodded by bluhm@Martin Pieuchot
2015-08-17Convert two rt->rt_refcnt-- into rtfree(9) making sure the route entryMartin Pieuchot
is freed when we no longer need it. In this case both code paths are executed in process context and thus serialized by the KERNEL_LOCK. Since we are adding a route entry to the table in both cases, rtfree(9) will not actually free the entry because it is still RT_VALID. ok bluhm@
2015-08-17Match the free(3) semantic and accept NULL pointers in rtfree(9).Martin Pieuchot
This will simplify upcoming conversions of rt_refcnt-- to rtfree(9). Such conversions are needed for proper MP refcounting. ok deraadt@, dlg@
2015-08-17sendmail in ports has it's own rc.d file no need to keep this oneJonathan Gray
ok jca@ aja@
2015-08-16use a less ambiguous example; from larry hynesJason McIntyre
2015-08-16when we switch valid_domainpart() from our own logic to using res_hnok() weGilles Chehade
missed the fact that res_hnok() will consider an empty string as valid.
2015-08-16Fix test against INADDR_LOOPBACKJeremie Courreges-Anglas
ok gilles@
2015-08-16dont need the biglock to call bpf now.David Gwynne
2015-08-16make bpf_mtap mpsafe by using SRPs.David Gwynne
this was originally implemented by jmatthew@ last year, and updated by us both during s2k15. there are four data structures that need to be looked after. the first is the bpf interface itself. it is allocated and freed at the same time as an actual interface, so if you're able to send or receive packets, you're able to run bpf on an interface too. dont need to do any work there. the second are bpf descriptors. these represent userland attaching to a bpf interface, so you can have many of them on a single bpf interface. they were arranged in a singly linked list before. now the head and next pointers are replaced with SRP pointers and followed by srp_enter. the list updates are serialised by the kernel lock. the third are the bpf filters. there is an inbound and outbound filter on each bpf descriptor, ann a process can replace them at any time. the pointers from the descriptor to those is also changed to be accessed via srp_enter. updates are serialised by the kernel lock. the fourth thing is the ring that bpf writes to for userland to read. there's one of these per descriptor. because these are only updated when a filter matches (which is hopefully a relatively rare event), we take the kernel lock to serialise the writes to the ring. all this together means you can run bpf against a packet without taking the kernel lock unless you actually caught a packet and need to send it to userland. even better, you can run bpf in parallel, so if we ever support multiple rings on a single interface, we can run bpf on each ring on different cpus safely. ive hit this pretty hard in production at work (yay dhcrelay) on myx (which does rx outside the biglock). ok jmatthew@ mpi@ millert@
2015-08-16avoid a toctou problem in if_input in the bpf handling.David Gwynne
load ifp->if_bpf into a local variable, test that, and pass it to bpf. this is instead of instead of assuming ifp->if_bpf wont change between checking it and passing it to bpf.
2015-08-16Come out of copy mode when history is cleared.Nicholas Marriott
2015-08-15Some bits for Loongson 3A support.Miod Vallat
2015-08-15typoMiod Vallat
2015-08-15Remove orphaned debug code.Miod Vallat
2015-08-15If the SRM has explicitely set up some ISA interrupts level-triggered,Miod Vallat
honour this setting and consider them level-triggered instead of `polarity decided by the first driver to use it'. Add explicit code to turn registration of edge-triggered interrupts 3 and 4 into level-triggered, if they were set up a level-triggered by the SRM. Based upon a NetBSD diff which eventually got reverted in NetBSD. However, it turns out this is necessary for the kernel to correctly run with serial console on my Multia.
2015-08-15When sendrecv() returns -1, have rpc_call() return -1 as well. Otherwise, dueMiod Vallat
to the cast to unsigned, it fails the error test and returns a bogus partial read to the caller, which is painful to debug.
2015-08-15Use signed variables to store the result of rpc_call().Miod Vallat
2015-08-15Do not perform timeout maintainance on sc->poll_timeout if it has not beenMiod Vallat
initialized yet.
2015-08-15Store the {e,}isa_chipset_t in the softc, rather than on sio_bridge_callback()'sMiod Vallat
stack, for {e,}isa drivers might have a need for them way after autoconf - at least pcic@isa does.
2015-08-15No need to cargo-cult include <alpha/pci/sioreg.h> here.Miod Vallat
2015-08-15Fix isa_chipset_t ic_intr_{alloc,check} prototype: these take anMiod Vallat
isa_chipset_tag_t, not an isa_chipset_tag_t *, as isa_chipset_tag_t is already a pointer.
2015-08-15Enable AlphaBook 1 support in bsd.rd tooMiod Vallat
2015-08-15When resetting the hwrpb after a succesfull secondary processor spinup,Miod Vallat
make its start routine point to cpu_halt, just in case.
2015-08-15Increase the size of the masks used in i386 ldscript to account for largerMike Larkin
sections that may be encountered when using larger than normal ramdisks. No binary change. Requested by and diff provided by Nathanael Rensen <nathanael at list.polymorpheus.com>
2015-08-15assume messages use 8bit bytes by default, not just when 8BITMIME extensionGilles Chehade
is used, this is what the world expects, this is what other MTA do.
2015-08-15Less damned spurious whitespace.Kenneth R Westerback
2015-08-15bump size of acceptable headers lines, there is no need to be too strictGilles Chehade