summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-03-30Use in6_pcbhashlookup() in in6_pcbconnect(). We don't need in_pcblookup()Vincent Gross
broad search and in_pcbconnect() already uses in_pcbhashlookup(). ok bluhm@ mpi@ jca@
2016-03-30BIOCGQUEUE and BIOCSQUEUE are no moreDavid Gwynne
2016-03-30remove support for BIOCGQUEUE and BIOSGQUEUEDavid Gwynne
nothing uses them, and the implementation make incorrect assumptions about mbufs within bpf processing that could lead to some weird failures. ok sthen@ deraadt@ mpi@
2016-03-30replace bridge_m_dup with m_dup_pkt.David Gwynne
less code for the same effect, which is ETHER_ALIGNed packets. ok mpi@
2016-03-30Implement proxy ARP for ART based on mpath support.Martin Pieuchot
Since mpath is not enabled in RAMDISK, proxy ARP won't work there either. ok bluhm@
2016-03-30Hook up the gpio interrupt on devices that use it for card detection.Mark Kettenis
Makes the SD card slot on machines based on Intel's Bay Trail SoC fully functional. ok jsg@
2016-03-30Expose the functionality that triggers a check for card insertion or removal.Mark Kettenis
ok jsg@
2016-03-30Add support for gpio-based interrupts.Mark Kettenis
ok jsg@
2016-03-30regeneratePhilip Guenther
2016-03-30Add getlogin_r syscall that checks and returns errors like userspacePhilip Guenther
getlogin_r() API; keep existing syscall as getlogin59 for temporary compat. ok kettenis@ deraadt@
2016-03-30some Xr adjustment to catch up with MLINKS removal;Jason McIntyre
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-30some oce(4) work, it appearsTheo de Raadt
2016-03-29Print address and irq in the same way as sdhc(4)and bytgpio(4).Mark Kettenis
2016-03-29Some sparc64 pci frame buffers incorrectly have the `depth' propertyMark Kettenis
spelled `depth ' with a trailing space. From miod@
2016-03-29Allow to adjust tcp_syn_use_limit with sysctl net.inet.tcp.synuselimit.Alexander Bluhm
This is convenient to test the feature and may be useful to defend against syn flooding in a denial of service condition. It is consistent to the existing syn cache sysctls. Move some declarations to tcp_var.h to access the syn cache sets from tcp_sysctl(). OK mpi@
2016-03-29Check if a device is present (using _STA) in acpi_foundhid. This preventsMark Kettenis
us from reporting devices as "not configured" that aren't actually present, and allows us to remove duplicated code from several drivers. ok deraadt@, ok jsg@
2016-03-29Implement a cleaner way to prevent acpivout(4) from attaching if we haveMark Kettenis
a platform-specific method of controlling the backlight. ok millert@, mlarkin@, jung@
2016-03-29In setlogin(), don't change anything on error.Philip Guenther
ok deraadt@ krw@ zhuk@ jca@ millert@
2016-03-29the stack checks the mac address of rxed packets, so vlan(4) doesnt have toDavid Gwynne
ok mpi@ claudio@
2016-03-29make the ie(4)s bpf_mtap_ether outgoing packets like all the other driversDavid Gwynne
ok mpi@ claudio@
2016-03-29Remove dead assignments and now unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok mpi@ stefan@
2016-03-29remove dead stores and unused variablesCharles Longeau
ok bluhm@ jca@
2016-03-29make bpf_mtap et al return whether the mbuf should be droppedDavid Gwynne
ok mpi@
2016-03-29- packet must keep reference to statekeyAlexandr Nedvedicky
this is the second attempt to get it in, the first attempt got backed out on Jan 31 2016 the change also contains fixes contributed by Stefan Kempf in earlier iteration. OK srhen@
2016-03-29Use a macro to check if a thread has a sibling.Martin Pieuchot
Note that without locking a thread cannot claim that it is part of a multi-threaded process using this macro. Suggested by miod@, ok guenther@
2016-03-29use sizeof(*evl) instead of EVL_ENCAPLEN in vlan_inputDavid Gwynne
2016-03-29Enable bytgpio(4) here as well.Jonathan Gray
2016-03-29add back $OpenBSD$Jonathan Gray
2016-03-28regenMark Kettenis
2016-03-28Make sure that a thread that calls sched_yield(2) ends up on the run queueMark Kettenis
behind all other threads in the process by temporarily lowering its priority. This isn't optimal but it is the easiest way to guarantee that we make progress when we're waiting on an other thread to release a lock. This results in significant improvements for processes that suffer from lock contention, most notably firefox. Unfortunately this means that sched_yield(2) needs to grab the kernel lock again. All the hard work was done by mpi@, based on observations of the behaviour of the BFS scheduler diff by Michal Mazurek. ok deraadt@
2016-03-28Replace 0 with NULL.Mark Kettenis
2016-03-28Adding each and every new acpi device driver to acpi_foundhid() isMark Kettenis
gettinga bit of the burden. And it really isn't how our autoconf framework is supposed to work for busses that can be enumerated. All the drivers already check for a matching _HID in their attach function. So we can just drop the checks in acpi_foundhid() and let the drivers sort themselves out. Print a "not configured" line for devices for which we don't attach adriver. This may be a bit much as there are devices for which we will not have a driver. This will be removed if it causes too much dmesg spam. ok deraadt@, mlarkin@
2016-03-28Match based on _HID instead of the driver name.Mark Kettenis
ok mlarkin@
2016-03-28Enable bytgpio(4).Mark Kettenis
2016-03-28Add support for card detect through a GPIO signal.Mark Kettenis
2016-03-28Add bytgpio(4) a driver for the gpio controllers found on Intel's Bay TrailMark Kettenis
SoC.
2016-03-28Add infrastructure that allows gpio drivers to register themselves withMark Kettenis
the acpi framework such that we can start adding supportfor GPIO resources.
2016-03-28Add definitions for GPIO resources.Mark Kettenis
2016-03-28turn ifv_p into an interface index instead of a real pointer to the parentDavid Gwynne
ok mpi@ jmatthew@
2016-03-28OpenBSD has stopped using the SVr4 KDENABIO/KDDISABIO ioctls for atMatthieu Herrb
least 10 years. No need for special treatement on i386. ok deraadt@, millert@, jca@
2016-03-27To prevent attacks on the hash buckets of the syn cache, our TCPAlexander Bluhm
stack reseeds the hash function every time the cache is empty. Unfortunatly the attacker can prevent the reseeding by sending unanswered SYN packes periodically. Fix this by having an active syn cache that gets new entries and a passive one that is idling out. When the passive one is empty and the active one has been used 100000 times, they switch roles and the hash function is reseeded with new random. tedu@ agrees; OK mpi@
2016-03-27Make it possible to override the standard card detect mechanism. The SDMark Kettenis
controller on Intel's Bay Trail SoC tends to be used in a way where a separate gpio is used that signals the presence of a card in a slot. This change allows us to support that mode. ok stsp@
2016-03-27Always sleep at same priority.Martin Pieuchot
ok uebayasi@
2016-03-27When pulling and unmounting an umass USB stick, the file systemAlexander Bluhm
could end up in an inconsistent state. The fstype dependent mp->mnt_data was NULL, but the general mp was still listed as a valid mount point. Next access to the file system would crash with a NULL pointer dereference. If closing the device fails, the mount point must go away anyway. There is nothing we can do about it. Remove the workaround for the EIO error in the general unmount code, but do not generate any error in the file system specific unmount functions. OK natano@ beck@
2016-03-27Kill async code commented out for more than 10 years.Martin Pieuchot
2016-03-27amap_extend is never called, remove it.Stefan Kempf
In the code, this function is called when vm_map_entries are merged. However, only kernel map entries are merged, and these do not use amaps. Therefore amap_extend() is never called at runtime. ok millert@, KASSERT suggestion and ok mpi@
2016-03-26Always include the route priority in routing messages.Martin Pieuchot
From Florian Riehm, ok bluhm@
2016-03-26Do not populate RTAX_NETMASK when sending a routing message for RTF_HOSTMartin Pieuchot
entries. This is a noop with the radix routing table because rt_mask() is always NULL for RTF_HOST entries, but it preserves the old behavior with ART. With the ART routing table host entry always have a prefix length equals to the length of the address. Fix a regression reported by semarie@. ok semarie@, bluhm@
2016-03-26add newline on the end of the failure messageBob Beck
ok deraadt@