aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Support /dev/tun cloning. Ansify if_tun.c while I'm there.Brian Somers2001-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 Notes: svn path=/head/; revision=77589
* This file is not needed any more, the definitions and declarations itThomas Moestl2001-06-011-13/+0
| | | | | | | contained have been moved to i386/isa/icu.h and sys/interrupt.h. Notes: svn path=/head/; revision=77584
* Clean up the code exporting interrupt statistics via sysctl a bit:Thomas Moestl2001-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) Notes: svn path=/head/; revision=77582
* Add a quirk entry for ARCHIVE Python 06408.Noriaki Mitsunaga2001-06-011-0/+4
| | | | | | | Approved by: mjacob Notes: svn path=/head/; revision=77581
* - VFS_SET(msdos) -> VFS_SET(msdosfs)Ruslan Ermilov2001-06-012-2/+2
| | | | | | | | | - msdos.ko -> msdosfs.ko - mount_msdos(8) -> mount_msdosfs(8) - "msdos" -> "msdosfs" compatibility glue in mount(8) Notes: svn path=/head/; revision=77577
* Remove vestiges of MFS.Ruslan Ermilov2001-06-015-6/+3
| | | | Notes: svn path=/head/; revision=77575
* Add ``options RANDOM_IP_ID'' which randomizes the ID field of IP packets.Kris Kennaway2001-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 Notes: svn path=/head/; revision=77574
* Back out jesper's 2001/05/31 14:58:11 PDT commit. It does not compile.David E. O'Brien2001-06-014-37/+6
| | | | Notes: svn path=/head/; revision=77572
* Change plxic to plxcard, per phk. He thnks plxic is too generic aWarner Losh2001-06-013-76/+72
| | | | | | | name. I didn't do repo magic because this is so new. Notes: svn path=/head/; revision=77569
* Unlock the process returned from pfind() if it does not return NULL.Jake Burkholder2001-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 Notes: svn path=/head/; revision=77563
* Grrr. Fix PR 27742 correctly this time. (At least I got -stable right.)Bill Paul2001-06-011-11/+2
| | | | Notes: svn path=/head/; revision=77558
* remove unneeded #include <vm/vm_map.h>Andrew Gallatin2001-05-312-2/+0
| | | | Notes: svn path=/head/; revision=77556
* Close PR #27742: allow the xl driver to receive VLAN tagged frames byBill Paul2001-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 Notes: svn path=/head/; revision=77548
* Move the definition of NMBCLUSTERS from src/sys/kern/uipc_mbuf.cJesper Skriver2001-05-311-0/+5
| | | | | | | | | to <sys/param.h>, so it's available to src/sys/netinet/ip_input.c MFC after: 1 week Notes: svn path=/head/; revision=77547
* Change the default value of net.inet6.ip6.maxfragpackets fromJesper Skriver2001-05-311-1/+1
| | | | | | | | | 200 to NMBCLUSTERS/4 to match the IPv4 case. MFC after: 1 week Notes: svn path=/head/; revision=77546
* Prevent denial of service using bogus fragmented IPv4 packets.Jesper Skriver2001-05-311-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 NMBCLUSTERS/4 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 (partially) MFC after: 1 week Notes: svn path=/head/; revision=77545
* Move the definition of NMBCLUSTERS from src/sys/kern/uipc_mbuf.cJesper Skriver2001-05-314-8/+0
| | | | | | | | | | to <sys/param.h>, so it's available to src/sys/netinet/ip_input.c, and remove the now unneeded includes of "opt_param.h". MFC after: 1 week Notes: svn path=/head/; revision=77544
* Backout previous revision. While it fixed many platforms, it brokeAndrew Gallatin2001-05-312-12/+3
| | | | | | | | | | all alphas with devices behind ppb's. I'm working on a better solution now. Note that all alphas that use per-platform interrupt mapping are broken again (as they have been for several months) Notes: svn path=/head/; revision=77543
* Add device driver support for the Level 1 LXT1001 NetCelleratorBill Paul2001-05-317-1/+2258
| | | | | | | | | | | | | | | | | | gigabit ethernet controller chip. This device is used on some fiber optic gigE cards from SMC, D-Link and Addtron. Jumbograms and TCP/IP checksum offload on receive are supported. Hardware VLAN filtering is not, because it doesn't play well with our existing VLAN code. Also add manual page. There is a 4.x version of this driver available at http://www.freebsd.org/~wpaul/Level1/4.x if anyone feels adventurous and wants to test it. I still need to do performance testing and tuning with this device. (For my next trick, I will make the 3Com 3cR990 sit up and beg.) Notes: svn path=/head/; revision=77542
* Disable rfc1323 and rfc1644 TCP extensions if we havn't gotJesper Skriver2001-05-311-0/+9
| | | | | | | | | | | | | | | any response to our third SYN to work-around some broken terminal servers (most of which have hopefully been retired) that have bad VJ header compression code which trashes TCP segments containing unknown-to-them TCP options. PR: kern/1689 Submitted by: jesper Reviewed by: wollman MFC after: 2 weeks Notes: svn path=/head/; revision=77539
* plxic deviceWarner Losh2001-05-311-0/+1
| | | | Notes: svn path=/head/; revision=77536
* Add a simple plx pci9052 based pccard bridges. This doesn't work yet,Warner Losh2001-05-312-0/+455
| | | | | | | | but I'll be fleshing this out as I have time. This should mean we no longer need to have an and wi pci attachments, but that's a ways off. Notes: svn path=/head/; revision=77535
* Revert the previous commit in favor of the fix in rev 1.42 ofJohn Baldwin2001-05-301-1/+0
| | | | | | | | | ufs/ffs/ffs_extern.h instead. Requested by: bde Notes: svn path=/head/; revision=77509
* Forward declare struct cg to quiet a warning.John Baldwin2001-05-301-0/+1
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=77508
* Catch up to the axeing of MFS and fix the ia64 build.John Baldwin2001-05-301-1/+0
| | | | | | | Forgotten by: a Danish axe-wielder Notes: svn path=/head/; revision=77507
* fix typoCameron Grant2001-05-302-2/+2
| | | | Notes: svn path=/head/; revision=77506
* no longer usedCameron Grant2001-05-301-3496/+0
| | | | Notes: svn path=/head/; revision=77505
* update this driver to use new firmware and incorporate many fixes.Cameron Grant2001-05-304-258/+313
| | | | | | | | | this works on cs4630 chips, and should implement the clkrun hack for thinkpads- this will display diagnostic messages when triggered until its correctness is established. Notes: svn path=/head/; revision=77504
* new (gpl licensed) firmware image for cs4280/cs46xx sound chipsCameron Grant2001-05-301-0/+340
| | | | Notes: svn path=/head/; revision=77503
* Quiet warnings by adding a prototype for set_user_ldt_rv() and making itJohn Baldwin2001-05-302-2/+12
| | | | | | | conditional on #ifdef SMP. Notes: svn path=/head/; revision=77502
* state the licencing terms for this fileCameron Grant2001-05-301-0/+23
| | | | | | | Obtained From: Yamaha Notes: svn path=/head/; revision=77495
* We can't grab the sched_lock in set_user_ldt() because when it is calledJohn Baldwin2001-05-304-12/+50
| | | | | | | | | | | | | | from cpu_switch(), curproc has been changed, but the sched_lock owner will not be updated until we return to mi_switch(), thus we deadlock against ourselves. As a workaround, push the acquire and release of sched_lock out to the callers of set_user_ldt(). Note that we can't use a mtx_assert() in set_user_ldt for the same reason. Sleuting by: tmm Tested by: tmm, dougb Notes: svn path=/head/; revision=77486
* Add an integer field to keep protocol-specific flags with links.Ruslan Ermilov2001-05-303-15/+20
| | | | | | | | | | | | | For FTP control connection, keep the CRLF end-of-line termination status in there. Fixed the bug when the first FTP command in a session was ignored. PR: 24048 MFC after: 1 week Notes: svn path=/head/; revision=77485
* Fix include path for recent acpica update.Takanori Watanabe2001-05-302-2/+2
| | | | Notes: svn path=/head/; revision=77483
* Dont try to play tracks outside whats on the media.Søren Schmidt2001-05-301-1/+2
| | | | | | | PR 26647 Notes: svn path=/head/; revision=77476
* Update to support the NEC NR-7500A burners.Søren Schmidt2001-05-301-2/+16
| | | | Notes: svn path=/head/; revision=77474
* Don't ask to build something that doesn't exist anymore.Doug Barton2001-05-301-1/+1
| | | | Notes: svn path=/head/; revision=77469
* Move the mfs deletion process down the road a few stepsDoug Barton2001-05-301-10/+0
| | | | Notes: svn path=/head/; revision=77468
* What I get for "fixing" at the last minute. Correct a mis-merge of takawata'sMike Smith2001-05-302-1/+1
| | | | | | | | | timeout fix and put proc.h into the right file. Submitted by: nnd@mail.nsk.ru Notes: svn path=/head/; revision=77466
* Export via sysctl:Dima Dorfman2001-05-303-0/+39
| | | | | | | | | | | | | | * all members of msginfo from sysv_msg.c; * msqids from sysv_msg.c; * sema from sysv_sem.c; and * shmsegs from sysv_shm.c; These will be used by ipcs(1) in non-kvm mode. Reviewed by: tmm Notes: svn path=/head/; revision=77461
* move wx to be part of miibus requiring chipsetsMatt Jacob2001-05-305-5/+5
| | | | Notes: svn path=/head/; revision=77455
* - Catch up to the VM mutex changes.John Baldwin2001-05-308-44/+51
| | | | | | | - Sort includes in a few places. Notes: svn path=/head/; revision=77448
* Include <ufs/ffs/fs.h> to get the definition of struct cg to quiet aJohn Baldwin2001-05-291-0/+1
| | | | | | | warning. Notes: svn path=/head/; revision=77445
* Go back to 1.20 again.Daniel C. Sobral2001-05-291-0/+3
| | | | Notes: svn path=/head/; revision=77444
* Turn dictthreshold and dictincrease into cell-sized variables, soDaniel C. Sobral2001-05-292-7/+8
| | | | | | | | | | they can be used with cell operators like !. As I did this, I noticed the whole CELL thing might have problems with big endian architectures with sizeof(int)!=sizeof(void*). Notes: svn path=/head/; revision=77443
* GC #if 0'd calls to releasing and acquiring the old style giant kernelJohn Baldwin2001-05-293-18/+0
| | | | | | | lock. Notes: svn path=/head/; revision=77442
* Per jlemon: add code to nge_rxeof() to allow verification of TCP andBill Paul2001-05-291-0/+8
| | | | | | | | | | UDP checksums too, not just IP. The chip only tells us if the checksum is ok, it does not give us a copy of the partial checksum for later processing. We have to deal with this the right way, but we can deal with it. Notes: svn path=/head/; revision=77440
* Fix mind-o in nge_rxeof(): I used CSUM_IP_CHECKED twice instead ofBill Paul2001-05-291-1/+1
| | | | | | | CSUM_IP_CHECKED|CSUM_IP_VALID. Notes: svn path=/head/; revision=77438
* Remove last vestiges of MFS.Poul-Henning Kamp2001-05-294-34/+4
| | | | Notes: svn path=/head/; revision=77437
* Remove MFSPoul-Henning Kamp2001-05-292-4/+1
| | | | Notes: svn path=/head/; revision=77435