summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Use bitmasks of the KTR_* constants instead of hexidecimal values forjhb2001-06-042-4/+4
| | | | the KTR_COMPILE and KTR_MASK examples.
* Add a new psuedo-KTR trace level KTR_ALL which is a mask of all currentlyjhb2001-06-041-0/+1
| | | | used KTR levels.
* first blush at some FC path inquiry settingsmjacob2001-06-041-0/+20
|
* Do NOLUNS dance for oddball Exabyte. We *really* need to do this as hints.mjacob2001-06-041-1/+12
| | | | | | | Correct match for A5000 SES instance. PR: 19887 MFC after: 2 weeks
* first blush at some FC path inquiry settingsmjacob2001-06-041-0/+9
|
* If the chip isn't in power state D0, put it in power state D0. Iimp2001-06-041-10/+12
| | | | | | | | | | | elected to do this in the probe rather than the attach so that we don't disturb things which this might reset. different cards have different quirks, according to their datasheets. This should fix the "I booted in windows and rebooted to FreeBSD and now things don't work" problem. PR: 4847, 20670
* Add BSD-style copyright headersbrian2001-06-049-17/+253
| | | | Approved by: Charles Mott <cmott@scientech.com>
* Change to a standard BSD-style copyrightbrian2001-06-041-13/+22
| | | | Approved by: Atsushi Murai <amurai@spec.co.jp>
* When looking for an interface appropriate for the (new or changing)ru2001-06-041-1/+1
| | | | | | | | | route in ifa_ifwithroute(), as the last resort, look up the route to the gateway, not destination (to derive the interface from). PR: kern/27852 Submitted by: Iasen Kostoff <tbyte@tbyte.org> MFC after: 2 weeks
* Add new pci attachment for pcic. This supports pci cards as well asimp2001-06-042-165/+288
| | | | | | | | | | | | card bus bridges. We now always use pci interrupts for pci cards. This will allow us to more easily configure things. You must change your IRQ lines in /etc/pccard.conf to match what we've probed. I'm not sure the right way to deal with this right now. Development of pci pcmcia has been funded by Monzoon Networks AG. I am grateful for their generosity.
* The pipe_write() code was locking the pipe without busying it first indillon2001-06-041-5/+20
| | | | | | | certain cases, and a close() by another process could potentially rip the pipe out from under the (blocked) locking operation. Reported-by: Alexander Viro <viro@math.psu.edu>
* S_IFCHR is not a bit mask, it's just a value in a field. The correctpaul2001-06-041-1/+1
| | | | | | way to clear that field is to use S_IFMT. Pointed out by BDE.
* #defines for pci way interrupt routing.imp2001-06-041-0/+33
|
* Move the pcic interrupt from pcic.c to pcic_isa.c. The ISA handlingimp2001-06-043-128/+138
| | | | | | | | | | | | | | for card change interrupts is different than the pci stuff that's coming soon. Set the management irq in different ways. If pci_parallel interrutp routing, then use the PCI way of getting interrupts. Move polling mode into pcic_isa since when we're routing via pci polling doesn't work because many bridges (systems hang solid). If we're routing interrupts via pci, they can be shared, so flag them as such. Note, this doesn't actually change anything since the pci attachment isn't quite ready to be committed.
* Minor style(9) nit. a|b -> a | b.imp2001-06-041-1/+1
|
* Use correct flag in test whether this interrupt handler is fast or not.mjacob2001-06-041-1/+1
| | | | | PR: 27866 Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
* Prevent denial of service using bogus fragmented IPv4 packets.jesper2001-06-031-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | A attacker sending a lot of bogus fragmented packets to the target (with different IPv4 identification field - ip_id), may be able to put the target machine into mbuf starvation state. By setting a upper limit on the number of reassembly queues we prevent this situation. This upper limit is controlled by the new sysctl net.inet.ip.maxfragpackets which defaults to 200, as the IPv6 case, this should be sufficient for most systmes, but you might want to increase it if you have lots of TCP sessions. I'm working on making the default value dependent on nmbclusters. If you want old behaviour (no upper limit) set this sysctl to a negative value. If you don't want to accept any fragments (not recommended) set the sysctl to 0 (zero). Obtained from: NetBSD MFC after: 1 week
* Fix my email address. I accidentally cut'npasted the wrong (old)joerg2001-06-032-2/+2
| | | | hostname laste time.
* First, wrap the if_up() call into splimp()/splx() becauseyar2001-06-031-2/+5
| | | | | | | | | | | if_up() must be called at splnet or higher. Second, set the IFF_RUNNING flag on an interface after its resources (i.e. tunnel source and destination addresses) have been set. Note that we don't set IFF_UP because it is if_up()'s job to do that. PR: kern/27851 Submitted by: Horacio J. PeÓa <horape@compendium.com.ar>
* Fix reversed arguments to pci_write_config()peter2001-06-031-2/+2
| | | | | PR: kern/9408 Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
* Remove unused includes, use *min() inline functions rather than add2001-06-033-53/+16
| | | | | | | home-grown macro, rewrite a confusing conditional in snpdevtotty(), and change ibuf to 512 bytes instead of 1024 bytes in dsnwrite(). Reviewed by: bde
* When tring to find out if this is a request for a write indd2001-06-031-2/+2
| | | | | kernel_sysctl and userland_sysctl, check for whether new is NULL, not whether newlen is 0. This allows one to set a string sysctl to "".
* Merged from sys/kern/subr_diskmbr.c revision 1.45.nyan2001-06-031-33/+63
|
* Merged from sys/kern/subr_diskmbr.c revision 1.52.nyan2001-06-031-5/+0
|
* Include sys/mutex.h to silence a warning.dd2001-06-032-0/+2
|
* Only touch the PCR register in order to set bits for the fxp driver.jlemon2001-06-021-1/+3
| | | | | | | The 3C509-TX card apparently had a slightly different version of the chip, and has problems when this register is set. The problem does not appear on the 3C509{BC} cards, but since only the fxp driver needs specific bits set, conditionalize on that.
* Support GCC 3.0obrien2001-06-021-1/+1
|
* Properly wrap mtx_intr_enable() macro in "do $bla while (0)"phk2001-06-025-5/+5
|
* Merged from sys/i386/i386/machdep.c revision 1.454.nyan2001-06-022-2/+0
|
* Disabled unneeded code for PC98.nyan2001-06-022-2/+2
| | | | Submitted by: NOKUBI Hirotaka <nokubi@ff.iij4u.or.jp>
* Merged from sys/i386/isa/npx.c revision 1.101.nyan2001-06-021-79/+85
|
* Change the way information about swap devices is exported to be moretmm2001-06-012-28/+46
| | | | | | | | canonical: define a versioned struct xswdev, and add a sysctl node handler that allows the user to get this structure for a certain device index by specifying this index as last element of the MIB. This new node handler, vm.swap_info, replaces the old vm.nswapdev and vm.swapdevX.* (where X was the index) sysctls.
* Fix typo (opt_acc.h -> opt_aac.h) for AAC_COMPAT_LINUX.dirk2001-06-011-1/+1
|
* Revert the last bits of my bogus move of NMBCLUSTERSjesper2001-06-013-0/+3
| | | | to <sys/param.h>
* The orm device. This device gobbles up the Option ROMs in the ISAimp2001-06-012-0/+186
| | | | | | | | | | | | | | | memory I/O space. Otherwise, our resource allocation system might mistakenly assign pccard, plug and play devices or other things addresses that conflict with ROMs. I cleaned up his code a little from the submited driver: style(9) issues, commentary on why something that looks incorrect really is correct. Also noted that while a checksum field is defined for the ROMs, enough common hardware neglects it to make it not worthwhile checking. Submitted by: Nikolai Saoukh <nms@otdel-1.org> PR: 22078
* Resurrect platform.pci_intr_map() and essentially undo the effects ofgallatin2001-06-0115-213/+206
| | | | | | | | | | | | | | | | | the interface conversion to platform.pci_intr_route(). I've left the platform.pci_intr_route() function pointer in place, as well as alpha_pci_route_interrupt(), but no platform currently implements it. To work around the removal of alpha_platform_assign_pciintr(cfg); from the pci probe code, I've hooked in calls to platform.pci_intr_map() in pcib_read_config (similar to the x86 APIC_IO ifdef in pci_cfgregread) for every chipset that has a platform which needs it. While here, I've removed the interupt mapping/routing code from the AS2x00 platform because its not required (it has never been present in -stable). Tested on: UP1000, Miata(GL), XP1000, AS2100, AS500
* Support /dev/tun cloning. Ansify if_tun.c while I'm there.brian2001-06-013-93/+132
| | | | | | | | | | | | | | Only tun0 -> tun32767 may now be opened as struct ifnet's if_unit is a short. It's now possible to open /dev/tun and get a handle back for an available tun device (use devname to find out what you got). The implementation uses rman by popular demand (and against my judgement) to track opened devices and uses the new dev_depends() to ensure that all make_dev()d devices go away before the module is unloaded. Reviewed by: phk
* This file is not needed any more, the definitions and declarations ittmm2001-06-011-13/+0
| | | | contained have been moved to i386/isa/icu.h and sys/interrupt.h.
* Clean up the code exporting interrupt statistics via sysctl a bit:tmm2001-06-0116-58/+40
| | | | | | | | | | | | | - move the sysctl code to kern_intr.c - do not use INTRCNT_COUNT, but rather eintrcnt - intrcnt to determine the length of the intrcnt array - move the declarations of intrnames, eintrnames, intrcnt and eintrcnt from machine-dependent include files to sys/interrupt.h - remove the hw.nintr sysctl, it is not needed. - fix various style bugs Requested by: bde Reviewed by: bde (some time ago)
* Add a quirk entry for ARCHIVE Python 06408.non2001-06-011-0/+4
| | | | Approved by: mjacob
* - VFS_SET(msdos) -> VFS_SET(msdosfs)ru2001-06-012-2/+2
| | | | | | - msdos.ko -> msdosfs.ko - mount_msdos(8) -> mount_msdosfs(8) - "msdos" -> "msdosfs" compatibility glue in mount(8)
* Remove vestiges of MFS.ru2001-06-015-6/+3
|
* Add ``options RANDOM_IP_ID'' which randomizes the ID field of IP packets.kris2001-06-0111-0/+254
| | | | | | | | | This closes a minor information leak which allows a remote observer to determine the rate at which the machine is generating packets, since the default behaviour is to increment a counter for each packet sent. Reviewed by: -net Obtained from: OpenBSD
* Back out jesper's 2001/05/31 14:58:11 PDT commit. It does not compile.obrien2001-06-014-37/+6
|
* Change plxic to plxcard, per phk. He thnks plxic is too generic aimp2001-06-013-76/+72
| | | | name. I didn't do repo magic because this is so new.
* Unlock the process returned from pfind() if it does not return NULL.jake2001-06-012-2/+8
| | | | | | | | This fixes a witness lock violation for nfssvc returning with locks held. Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr> PR: kern/27776
* Grrr. Fix PR 27742 correctly this time. (At least I got -stable right.)wpaul2001-06-011-11/+2
|
* remove unneeded #include <vm/vm_map.h>gallatin2001-05-312-2/+0
|
* Close PR #27742: allow the xl driver to receive VLAN tagged frames bywpaul2001-05-312-3/+16
| | | | | | | | | | | | | | | setting the 'max packet size' register in window 3. This only works for cards based on the cyclone or newer chipsets (i.e. it won't work with the original 3c905/boomerang cards). There is a trick which will work with the boomerang, which is to turn on the 'large packets ok' bit in the MAC control register, however this lets the chip accept any frame up to 4K in length, which is larger than the mbuf cluster buffers we use to receive frames. If somebody sends us such a frame and the chip DMAs it to us, it could write past the end of the cluster buffer and clobber something. PR: kern/27742
* Move the definition of NMBCLUSTERS from src/sys/kern/uipc_mbuf.cjesper2001-05-311-0/+5
| | | | | | to <sys/param.h>, so it's available to src/sys/netinet/ip_input.c MFC after: 1 week
OpenPOWER on IntegriCloud