summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused #includes.brian1998-01-2135-138/+69
| | | | | | Make various bits static. Remove unused variables. Submitted by: eivind
* A more complete fix for the "land" attack, removing the "quick fix" fromfenner1998-01-212-40/+50
| | | | | | | | | | | | | | | | | | | | | | | rev 1.66. This fix contains both belt and suspenders. Belt: ignore packets where src == dst and srcport == dstport in TCPS_LISTEN. These packets can only legitimately occur when connecting a socket to itself, which doesn't go through TCPS_LISTEN (it goes CLOSED->SYN_SENT->SYN_RCVD-> ESTABLISHED). This prevents the "standard" "land" attack, although doesn't prevent the multi-homed variation. Suspenders: send a RST in response to a SYN/ACK in SYN_RECEIVED state. The only packets we should get in SYN_RECEIVED are 1. A retransmitted SYN, or 2. An ack of our SYN/ACK. The "land" attack depends on us accepting our own SYN/ACK as an ACK; in SYN_RECEIVED state; this should prevent all "land" attacks. We also move up the sequence number check for the ACK in SYN_RECEIVED. This neither helps nor hurts with respect to the "land" attack, but puts more of the validation checking in one spot. PR: kern/5103
* FreeBSD's make knows about the MACHINE, but not the MACHINE_ARCH unlessjb1998-01-211-2/+9
| | | | | | | | | | | | | | it is built with this defined (which it isn't by default). This change to sys.mk treats the absence of MACHINE_ARCH as i386 on the assumption that it will be appropriately defined (as something else) on any other architecture. When building FreeBSD's make with NetBSD tools, both MACHINE and MACHINE_ARCH are correctly set (e.g. when bootstrapping FreeBSD's make on NetBSD/mvme68k, MACHINE=mvme68k and MACHINE_ARCH=m68k). This isn't really needed for the alpha which has both defined as 'alpha', but I thought it was worth getting the distinction between a MACHINE and a MACHINE_ARCH correct now. Now, shouldn't PC98 have MACHINE=pc98 and MACHINE_ARCH=i386 ??!!
* Quote filenames more agressively.imp1998-01-211-4/+7
| | | | | Reviewed by: jkh Submitted by: Hubert Feyrer
* Allow an optional delay when specifying "set openmode active".brian1998-01-2013-62/+110
| | | | | | | | | | | | | | | | The delay defaults to 1 sec (as it always has) unless we've done a ~p in interactive mode or we've actually detected a HDLC frame. This is now cleanly implemented (via async timers) so that it is possible for LCP to come up despite the delay if an LCP REQ is received. This will hopefully solve situations with slow servers or slirp scenarios (where ECHO is left on the port for a second or so before the peer enters packet mode). Also, ~p in interactive mode no longer changes the value of the default openmode delay and -dedicated mode enters packet mode in the right state according to the value of openmode.
* - Support for multiple PD6832 controllers. Each found 6832 is assignednate1998-01-204-8/+44
| | | | | | | and initializes the next two ports in order starting at 03e0. This also patches pcic_p.h to reduce the I/O ports mapped from 4 to 2. Submitted by: Ted Faber <faber@ISI.EDU>
* Converted to Lite2 mount interface - use vfc_typenum from thebde1998-01-202-18/+6
| | | | | already looked up vfsconf struct for nfs instead of MOUNT_NFS. Removed related FreeBSD ifdefs.
* Merged from Lite2. Get the filesystem type name directly from thebde1998-01-201-2/+6
| | | | statfs struct instead of converting from the filesystem type number.
* Properly initialize the printer struct.wollman1998-01-201-1/+2
| | | | PR: bin/5519
* Merged just enough files from Lite2 in lfs_cleanerd to convert frombde1998-01-203-48/+145
| | | | | | MOUNT_LFS to "lfs" in one place. The merge was painful because it conflicted with cosmetic FreeBSD changes. lfs_cleanerd still compiles cleanly but has aproximately the same chance of working as before (0).
* Converted to Lite2 mount interface - don't use numeric filesystembde1998-01-201-17/+13
| | | | | | | | | | | | types. The NetBSD compatibility cruft was more correct for -current than FreeBSD's own code. It just used NetBSD #defines instead of string literals for the filesystem names. NetBSD's MOUNT_UFS is "ffs", so using a literal "ufs" gives wrong results, but this is unimportant, especially for bootstrapping. Fixed style bugs in trymmap(). Fixed some disordered declarations.
* Converted to Lite2 mount interface - decide filesystem types by namebde1998-01-201-3/+3
| | | | instead of by number.
* Merged from Lite2. This was mostly already done, mostly indirectlybde1998-01-201-5/+9
| | | | | | | via wollman's changes in rev.1.2 being adopted by Lite2 and the nfsv3 changes in rev.1.3 being adopted by both FreeBSD and Lite2. We were only missing lookup of the type number for nfs (MOUNT_NFS doesn't exist in Lite2).
* Don't refer to the nonexistent function VOP_VALLOC.bde1998-01-201-4/+3
|
* Fixed #includes in the synopsis and in an example. <sys/socket.h>bde1998-01-202-3/+3
| | | | | | isn't a prerequisite, since it isn't required for the prototypes and isn't always needed to call the functions (the address family might be a variable).
* Sync with sys/i386/isa/syscons.c revision 1.246.kato1998-01-201-1/+51
|
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowbde1998-01-2030-43/+14
| | | | the default.
* Moved most of the (source-level) compatibility hacks for the vfsconfbde1998-01-201-8/+4
| | | | | | | interface from sys/mount.h to libc/getvfsent.c The new interface is now the default. Sorted the prototypes for the library functions.
* Moved most of the (source-level) compatibility hacks for the vfsconfbde1998-01-201-2/+4
| | | | | interface from sys/mount.h to libc/getvfsent.c The new interface is now the default.
* - Move SETKLOC and CLEARKLOCK macros into uion.h.kato1998-01-206-20/+66
| | | | | | | | | | - Set UN_ULOCK in union_lock() when UN_KLOCK is set. Caller expects that vnode is locked correctly, and may call another function which expects locked vnode and may unlock the vnode. - Do not assume the behavior of inside functions in FreeBSD's vfs_suber.c is same as 4.4BSD-Lite2. Vnode may be locked in vget() even though flag is zero. (Locked vnode is, of course, unlocked before returning from vget.)
* Suggested by: bdejb1998-01-204-14/+36
| | | | | | | | | | Move sigjmp_buf and jmp_buf structure definitions to machine/setjmp.h so that i386 can continue to use int as the basic register type and alpha can use long. Bruce was concerned about possible differing alignment. I've left the definition of _JBLEN in machine/setjmp.h even though Bruce's example used the number directly. I don't know if any other code relies on _JBLEN, so I left it to avoid potential breakage.
* Convert to mdoc format. Remove unused vars. Use err(3) and change exit(-1).charnier1998-01-202-144/+151
|
* Added cross references to mincore(2) and minherit(2).alex1998-01-201-0/+3
| | | | Obtained from: OpenBSD
* Added #include <sys/types.h> to synopsis.alex1998-01-202-1/+4
| | | | Obtained from: OpenBSD
* Add the PnP string for a Logitech serial mouse model.yokota1998-01-201-1/+3
|
* - Add binary compatibility support for obsolete console/mouse ioctlsyokota1998-01-204-5/+220
| | | | | | | so that existing programs which were compiled before the introduction of the new mouse code and use these ioctls will run unmodified. Suggested by msmith.
* update hub's master configuraton filejmb1998-01-201-2/+4
| | | | | | | | limit sendmail to 500 messages per run keeps the process from growing too large sort the queue by host, not numeric priority connecting to a host is too expensive, once we got the connection, ram all the mail down his throat ;>
* Also fix ypbind to compile with ANSI-fied /usr/include/rpcsvc. One ofwpaul1998-01-192-11/+11
| | | | these days I really should rerwite this creature from the ground up.
* Add wfd style devices to detection list (we'll have to put them on thejkh1998-01-193-3/+6
| | | | boot floppy too, of course - hope I still have enough inodes! :)
* Make these programs compile and work correctly now that /usr/include/rpcsvcwpaul1998-01-193-35/+58
| | | | | | has been ANSI-fied. Pointed out by: bde
* dlopen(..., RTLD_NOW) rather than RTLD_LAZY.brian1998-01-191-3/+7
| | | | Pointed out by: John Polstra <jdp@polstra.com>
* sys/types.h -> sys/param.hbrian1998-01-191-2/+2
| | | | Pointed out by: Niklas Hallqvist <niklas@petra.appli.se>
* mount(8) only uses realpath() for the mountpoint, so don't look up thebde1998-01-191-6/+6
| | | | | | | | | | | | real path here for the mount device (or path). This fixes difficulties unmounting devices that are actually symlinks to real devices. Also, print the original path instead of the real path in early error messages. nfs path handling and later error messages may still be wrong, probably only in silly cases where the original path is both a symlink and a remote path. PR: 5208
* Nondestructive attempts to get simple locks when SL_DEBUG is defined.tegge1998-01-191-19/+21
|
* Invoke rpcgen with -C so that headers are created with ANSI prototypes.wpaul1998-01-191-2/+2
| | | | | | | | | | | | | | | Note: this may cause some problems in a few cases. With very old versions of rpcgen, if you defined a procedure called foo, then rpcen would create client stubs for function foo_1() and server stubs _also_ with function foo_1(). This only worked because of the lack of ANSI prototypes: the client side stub takes different arguments than the server side stub. (The client side takes a CLIENT * handle, while the server side wants an svc_req *.) To fix this conflict, rpcgen in ANSI mode generates foo_1() for the client and foo_1_svc() for the server. RPC server code that depends on the old behavior might break because of this. (Fixing it is just a matter of adding the _svc suffix onto the server procedure names.)
* Don't create superblocks with size larger than SBSIZE (8192). Thebde1998-01-191-0/+4
| | | | | | | size was rounded up to a multiple of the fragment size, but this gave invalid file systems when the fragment size was > SBSIZE (fsck aborts early on them). Now a fragment size of 32768 seems to work (too-simple tests with fsck and iozone worked).
* Guard against a block size of 0 in the label. When the firstbde1998-01-193-0/+15
| | | | | | | | | | | | | | | | | superblock is invalid, fsck looks at the label to help guess where the next superblock should be. If the partition type is 4.2BSD, fsck assumed that the block size was valid and divided by it, so it dumped core if the size was 0. Initialization of the label was broken almost 3 years ago in rev.1.9 of newfs/newfs.c. Newfs does not change the label at all, so there is no problem (except the breakage of the automatic search for backup superblocks) unless something else sets the partition type to 4.2BSD. However, it is too easy to set partition types to 4.2.BSD by copying an old label or by using a disktab entry to create the label. PR: 2537
* Add a missing \ the previous committer omitted from the crunch target.jkh1998-01-191-2/+2
|
* Fixed accesses to addresses between VM_MAXUSER_ADDRESS (normallybde1998-01-193-36/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | 0xefbfe000) and kernel_start (normally 0xf0100000). Things are unnecessarily (?) difficult because procfs is used to access user addresses in the live-kernel case although we must have access to /dev/mem to work at all, and whatever works for the dead-kernel case should work in all cases (modulo volatility of live kernel variables). We used the wrong range [0, kernel_start) for user addresses. Procfs should only work up to VM_MAXUSER_ADDRESS, but it bogusly works for reads up to the address 2 pages higher (the user area, including the kernel stack, is mapped to where the user area used to be (WTUAUTB)). Procfs can not work at all for addresses between WTUAUTB and kernel_start. Now we use procfs only to access addresses up to VM_MAXUSER_ADDRESS. Higher addresses are translated normally using kvtophys(), so the user ptd is used for addresses below the real kernel start (0xf0000000; see INKERNEL()) and nothing is found WTUAUTB. Strange accesses that cross the user-kernel boundary are now handled, but such ranges are currently always errors because they necessarily overlap the hole WTUAUTB. Short reads are still not handled.
* Removed `kstack' and associated mistranslations in kvtophys().bde1998-01-193-54/+3
| | | | | | | | | | | | | | | Correct translations would have been null. However, kstack was the top of the kernel stack instead of the base of the kernel stack like it was when the kernel exported it, so the area above the kernel stack was mistranslated and the kernel stack was not translated. This bug was depended on to compensate for the wrong value of kstack - to read the pcb, instead of just using the address of the pcb, we used the mistranslated address of kstack, which happened to be the same (curpcb = kstack - 0x2000). This area is simpler than it used to be now that the kernel stack address is per-process. The code still seems to be more complicated than necessary - the `found_pcb == 0' case seems to be unused.
* Set p_retval for the correct process in getpriority(). This fixesbde1998-01-191-3/+3
| | | | | | | | a null pointer panic when the pointer for the incorrect process is NULL. getpriority() was broken in rev.1.27. Rev.1.28 broke the warning instead of fixing the problem. PR: 5495
* The removal of a page from the free queue in vm_page_zero_idle wastegge1998-01-192-2/+4
| | | | | imcomplete. Also set m->queue, in order to prevent vm_page_select_free from selecting the page being zeroed.
* Reimplement proxy-arp address stuff using sysctl().brian1998-01-195-93/+127
|
* Add an example for busy mail servers, commented out.wosch1998-01-181-1/+7
|
* Allow "set vj" for changing the default number of slotsbrian1998-01-185-32/+120
| | | | | | and whether slot compression is requested. Don't show current values with "show ipcp" if IPCP isn't "opened".
* Don't throw away bootp reply packets that are shorter than our extended-lengthtegge1998-01-182-2/+6
| | | | | bootp query packet. PR: 5512
* Increase the minimum bootp reply packet size from 16 (bogus) to 300 (correct).tegge1998-01-182-8/+8
|
* Sync with sys/i386/isa/wd.c revision 1.147.kato1998-01-181-2/+2
|
* Sync with sys/i386/conf/files.i386 revision 1.186.kato1998-01-182-2/+4
|
* Sync with sys/i386/conf/files.i386 revision 1.12.kato1998-01-181-1/+2
|
OpenPOWER on IntegriCloud