summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Even the most recently allocated buffer may not have its b_blknoKirk McKusick1998-12-051-2/+5
| | | | | | | | | field properly filled in, so we must do a VOP_BMAP on that buffer as well if it is not resolved. Submitted by: Luoqi Chen <luoqi@watermarkgroup.com> Notes: svn path=/head/; revision=41529
* Obtained from: "Kenneth D. Merry" <ken@plutotech.com>Matthew Dillon1998-12-053-5/+4
| | | | | | | | ICMP_BANDLIM option moved from i386/conf/options.i386 to generic conf/options since it is platform indpendant. Notes: svn path=/head/; revision=41528
* Add sanity check to foo_start() routines: in the unlikely (thoughBill Paul1998-12-057-14/+56
| | | | | | | | | apparently possible) event that the transmit start routine is called with and empty if_snd queue, bail out instead of dereferencing unilitialized transmit list pointers and panicking. Notes: svn path=/head/; revision=41526
* oops on lastMatt Jacob1998-12-051-3/+3
| | | | Notes: svn path=/head/; revision=41525
* Remove the Target mode functions until they're in better shape. Implement someMatt Jacob1998-12-051-91/+534
| | | | | | | | | | suggested compilation cleanups from Eklund. Wire down a hard loop id if we are not on a platform that has the ability to get to a PCI BIOS (it still will float to the ID it gets after a LIP but at least we can try). Clarify that the expanded lun is based upon SCCLUN defines (in f/w). Notes: svn path=/head/; revision=41524
* make a real "done" func; clarify some LUN widthsMatt Jacob1998-12-051-8/+51
| | | | Notes: svn path=/head/; revision=41523
* compilation fixes from EklundMatt Jacob1998-12-051-2/+3
| | | | Notes: svn path=/head/; revision=41522
* compilation fixes from Eklund && move XS_CMD_DONE to be a real functionMatt Jacob1998-12-051-28/+5
| | | | Notes: svn path=/head/; revision=41521
* do a bit of cleanup on some target mode structures and clarify a couple ↵Matt Jacob1998-12-051-179/+428
| | | | | | | other minro things Notes: svn path=/head/; revision=41520
* roll core version minor and wire a non-i386 default Loop ID to 113Matt Jacob1998-12-051-3/+7
| | | | Notes: svn path=/head/; revision=41519
* offset was wrong for HARDLOOPID in NVRAMMatt Jacob1998-12-051-2/+3
| | | | Notes: svn path=/head/; revision=41518
* Roll to 1.15 f/w level for Qlogic 2100. Leave all flavors in, but control whichMatt Jacob1998-12-051-9947/+12433
| | | | | | | one gets compiled in by default. The default is private loop, non-expanded lun. Notes: svn path=/head/; revision=41517
* roll to 1.31 levelMatt Jacob1998-12-051-35/+1170
| | | | Notes: svn path=/head/; revision=41516
* trivial header fixMatt Jacob1998-12-052-0/+10
| | | | Notes: svn path=/head/; revision=41515
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()Archie Cobbs1998-12-04123-407/+501
| | | | | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com> Notes: svn path=/head/; revision=41514
* Fix compiler warnings.Archie Cobbs1998-12-041-81/+85
| | | | Notes: svn path=/head/; revision=41513
* Eliminate a zillion "left-hand operand of comma expression has no effect"Archie Cobbs1998-12-041-22/+26
| | | | | | | compiler warnings when NLPT_DEBUG is not defined. Notes: svn path=/head/; revision=41512
* Put back some missing chip identification code that got lost somehowBill Paul1998-12-042-8/+15
| | | | | | | | | | | | | | | | | during a trek through RCS. The Macronix 98713 and 98713A both have the same PCI device ID but different revision numbers, and we need to be able to tell one from the other. The 98715 and 98715A chips have the same device ID as the 98725 chip but different revision numbers, however we lump them into the same category except when identifying them during the PCI probe output. The main reason we need tell the chips apart is that the Macronix app notes say you have to write a special magic number into one of the registers in order to put the chip in normal operating mode. The 98713 requires one magic value, while all the others require a different one. Notes: svn path=/head/; revision=41511
* Fix typo: expression needs parenthesesArchie Cobbs1998-12-041-3/+3
| | | | | | | | PR: 8280 (3/3 patches contained in this PR) Submitted by: Sakari Jalovaara <sja@tekla.fi> Notes: svn path=/head/; revision=41510
* Fix typo: the expression .. & .. == .. needs parentheses: (.. & ..) == ..Archie Cobbs1998-12-041-1/+1
| | | | | | | | PR: 8280 (2/3 patches contained in this PR) Submitted by: Sakari Jalovaara <sja@tekla.fi> Notes: svn path=/head/; revision=41508
* Fix typo: "==" should have been "="Archie Cobbs1998-12-042-4/+4
| | | | | | | | | PR: 8280 (1/3 patches contained in this PR) Reviewed by: Nate Williams <nate@mt.sri.com> Submitted by: Sakari Jalovaara <sja@tekla.fi> Notes: svn path=/head/; revision=41507
* Typo and formatting updates.Bill Fumerola1998-12-042-16/+22
| | | | | | | | | PR: docs/8504 Approved by: Brian Somers Submitted by: Kazuo Horikawa <horikawa@jp.FreeBSD.org> Notes: svn path=/head/; revision=41505
* Don't print diagnostic anymoreRobert V. Baron1998-12-042-2/+12
| | | | Notes: svn path=/head/; revision=41504
* In vnode_pager_input_old, set auio.uio_procp = curprocRobert V. Baron1998-12-041-2/+2
| | | | | | | vs auio.uio_procp = (struct proc *) 0 Notes: svn path=/head/; revision=41503
* An early Christmas present: add driver support for a whole bunch ofBill Paul1998-12-0432-22/+14914
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PCI fast ethernet adapters, plus man pages. if_pn.c: Netgear FA310TX model D1, LinkSys LNE100TX, Matrox FastNIC 10/100, various other PNIC devices if_mx.c: NDC Communications SOHOware SFA100 (Macronix 98713A), various other boards based on the Macronix 98713, 98713A, 98715, 98715A and 98725 chips if_vr.c: D-Link DFE530-TX, other boards based on the VIA Rhine and Rhine II chips (note: the D-Link and certain other cards that actually use a Rhine II chip still return the PCI device ID of the Rhine I. I don't know why, and it doesn't really matter since the driver treats both chips the same anyway.) if_wb.c: Trendware TE100-PCIE and various other cards based on the Winbond W89C840F chip (the Trendware card is identical to the sample boards Winbond sent me, so who knows how many clones there are running around) All drivers include support for ifmedia, BPF and hardware multicast filtering. Also updated GENERIC, LINT, RELNOTES.TXT, userconfig and sysinstall device list. I also have a driver for the ASIX AX88140A in the works. Notes: svn path=/head/; revision=41502
* Sync with sys/i386/conf/majors.i386 revision 1.93.KATO Takenori1998-12-042-2/+4
| | | | Notes: svn path=/head/; revision=41501
* Sync with sys/i386/conf/majors.i386 revision up to 1.55.KATO Takenori1998-12-041-5/+6
| | | | Notes: svn path=/head/; revision=41500
* Implement 'software completion' for floating point arithmetic. On theDoug Rabson1998-12-0413-18/+2651
| | | | | | | | | | | | | | | | | | | | | alpha, operations involving non-finite numbers or denormalised numbers or operations which should generate such numbers will cause an arithmetic exception. For programs which follow some strict code generation rules, the kernel trap handler can then 'complete' the operation by emulating the faulting instruction. To use software completion, a program must be compiled with the arguments '-mtrap-precision=i' and '-mfp-trap-mode=su' or '-mfp-trap-mode=sui'. Programs compiled in this way can use non-finite and denormalised numbers at the expense of slightly less efficient code generation of floating point instructions. Programs not compiled with these options will receive a SIGFPE signal when non-finite or denormalised numbers are used or generated. Reviewed by: John Polstra <jdp@polstra.com> Notes: svn path=/head/; revision=41499
* Allow either tabs or spaces in configuration files.Jordan K. Hubbard1998-12-042-10/+22
| | | | | | | | PR: 8762 Submitted by: Igor Roshchin <str@giganda.komkon.org> Notes: svn path=/head/; revision=41498
* Cleanup icmp_var.h, make icmp bandlim sysctl permanent but if ICMP_BANDLIMMatthew Dillon1998-12-042-15/+19
| | | | | | | | | | option not defined the sysctl int value is set to -1 and read-only. #ifdef KERNEL's added appropriately to wall off visibility of kernel routines from user code. Notes: svn path=/head/; revision=41497
* Obtained from: "Andrey A. Chernov" <ache@nagual.pp.ru>Matthew Dillon1998-12-041-1/+3
| | | | | | | | Quick add #ifdef KERNEL for ICMP_BANDLIM option so userland program can #include icmp_var.h Notes: svn path=/head/; revision=41496
* Fix typo ('strait' -> 'straight').Joseph Koshy1998-12-041-4/+4
| | | | | | | | PR: docs/8956 Submitted by: Kaneda Hiloshi <vanitas@ma3.seikyou.ne.jp> Notes: svn path=/head/; revision=41494
* Add __attribute__ ((unused)) to the SYSINIT etc macros which declareJohn Birrell1998-12-031-6/+10
| | | | | | | | static structures that are used with the data set magic. This allows kernel modules, for example, to be compiled with -Wall -Werror. Notes: svn path=/head/; revision=41493
* Make a spelling fix, and make sure all instances of belltype contain theBill Fumerola1998-12-031-2/+2
| | | | | | | | | | preceded option "quiet." PR: docs/8506 Submitted by: Kazuo Horikawa <horikawa@jp.FreeBSD.org> Notes: svn path=/head/; revision=41491
* Clarify what the '-r' option does.Bill Fumerola1998-12-031-2/+2
| | | | | | | | PR: docs/8108 Submitted by: Matthew Fuller <fullermd@futuresouth.com> Notes: svn path=/head/; revision=41489
* Make bootp error message slightly more verboseMatthew Dillon1998-12-032-4/+4
| | | | Notes: svn path=/head/; revision=41488
* Reviewed by: freebsd-currentMatthew Dillon1998-12-035-7/+120
| | | | | | | | | | | | | | | | | Add ICMP_BANDLIM option and 'net.inet.icmp.icmplim' sysctl. If option is specified in kernel config, icmplim defaults to 100 pps. Setting it to 0 will disable the feature. This feature limits ICMP error responses for packets sent to bad tcp or udp ports, which does a lot to help the machine handle network D.O.S. attacks. The kernel will report packet rates that exceed the limit at a rate of one kernel printf per second. There is one issue in regards to the 'tail end' of an attack... the kernel will not output the last report until some unrelated and valid icmp error packet is return at some point after the attack is over. This is a minor reporting issue only. Notes: svn path=/head/; revision=41487
* Reviewed by: freebsd-currentMatthew Dillon1998-12-035-5/+25
| | | | | | | Add ICMP_BANDLIM option Notes: svn path=/head/; revision=41486
* The explanation shows "-V" as being 'verbose' correct this to "-v"Bill Fumerola1998-12-031-1/+1
| | | | | | | | PR: docs/8892 Submitted by: Hirayama Issei <iss@mail.wbs.ne.jp> Notes: svn path=/head/; revision=41485
* Fixed broken code in sendfile(2) when using file offsets.David Greenman1998-12-031-5/+7
| | | | Notes: svn path=/head/; revision=41484
* Local reserved range is now 100-127 for bdevs and 200-255 for cdevs.Jordan K. Hubbard1998-12-032-10/+10
| | | | | | | Corrected by: bde Notes: svn path=/head/; revision=41483
* Fixed typo in previous commit. oops.Matthew Dillon1998-12-031-1/+1
| | | | Notes: svn path=/head/; revision=41482
* Reviewed by: "Jordan K. Hubbard" <jkh@zippy.cdrom.com>, cvs-all@freebsd.orgMatthew Dillon1998-12-032-1/+28
| | | | | | | | | Add '-g' main option to cvs to better support shared-group access to a common checked-out *working* set by multiple users. See manual page for details. Notes: svn path=/head/; revision=41481
* Fixed long line in previous commit.Bruce Evans1998-12-031-2/+3
| | | | Notes: svn path=/head/; revision=41480
* Add snprintf(3) and vsnprintf(3) capability to the kernel.Archie Cobbs1998-12-032-3/+58
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=41479
* Fix bugs in mdoc.samples(7): clean up references, quote usage of macros,Joseph Koshy1998-12-031-19/+25
| | | | | | | | | | | correct typos. PR: docs/9942 Submitted by: vanitas@ma3.seikyou.ne.jp Reviewed by: jkoshy Notes: svn path=/head/; revision=41478
* Cosmetic and documentation changes brought from earlier FreeBSD versions.Julian Elischer1998-12-0340-96/+277
| | | | | | | (e.g. RCS Id:) Notes: svn path=/head/; revision=41477
* Add a reference to man(7).Joseph Koshy1998-12-031-0/+1
| | | | Notes: svn path=/head/; revision=41475
* Reviewed by: Don Lewis <Don.Lewis@tsc.tdk.com>Julian Elischer1998-12-0343-1166/+1701
| | | | | | | | | | | | | | | Submitted by: Kirk McKusick <mckusick@McKusick.COM> Obtained from: Mckusick, BSDI and a host of others This exactly matches Kirks sources imported under the Tag MCKUSICK2. These are as supplied by kirk with one small change needed to compile under freeBSD. Some FreeBSD patches will be added back, though many have been added to Kirk's sources already. Notes: svn path=/head/; revision=41474
* These shouldn't have been checked in here..Julian Elischer1998-12-022-406/+0
| | | | | | | Reviewee by: Notes: svn path=/head/; revision=41471