summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2012-01-20save content of the pci attach args, not the pointer; from Christian EhrhardtMike Belopuhov
2012-01-20Add bio(4) status interface structs and utility functions to softraid(4).Joel Sing
2012-01-20Implement a status message interface for bio(4) capable devices.Joel Sing
2012-01-19Teach pppoe(4) about RFC 4638. This allows negotiating increased MTU withStuart Henderson
compatible equipment provided that the physical interface and other layer 2 devices involved support and are configured to use jumbo frames. Manpage to follow; typical use is to request 1500 MTU for pppoe, this requires 1508+ MTU on the physical interface, e.g. "ifconfig em0 mtu 1508; ifconfig pppoe0 mtu 1500". Known to be usable in the UK with some ISPs (e.g. aaisp) using BT FTTC backhaul. From Matt Dainty, originally based on support in NetBSD, changed to decouple pppoe from physical interface MTU. Tested with UK FTTC by Matt, no regressions on my standard UK ADSL setup or yasuoka@'s setup (in Japan, NTT uses 1452 byte MTU for PPPoE and 1500 byte MTU for IPv6 on the same network). ok yasuoka@
2012-01-18Remove dead assignments and newly created unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok henning@ markus@
2012-01-18Don't unconditionally allocate new nodes in the hostap auth frame input path.Stefan Sperling
Check if the node was already cached first. Duplicate nodes aren't reachable from the node cache's RB tree, so they leak and mess up node cache accounting. As more and more nodes leak the global nodes counter keeps increasing, eventually reaching the limit and hovering there. The system then constantly tries to clean the node cache, sending de-auth frames to stations in the process, even if the actual number of associated stations is small. ok jsg@
2012-01-18Make it possible to free cached nodes which never associated (e.g. nodesStefan Sperling
only scanning for networks). These were never put into COLLECT state and were thus never evicted from the node cache in hostap mode. ok jsg@
2012-01-18Fix a problem that causes LCP keepalive timeout. In case the ack number ofYASUOKA Masahiko
a packet that is passed to the userland has not incremented, `pipex' passed the packet mistakenly with invalid ack number. Then `npppd' will drop these packets, so that caused the problem. tested jmatthew ok jmatthew
2012-01-17Remove assembly version of strlen from i386 and amd64, where it'sMike Belopuhov
up to 3 times slower than the C code most of the time. This was brought up by DragonflyBSD guys initially. ok deraadt, guenther. miod will not miss it.
2012-01-17Fix trailing whitespace.Alexander Bluhm
2012-01-17Add an __attribute__((__format__(__kprintf__))) to disasm_interface_t.di_printfMiod Vallat
2012-01-17Move the bio(4) cookie into a separate struct and make this struct theJoel Sing
first member of each ioctl data structure. This will allow for future changes to bio(4) status handling.
2012-01-17Check the metadata level against the assembly level before proceeding withJoel Sing
any assembly. This avoids a panic when attempting to assemble a RAID 1 (or other) volume as a RAID 0 volume. Also reorder some of the other checks and diagnostics performed during assembly.
2012-01-17Add missing ioctl DNPRINTFs and nuke some rogue commas.Joel Sing
2012-01-17Reimplement mutexes, condvars, and rwlocks to eliminate bugs,Philip Guenthe
particularly the "consume the signal you just sent" hang, and putting the wait queues in userspace. Do cancellation handling in pthread_cond_*wait(), pthread_join(), and sem_wait(). Add __ prefix to thr{sleep,wakeup,exit,sigdivert}() syscalls; add 'abort" argument to thrsleep to close cancellation race; make thr{sleep,wakeup} return errno values via *retval to avoid touching userspace errno.
2012-01-17During IPv6 source address selection, give address scope higher priorityStefan Sperling
than the autoconfprivacy bit, as per by RFC3484. Prevents privacy addresses from being erroneously used as source address if the destination address is in a different scope. Privacy addresses are still preferred over other source addresses from the same scope. Problem found by sthen, fix suggested by sperreault; ok sperreault
2012-01-16Pass struct pf_pdesc to pf_walk_option6() and pf_walk_header6() toAlexander Bluhm
make their argument list shorter. Also fix a bug where pf_walk_option6() used the outer header in the pd2 case. ok henning@ mikeb@
2012-01-16Ensure that all disk attach callbacks have completed before attemptingJoel Sing
to locate the root via DUID. ok krw@
2012-01-16mpi_get_ccb and mpi_put_ccb are only called via iopools now, so changeDavid Gwynne
their types to fit the iopools api rather than doing awful typecasts to shove them into iopool_init.
2012-01-16do carp demotion adjustments on syncdev link state change.Mike Belopuhov
this prevents backup to failover back to master immediately after getting link back on carpdev interface if underlying pfsync interface went down as well. instead pfsync will request a bulk update to get new states from the master. sthen and mpf like the idea, ok dlg
2012-01-16bpf devices behave similar to raw sockets and never block on write,Philip Guenthe
so always show as writable to poll()/select(). Behavior pointed out by Fernando Gont. ok deraadt@
2012-01-15Calling pf_normalize_ip() from pf_setup_pdesc() was bad as theAlexander Bluhm
latter is called from pf packet logging. This resulted in normalization and reassembly of bad packets to be logged. So rearrange the code and move the call to pf_test(). ok henning@
2012-01-15As SiS IDE has the same PCI product id for different revisionsJonathan Gray
with different bugs the host bridge is used to determine which path to take. As pointed out by Chris Cappuccio we need to expand this list to cover newer chips SiS have inflicted on the world. From and tested by Loganaden Velvindron (on SiS 968).
2012-01-14Remove struct mclsizes, this is a left over.Christiano F. Haesbaert
ok dlg@
2012-01-14KNF whitespace; no change with diff -wStuart Henderson
2012-01-14Support Huawei K4510 with DEV_UMASS5; Daniele PilengaStuart Henderson
2012-01-14syncStuart Henderson
2012-01-14add Huawei K4510; Daniele PilengaStuart Henderson
2012-01-13Simplify function wsfont_map_unichar.Alexandr Shadchin
ok mpi@
2012-01-13Always set DKF_OPENED in the disk attach callback.Joel Sing
2012-01-13Crank amd64 boot(8) version for the softraid changes.Joel Sing
2012-01-13Restore previous behaviour - only print the DUID if we used it toJoel Sing
select root.
2012-01-13Switch back to bootduid, however remember to include sys/systm.h...Joel Sing
2012-01-13Drop IPv6 packets built from overlapping fragments in pf reassembly.Alexander Bluhm
The reassembly state will be dropped after timeout, all related fragments are dropped until that. This is conforming to RFC 5722. - Sort pf_fragment fields while there. - If the fr_queue is empty, we had overlapping fragments, don't add new ones. - If we detect overlapping IPv6 fragments, flush the fr_queue and drop all fragments immediately. - Rearrange debug output, to make clear what happens. - An IPv4 fragment that is totaly overlapped does not inclease the bad fragment counter. - Put an KASSERT into pf_isfull_fragment() to make sure that the fr_queue is never emtpy there. discussed with Fernando Gont; ok henning@
2012-01-13handle m_copyback errors, this code is too sensitive for suchMike Belopuhov
failures to be neglected; ok markus
2012-01-13Repair hw vlan tagging and stripping on 82599. Previously receiverMike Belopuhov
would prepend another vlan tag 0 to all frames containing 802.1Q tags rendering vlans unusable. ok jsg, deraadt
2012-01-12add support for skinny variants.David Gwynne
from Alexey Suslikov reviewed by marco
2012-01-12regenDavid Gwynne
2012-01-12product SYMBIOS SAS2008_1 0x0073 MegaRAID SAS2008David Gwynne
skinny variant of mfi(4) from Alexey Suslikov
2012-01-12s/5.0/5.1/, ok deraadt@Stuart Henderson
2012-01-11Ansify raw_... function definitions. No binary change.Alexander Bluhm
from Michael W. Bombardieri; ok henning@
2012-01-11crank to 5.1-betaTheo de Raadt
2012-01-11Backout premature use of 'bootduid', as 'rootduid' has not yet beenKenneth R Westerback
renamed.
2012-01-11Simplify the #if CARP and if (IFT_CARP) dance in nd6_ns_input().Alexander Bluhm
Fix a white space bug while there. No functional change. ok mikeb@ robert@ henning@
2012-01-11Put an splsoftassert(IPL_SOFTNET) into in_pcbdetach().Alexander Bluhm
ok mikeb@
2012-01-11ansify and de'register some prototypesDavid Hill
ok miod@
2012-01-11Teach OpenBSD/sparc64 installboot(8) about softraid volumes. This makesJoel Sing
root on softraid possible, although the kernel still needs to be loaded from a non-softraid partition.
2012-01-11Pass the DUID of the boot disk via bootduid instead of rootduid, since itJoel Sing
is the DUID that we booted from, which is not always going to be the same as the DUID that we mount root on.
2012-01-11If the DUID of the boot disk has not been provided, attempt to locate itJoel Sing
via the boot device. This allows root on softraid to work on most architectures. For architectures that cannot clearly identify their boot device, the DUID of the boot disk can still be passed from the boot loader, as is already done for amd64 and i386. Based on a suggestion from kettenis@ ok krw@
2012-01-11Move softraid root mapping to later in the boot process - this will allowJoel Sing
us to play some tricks in setroot().