summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-12-03Remove an OpenBSD-specific tweak regarding .Xr spacingIngo Schwarze
and make it compatible with bsd.lv mandoc and with groff-1.21. This tweak was originally added for compatibility with groff-1.15, which is no longer needed. ok jmc@ kristaps@
2011-12-03Be sure not to access the vm_page array out of bounds in uvm_pmr_freepages().Miod Vallat
Among other things, this fixes early panics on hppa system which memory size is exactly 128MB. Found the hard way and reported by fries@, not reported by beck@
2011-12-03Correctly handle clitpad packets for some ALPS models.Martin Pieuchot
reported by espie@, not reported by miod@ with and ok shadchin@, ok espie@
2011-12-03add support for MSG_NOSIGNAL.Federico G. Schwindt
linux bits compiled on i386 by sebastia@, mikeb@ ok
2011-12-03Make sure splx() is called before exiting wi_usb_tx_lock_try().Kenneth R Westerback
Found by Jan Klemkow. Thanks!
2011-12-03Make sure splx() is called before exiting trm_StartWaitingSRB().Kenneth R Westerback
Found by Jan Klemkow. Thanks!
2011-12-02dont put MAXMCLBYTES in the mclsizes array with a comment saying its 64kDavid Gwynne
when the macro can change without automatically fixing the comment. instead add a diagnostic that checks that the biggest cluster size is always MAXMCLBYTES. requested by and ok kettenis@
2011-12-02Kill unused IFCAP_IPSEC and IFCAP_IPCOMP.Christiano F. Haesbaert
ok claudio@ henning@ mikeb@
2011-12-01Be sure to splx() before return in pgt_media_status(); from Jan Klemkow onMiod Vallat
tech@
2011-12-01Mark Apple iPod and iPhone products with UQ_BAD_HID and UAUDIO_FLAG_BAD_AUDIO.David Hill
This allows these devices to attach as ugen, so at least we can use some apps, like gphoto2 to retrieve media. requested by a few, ok mikeb@
2011-12-01regenDavid Hill
2011-12-01Add a bunch of Apple iPod and iPhone devicesDavid Hill
2011-12-01Make sure we only enter pf_route() when undefering in the PF_ROUTETO case.Ryan Thomas McBride
ok dlg claudio
2011-11-30this diff introduces the MAXMCLBYTES macro to describe the largestDavid Gwynne
cluster the generic network stack will be able to give you. it also recognises that external storage on an mbuf may be bigger than MCLBYTES. its only when m_pullup or m_pulldown need to allocate another cluster that they now check the len argument, and now they do it against MAXMCLBYTES. this is required for me to do pfsync on jumbo frames as the m_pulldown for the subregions fail beyond MCLBYTES into the packet. ok deraadt@ mikeb@ henning@ blambert@ manpage changes ok jmc@
2011-11-30correctly calculate the space available in external storage in m_pullup.David Gwynne
ok deraadt@ claudio@ blambert@ mikeb@
2011-11-29the code for managing tty vs cua usage collision was free'ing all sortsTheo de Raadt
of critical structures when it hit a collision. Also, ttyopen is ldisc 0, so it should not be called twice (and furthermore, with the wrong dev_t) original report from mikeb, ok dlg mikeb and discussed with miod
2011-11-29Do not blindly return 1 from the interrupt handler since we do not knowJoel Sing
if we actually did any work. Otherwise devices sharing this interrupt will not have their interrupt handler run, possibly leading to the kernel spinning in the vic(4) interrupt handler. ok dlg@
2011-11-29whitespace fixes. no binary change.David Gwynne
2011-11-29use a u_int64_t for the state id in pfsync_state. this makes it consistentDavid Gwynne
with every other thing that stores the state id (including other pfsync messages). includes improvements to the systat code to consider the creatorid as well as the state id in its cache to avoid collisions between states created on different hosts. tested by me in production and on amd64 talking to sparc64. ok henning@
2011-11-29ready this for big-endian support later onTheo de Raadt
ok mlarkin
2011-11-29Only free the piglet on hibernate fail if we are suspending.Mike Larkin
2011-11-29Limit the kumeran errata to a specific mac/phy combo as done in the IntelJonathan Gray
code instead of testing only the phy. Fixes autoneg on ich9. From Jonathan Perkin
2011-11-28Fix reversed error-handling gotos in myx_buf_fill(), which would lead toBret Lambert
either an mbuf leak or a NULL pointer dereference. ok sthen@ claudio@ dlg@ testing claudio@ dlg@
2011-11-28deprecate PFTM_UNTIL_PACKET. nothing in the tree uses it, andDavid Gwynne
pf_state_expires() handled it incorrectly. discussed with mikeb@ ok henning@
2011-11-27When checking for offset wrap around in vn_read(), compare againstPhilip Guenthe
LLONG_MAX instead of SSIZE_MAX ok deraadt@
2011-11-27Regen.Mark Kettenis
2011-11-27Switch to proper PA-RISC 2.0 mnemonics. Works around a bug in the assemblerMark Kettenis
getting rid of the (hopefully) last bug in this code.
2011-11-27Bring back low latency interrupt moderation for 82599Mike Belopuhov
lost during update. Originally from claudio, rev1.46. ok claudio
2011-11-27Checksum fix from reyk (rev1.31) that was lost during update:Mike Belopuhov
Fix the IP ckecksum offloading logic that disables and breaks offloading if the packet is neither TCP nor UDP because of an erroneous "default" case. No functional change in the default build because IP checksum offloading is currently disabled in ix(4). Tested on 82598 and 82599 (though checksums are still disabled by default). ok claudio
2011-11-27Protect more operations in the pfsync_clone_destroy to preventMike Belopuhov
accidental race conditions. From Erik Lax, thanks! ok dlg
2011-11-27Regen.Mark Kettenis
2011-11-27Fix return value of memcpy.Mark Kettenis
2011-11-27Oops, jsing@ changed spcopy.S without realizing that that file is generatedMark Kettenis
from bcopy.m4. Fix that.
2011-11-27Regen.Mark Kettenis
2011-11-27Replace a few more 32-bit instructions with the proper 64-bit equivalent.Mark Kettenis
Also fix the return value of memcpy. With these changes, this seems to work as advertised now.
2011-11-27This needs sys/kthread.h to buildClaudio Jeker
2011-11-27Kill old comment, we already do 802.1p tagging.Christiano F. Haesbaert
2011-11-26Tie the 802.1p (CoS) value in vlan(4) with the new prio scheme in pf.Christiano F. Haesbaert
When transmitting through vlan(4), it will now use the prio value in pf packet header. When receiving, we save the incoming Cos in the same place, this gives us the hability to preserve the CoS value across two different vlan interfaces. This kills the SIOC[GS]VLANPRIO ioctls and removes the corresponding buttons from ifconfig(8). ok henning@ claudio@ mcbride@
2011-11-26Make this compile again by removing a spurious opening brace.Mark Kettenis
2011-11-26add Netgear WNA100MChris Kuethe
urtwn0 at uhub0 port 1 "Realtek 802.11n WLAN Adapter" rev 2.00/2.00 addr 2 urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R, address c4:3d:c7:.... ok gray
2011-11-26regenChris Kuethe
2011-11-26add usb id for Netgear WNA100MChris Kuethe
ok jsg
2011-11-26Apply route-to to deferred packet; without this the first packet of aRyan Thomas McBride
connection does not observe the route-to option. ok dlg mikeb
2011-11-25fix compile errors without INET6. no binary change.YASUOKA Masahiko
pointed out by Julien Crapovich on misc@ ok deraadt mikeb
2011-11-25use time_uptime to set state creation values as time_second can beDavid Gwynne
skewed at runtime by things like date(1) and ntpd. time_uptime is monotonic and therefore more useful to compare against. ok deraadt@ mikeb@
2011-11-25implement chown(2) in compat_linux which is needed by some antivirus softwareRobert Nagy
ok pirofti@
2011-11-25Rework assembler constraints to satisfy gcc 4. Unfortunately this could notMiod Vallat
been done earlier because these new and improved constraints lose bigtime with gcc3, so be sure to compile your kernel with gcc 4 only if you have atomic.h 1.10 onwards.
2011-11-25Compile fixes for gcc4 (-Wbounded)Miod Vallat
2011-11-24Fix spelling and remove questionPhilip Guenthe
2011-11-24rdomain support for IPv6sperreault
ok mikeb