Commit graph

1684 commits

Author SHA1 Message Date
Matthew Dillon a16800d862 Add pt_tcplisten.c functionality, fix a few minor bugs
PR:             kern/8793, misc/8796, kern/8797, kern/8798, kern/8050, kern/6758
Submitted by:	Duncan Barclay <dmlb@ragnet.demon.co.uk>
1998-12-15 18:59:07 +00:00
Luigi Rizzo b13ebaaa5c ipfw changes for dummynet. manpages still missing 1998-12-14 18:43:03 +00:00
Matthew Dillon 25970dbc51 sendmsg() didn't like the MSG_EOR flag and returned an error. Removing the
flag makes portal tcp operation work.
1998-12-12 21:30:17 +00:00
Bruce Evans 39b831af10 Merged from Lite2 (one bcopy -> memmove, one significant change:
don't unlink _PATH_NOLOGIN for the -k case even if shutdown terminates
abnormally.  NetBSD already has this change).
1998-12-11 11:21:47 +00:00
Bruce Evans 689419f325 Fixed missing 'p' and `-' flags and other defects in the usage message.
Fixed some style bugs.
1998-12-11 11:04:19 +00:00
Bruce Evans 502a3cc945 Merged from Lite2 (just an English fix or pun removal).
Updated date.  I think dates in man pages should be changed at least
when a new feature is described.
1998-12-11 10:35:38 +00:00
Bruce Evans dc5fb4a2e0 Fixed disordered options in synopsis. 1998-12-11 10:25:55 +00:00
Bruce Evans 1efaa0cab8 Fixed missing `p' flag in synopsis.
Broken in:	previous commit
1998-12-11 10:20:54 +00:00
Mike Smith 7e2d04d7c3 Add a '-p' flag to shutdown which corresponds to the '-p' flag to halt,
requesting a system power-off after shutdown.
1998-12-10 23:54:02 +00:00
Robert Nordier 71d7142d82 Use '#' flag in place of "0x" in format strings. 1998-12-07 14:09:17 +00:00
Archie Cobbs b31a38612b Disallow ipfw "tee" rules until it is actually implemented.
PR:		bin/8471
1998-12-07 05:54:37 +00:00
Julian Elischer 6b100474f7 Cosmetic and documentation changes brought from earlier FreeBSD versions.
(e.g. RCS Id:)
1998-12-03 02:41:11 +00:00
Julian Elischer d33e92f93e Reviewed by: Don Lewis <Don.Lewis@tsc.tdk.com>
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.
1998-12-03 02:27:35 +00:00
Julian Elischer 233fbe28b0 These shouldn't have been checked in here..
Reviewee by:
1998-12-02 23:45:28 +00:00
Bill Fumerola 1ac2383cb3 Insert missing macro, and while I'm here change the inconsistent
"page_ctl" and "pagectl" to "pgctl" to reflect ``camcontrol --help''.

PR:		docs/8781
Submitted by:	Norihiro Kumagai <kuma@jp.FreeBSD.org>
1998-12-02 22:42:36 +00:00
Julian Elischer f5dcaaf48e This commit was generated by cvs2svn to compensate for changes in r41461,
which included commits to RCS files with non-trunk default branches.
1998-12-02 20:53:40 +00:00
Julian Elischer 927eee5e0e Latest version of fsck from the folks at EX-CSRG specifically Kirk Mckusick.
Don Lewis and Kirk have merges nearly all FreeBSD Fixes into Kirks sources
so there is very little that needs to be re-merged.
1998-12-02 20:53:40 +00:00
Bruce Evans 0ed77db893 Fixed non-use of .Nm and hard line breaks in rev.1.16-1.17: 1998-11-29 13:20:04 +00:00
Bruce Evans e14589db82 Straightened the terminology straightening in 1.17-1.18. Fixed hard
line breaks in rev.1.16-1.18.
1998-11-29 13:09:01 +00:00
Robert Nordier c276ec5a07 Refer to "da" rather than "sd" device. 1998-11-28 10:02:52 +00:00
Robert Nordier 9f9930a2de Refer to "da" rather than "sd" device.
Suggested by: jdp
1998-11-28 09:43:31 +00:00
Joerg Wunsch 698b4def3f sd0 -> da0 1998-11-26 12:24:35 +00:00
Joerg Wunsch aa045fa499 Preprocessor support for `ipfw [-q] ... file'.
This allows for more flexible ipfw configuration files using
`variables' to describe frequently used items in the file, like the
local IP address(es), interface names etc.  Both m4 and cpp are useful
and supported; with m4 being a little more unusual to the common C
programmer, things like automatic rule numbering can be achieved
fairly easy.

While i was at it, i've also untangled some of the ugly style inside
main(), and fixed a bug or two (like not being able to use blank lines
when running with -q).

A typical call with preprocessor invocation looks like

	ipfw -p m4 -Dhostname=$(hostname) /etc/fwrules

Someone should probably add support for this feature to /etc/rc.firewall.
1998-11-23 10:54:28 +00:00
Satoshi Asami 51d2851063 Change sd -> da in examples.
Inspired by:	a mail by Scott Smyth <smyth@bashful.realminfo.com>
1998-11-19 20:22:10 +00:00
Kenneth D. Merry b611e1e3fb Fix a typo in a comment. 1998-11-12 17:47:24 +00:00
David E. O'Brien a87c2a937a Fill-in the manpages a little. 1998-11-12 11:10:26 +00:00
Bruce Evans cffd2ca48b Fixed disorder. 1998-11-10 11:54:29 +00:00
Dima Ruban 57e3cd686c Reenable adjkerntz for alpha. 1998-11-09 21:52:50 +00:00
Don Lewis 508e55f5a4 Fix some calculations that use sizeof to attempt to find the end of an
array that were doing sizeof on an unrelated variable.  This just happened
to work right on the i386, but would not on the alpha.

PR: bin/8427
1998-11-09 03:43:55 +00:00
Poul-Henning Kamp 2b4c0a3bc6 Allow for printing out integer arrays. 1998-11-08 19:27:43 +00:00
Dag-Erling Smørgrav eda1fa0957 Bitch if both an id and a name are specified. Make the man page and usage
message reflect this. As a bonus, make the -n optional so that 'kldunload
name' works as one would expect.
1998-11-07 00:42:52 +00:00
Dag-Erling Smørgrav 9b84d62900 Cosmetic fix (make header align with data) 1998-11-07 00:29:09 +00:00
Alexander Langer ef80de33ad Add an entry for the new NetBSD partition id. 1998-11-06 03:43:21 +00:00
Joseph Koshy d1b7313fca Add an entry for BSD/OS [23].x partition types.
I don't have access to a BSD/OS machine to check the veracity of the
magic number.  However, no harm will be done by the commit and since
someone was motivated enough to file a PR, I'm committing the change.

PR:		7629
Submitted by:	Jos Backus <jbackus@plex.nl>
1998-11-06 03:25:56 +00:00
Matt Jacob 3396608117 For large filesystems you can run past default resource limits causing
fsck to exit unhappily. Fix this by doing a getrlimit/setrlimit for
RLIMIT_DATA. I made the same fix in NetBSD.

Reviewed by:	dg@root.com
1998-11-05 03:26:36 +00:00
Greg Lehey 07e7cd96c5 Correct u_int_64 casting to remove warnings in printf() 1998-11-03 06:39:39 +00:00
Greg Lehey 5ecb82d898 Show revive pointer in percentage complete as well as absolute value. 1998-11-02 04:12:51 +00:00
Greg Lehey d67b685b04 Remove kludge to set subdisk states when bringing up a plex 1998-11-02 04:12:28 +00:00
David Greenman 8692ad469b Rename a function name so that it doesn't conflict with a future system call. 1998-10-30 16:17:50 +00:00
Dima Ruban 97b465b142 64bit fixes.
(Note: ``dump'' doesn't work on alpha yet. Apparently there's a problem
somewhere is the physio() area)

Submitted by:	myself && Matt Dillon.
1998-10-27 04:01:19 +00:00
Bruce Evans cf6ceaf1a4 Oops, don't quite use RAW_PART instead of RAWPARTITION. Use 'a' + RAW_PART
in both places.
1998-10-23 18:57:39 +00:00
Greg Lehey 8386a2b309 list.c:
Add dump of last requests with 'info -V'.  This requires the requests
  to be enabled with 'debug 8'.
1998-10-21 08:39:57 +00:00
Bruce Evans dbf1004755 Honour the default CFLAGS. This fixes a spew of warnings for compiling
unused static inlines in headers without -O.

Fixed missing libraries in DPADD.

Use .PATH instead of a symlink farm.

Removed bogus dependency of util.c on statetext.h (only util.o depends
on it).  Removed rule for building statetext.h.  The dependency was used
to get statetext.h built, but statetext.h is a non-generated source file
so it doesn't need building.  This fixes an annoying message for the null
build and use of `make' instead of ${MAKE} to do the null build.

Fixed some style bugs.
1998-10-17 13:48:37 +00:00
Bruce Evans 794389cf5d Don't assume that time_t is long. 1998-10-17 13:02:46 +00:00
Bruce Evans b5bd72112d Don't assume that time_t is long. 1998-10-17 12:44:55 +00:00
Bruce Evans 7de064209a Updated the error message for EXDEV to match recent kernel fixes.
Fixed nearby indentation.

Use RAW_PART instead of RAWPARTITION.
1998-10-17 09:56:32 +00:00
Bruce Evans 8116455e9d Backed out previous commit. It broke fsck again. See rev.1.22 and the
references there, and rev.1.38 of sys/ufs/ufs/ufs_disksubr.c.
1998-10-17 08:03:52 +00:00
Jordan K. Hubbard 7b955a8e5d Don't rewrite the disk label. The type field is already set correctly
and we don't use the frags info, so why bother?  More to the point, it
seems to result in an EXDEV error when the label is written out and we
lose because of it (don't know why though).  This is a work-around and
is marked as such.
1998-10-17 04:19:29 +00:00
Dag-Erling Smørgrav bdd042f095 Warn about "mount -u" bug. 1998-10-16 00:06:56 +00:00
Stephen McKay 099d4ed135 Spelling. 1998-10-15 13:37:35 +00:00
Kenneth D. Merry 8e3278cbd6 When we send a stop unit command to a device, send it as an ordered tag so
that any transactions in front of the stop command get flushed to disk
first.  This will have no effect on devices that have tagged queueing
turned off, or don't support tagged queueing.

Reviewed by:	gibbs
1998-10-13 22:02:38 +00:00
Kenneth D. Merry 2e2b088cc2 Fix a bug in camcontrol that caused 'camcontrol start' to not work.
Noticed by:	Philippe Regnauld <regnauld@deepo.prosa.dk>
1998-10-13 16:23:26 +00:00
Robert Nordier 374e41f47f Kill an extraneous dot.
PR:		8103
Submitted by:	Kazuo Horikawa <horikawa@jp.freebsd.org>
1998-10-10 15:47:16 +00:00
Mike Smith 6b754594c5 Teach dset about isa_devtab_cam 1998-10-06 07:32:45 +00:00
Kenneth D. Merry de86eff58c Add a missing word. 1998-10-06 00:32:58 +00:00
Kenneth D. Merry 94d09127cb Add the -c flag in to the usage summaries in the man page and the usage()
function in camcontrol.

Also, fix the modepage example in the examples section of the man page.  It
didn't quite come out right with the '.Dl' macro.
1998-10-03 19:15:53 +00:00
Kenneth D. Merry d05caa00c5 Add a new CAM debugging mode, CAM_DEBUG_CDB. This causes the kernel to
print out a one line description/dump of every SCSI CDB sent to a
particular debugging target or targets.

This is a good bit more useful than the other debugging modes, I think.

Change some things in LINT to note the availability of this new option.

Fix an erroneous argument to scsi_cdb_string() in scsi_all.c

Reviewed by:	gibbs
1998-10-02 21:00:58 +00:00
Greg Lehey e34129e8ba Correct source file corruption in last checkin
Observed by:  jkh
1998-09-30 07:53:52 +00:00
Greg Lehey 11ee80a991 Don't require an argument for -v flag
Correct checks for null special file names
Add Usage entry for -v flag
Get terminology straight in man page
Reviewed by:	bde
1998-09-29 23:20:04 +00:00
David E. O'Brien 7105c8a242 Add history. 1998-09-29 17:34:25 +00:00
Greg Lehey 8814fd974a Bring man page up to date 1998-09-29 10:26:02 +00:00
Joseph Koshy 1c4d62951a `kern.maxproc' is not changeable using sysctl(1). Change examples
that show `kern.maxproc' being written.

PR:		docs/7978
Submitted by:	jlemon@americantv.com
1998-09-29 02:01:06 +00:00
Alexander Langer abe7f210b5 The flags type was recently changed from u_short to u_int, breaking
icmptypes.

PR:		8067
Submitted by:	Jonathan Hanna <jh@cr1003333-a.crdva1.bc.wave.home.com>

While I'm here, staticize functions.
1998-09-28 22:56:37 +00:00
Greg Lehey 3d8357b49c Include vinum in SUBDIR 1998-09-28 05:38:52 +00:00
Kazutaka YOKOTA 7af89e87f8 Remove the reference to the -b option; it's gone. 1998-09-23 06:54:14 +00:00
Nate Williams e4b74ed73c - Back out softupdate change that already existed in FreeBSD from V1.6,
which caused the reference count of a directory to get doubly
  decremented.

PR:		bin/8030
Reviewed by:	nate
Submitted by:	Don Lewis <Don.Lewis@tsc.tdk.com>
1998-09-23 05:37:35 +00:00
Ollivier Robert 4a73c49a6d Change rst0 into rsa0. 1998-09-22 10:05:27 +00:00
Kenneth D. Merry 8ff6dbfc74 Fix a grammar problem.
PR:		docs/7975
1998-09-21 20:44:39 +00:00
David E. O'Brien be0cde6f10 Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
Warner Losh fc1e823247 Prevent buffer overflow with extra long arguments. 1998-09-17 20:18:11 +00:00
Kenneth D. Merry 46a1f3b423 Page control field values go from 0-3, not 1-4.
Reported by: Tony Maher <tonym@angis.usyd.edu.au> on -current
1998-09-17 16:12:30 +00:00
Poul-Henning Kamp d80044954c Two patches from the HARP people:
Various Makefile related fixes.

-Wformat fixes.

Submitted by:	Mike Spengler <mks@networkcs.com>
1998-09-17 09:35:02 +00:00
Kenneth D. Merry d13d1cd2cc Fix a typo. "Primay" -> "Primary" 1998-09-17 05:10:23 +00:00
Justin T. Gibbs c4ea283d54 Obsoleted by CAM. 1998-09-17 03:54:31 +00:00
Andreas Klemm 678bcd7728 checked, that new sa CAM driver takes care of using buffer sizes
<= 64 KB. Was able to dump/restore with block sizes of 96, 128 and
200. using systat -vmstat I noticed transfer blocksizes <= 64KB,
so physio's limits aren't touched.
Since this check was originally from me, I feels safe now to back it
out.
1998-09-16 20:52:12 +00:00
David E. O'Brien 63ab6f1c55 Linux swap and Solaris x86 use the same BIOS partition id. 1998-09-16 19:25:47 +00:00
Greg Lehey 8644f7188f Import base vinum userland sources 1998-09-16 05:57:36 +00:00
Poul-Henning Kamp a6f32b0c35 Remove blank after -I 1998-09-15 19:16:33 +00:00
Poul-Henning Kamp 3f8c45065e (this is an extract from src/share/examples/atm/README)
===================================
                HARP  |  Host ATM Research Platform
                ===================================

                              HARP 3

What is this stuff?
-------------------
The Advanced Networking Group (ANG) at the Minnesota Supercomputer Center,
Inc. (MSCI), as part of its work on the MAGIC Gigabit Testbed, developed
the Host ATM Research Platform (HARP) software, which allows IP hosts to
communicate over ATM networks using standard protocols.  It is intended to
be a high-quality platform for IP/ATM research.

HARP provides a way for IP hosts to connect to ATM networks.  It supports
standard methods of communication using IP over ATM.  A host's standard IP
software sends and receives datagrams via a HARP ATM interface.  HARP provides
functionality similar to (and typically replaces) vendor-provided ATM device
driver software.

HARP includes full source code, making it possible for researchers to
experiment with different approaches to running IP over ATM.  HARP is
self-contained; it requires no other licenses or commercial software packages.

HARP implements support for the IETF Classical IP model for using IP over ATM
networks, including:

   o IETF ATMARP address resolution client
   o IETF ATMARP address resolution server
   o IETF SCSP/ATMARP server
   o UNI 3.1 and 3.0 signalling protocols
   o Fore Systems's SPANS signalling protocol

What's supported
----------------
The following are supported by HARP 3:

   o ATM Host Interfaces
        - FORE Systems, Inc. SBA-200 and SBA-200E ATM SBus Adapters
        - FORE Systems, Inc. PCA-200E ATM PCI Adapters
        - Efficient Networks, Inc. ENI-155p ATM PCI Adapters

   o ATM Signalling Protocols
        - The ATM Forum UNI 3.1 signalling protocol
        - The ATM Forum UNI 3.0 signalling protocol
        - The ATM Forum ILMI address registration
        - FORE Systems's proprietary SPANS signalling protocol
        - Permanent Virtual Channels (PVCs)

   o IETF "Classical IP and ARP over ATM" model
        - RFC 1483, "Multiprotocol Encapsulation over ATM Adaptation Layer 5"
        - RFC 1577, "Classical IP and ARP over ATM"
        - RFC 1626, "Default IP MTU for use over ATM AAL5"
        - RFC 1755, "ATM Signaling Support for IP over ATM"
        - RFC 2225, "Classical IP and ARP over ATM"
        - RFC 2334, "Server Cache Synchronization Protocol (SCSP)"
        - Internet Draft draft-ietf-ion-scsp-atmarp-00.txt,
                "A Distributed ATMARP Service Using SCSP"

   o ATM Sockets interface
        - The file atm-sockets.txt contains further information

What's not supported
--------------------
The following major features of the above list are not currently supported:

        o UNI point-to-multipoint support
        o Driver support for Traffic Control/Quality of Service
        o SPANS multicast and MPP support
        o SPANS signalling using Efficient adapters

This software was developed under the sponsorship of the Defense Advanced
Research Projects Agency (DARPA).

Reviewed (lightly) by:	phk
Submitted by:	Network Computing Services, Inc.
1998-09-15 11:44:44 +00:00
Justin T. Gibbs 49fccf2a24 Add support for dealing with ENOSPC as the error code returned by a tape
device hitting EOM on a write.
1998-09-15 10:25:50 +00:00
Justin T. Gibbs 431b8233d7 Add camcontrol. Remove scsiformat. 1998-09-15 10:25:04 +00:00
Poul-Henning Kamp 1820df7a2d Add new files for HARP3
Host ATM Research Platform (HARP), Network Computing Services, Inc.
This software was developed with the support of the Defense Advanced
Research Projects Agency (DARPA).
1998-09-15 08:23:17 +00:00
Justin T. Gibbs b2dfb1f906 Update system to new device statistics code.
Submitted by:	"Kenneth D. Merry" <ken@plutotech.com>
		mike@smith.net.au (Mike Smith)
1998-09-15 08:15:30 +00:00
Justin T. Gibbs 525689f102 Camcontrol - A utility for configuring/manipulating the CAM subsystem
Submitted by:	"Kenneth D. Merry" <ken@plutotech.com>
1998-09-15 06:43:02 +00:00
Greg Lehey f7fb3ee05b Reviewed by: bde (again)
Correct terminology (partitions are in slices, not the other way around)
1998-09-11 07:08:49 +00:00
Greg Lehey 58343e4cc6 Reviewed by: bde,jkh
Add -v flag to newfs:

     -v      Specify that the partition does not contain any slices, and that
             newfs should treat the whole partition as the file system.  This
             option is useful for synthetic disks such as ccd and vinum.
1998-09-11 06:26:08 +00:00
Bruce Evans addb18b16d Don't refuse to pass the force and sync options to the kernel. The
kernel supports them, and the force option will be more important
when mounting of unclean ext2fs file systems is not permitted unless
it is forced.
1998-09-09 16:26:51 +00:00
John Polstra cfa4d73988 Add a new library function getobjformat(). It checks all the
standard places ("/etc/objformat", ${OBJFORMAT}, argv) for an
indication of the user's preferred object file format.  This
consolidates some code that was starting to be duplicated in more
and more places.

Use the new function in ldconfig.

Note: I don't think that gcc should use getobjformat(), even though
it could.  The compiler should limit itself to functions that are
widespread, to ease porting and cross-compilation.
1998-09-09 01:21:25 +00:00
John Polstra 614d19ca10 Fix calls to mmap. It returns void *, and on failure it returns
MAP_FAILED.

Don't try to extend the mapping in place if it is too short.
There's no guarantee it will be possible.  Remap the file instead.

Put in a few style fixes.

Submitted by:	Bruce Evans <bde>
1998-09-06 20:43:25 +00:00
John Polstra 5f8d88ddd6 For a.out mode, ignore shared libraries that don't have at least 2
version numbers.
1998-09-05 16:20:15 +00:00
Doug Rabson 69beb1913e Disable gcc's builtin memcpy for alpha since it doesn't cope with unaligned
regions properly and this triggers an unaligned access trap.
1998-09-05 15:11:47 +00:00
John Birrell b8f26023ac Change MACHINE to MACHINE_ARCH to support MACHINE=pc98. 1998-09-05 08:29:05 +00:00
John Birrell 120e8c9dfb Now that ldconfig does elf work too, build it on alpha as well. 1998-09-05 07:35:19 +00:00
John Polstra a565ca5920 Implement ldconfig functionality for ELF. The hints are stored in
a different file than the a.out hints, namely, "/var/run/ld-elf.so.hints".
These hints consist only of the directory search path.  There is
no hash table as in the a.out hints, because ELF doesn't have to
search for the file with the highest minor version number.  (It
doesn't have minor version numbers at all.)

A single run of ldconfig updates either the a.out hints or the ELF
hints, but not both.  The set of hints to process is selected in
the usual way, via /etc/objformat, or ${OBJFORMAT}, or the "-aout"
or "-elf" command line option.  The rationale is that you probably
want to search different directories for ELF than for a.out.

"ldconfig -r" is faked up to produce output like we are used to,
except that for ELF there are no minor version numbers.  This should
enable "ldconfig -r" to be used for checking LIB_DEPENDS in ports
even for ELF.

I implemented the ELF functionality in a new source file, with an
eye toward eliminating the a.out code entirely at some point in
the future.
1998-09-05 03:31:00 +00:00
Wolfram Schneider acd8019083 Sort cross references. 1998-08-31 16:41:09 +00:00
Gary Palmer cb7f1224bb Split lines into one subdir per line. 1998-08-30 20:28:50 +00:00
Joseph Koshy 80c936833f Install ipmon.8 in man8/ not man1/.
PR: 7778
Submitted by: horikawa@jp.freebsd.org
1998-08-30 04:48:00 +00:00
Matthew Dillon 0b0c1554a8 Updated manual page. Removed description of (now defunct) -c restrictions. 1998-08-27 16:34:38 +00:00
Doug Rabson 48145dcdb4 Use explicitly sized types when formatting cylinder groups. 1998-08-27 07:38:33 +00:00
Dag-Erling Smørgrav ce6f26dde3 Remove -c restrictions from previous commit. 1998-08-26 18:51:37 +00:00
Matthew Dillon 526f06b278 (well tested at BEST): -i option can now take FP values (e.g. -i 0.1),
extremely useful for networking testing.  Other options secured from
    user-level D.O.S. attacks.  -f, -s now root-only.  -i wait times < 1.0
    root-only.  -c count limited to 100 and defaults to 16 when ping run
    by non-root user.
1998-08-26 01:58:39 +00:00
Doug Rabson dbf9b92f80 Change length arguments to sysctl to size_t. 1998-08-25 07:38:19 +00:00
Bruce Evans 21c729c287 Attempt to fix my breakage of the alpha makebootarea() in rev.1.19.
The previous attempt just converted compile time breakage to runtime
breakage.
1998-08-23 07:32:37 +00:00
Gary Palmer 31ae054ece Try to make this compile on both alpha and i386 1998-08-21 23:44:16 +00:00
John Birrell 33b51c50fb Fix the machine dependent SUBDIR I removed by mistake in the last commit. 1998-08-20 20:47:49 +00:00
Bruce Evans cc18e4cccf Fixed style bugs in previous commit.
Added some comments on #endifs.
1998-08-17 21:13:57 +00:00
Doug Rabson 130cd73a15 Teach disklabel how to install a bootstrap on an alpha with SRM console. 1998-08-17 07:43:54 +00:00
John Birrell 3aeb50c6e6 All but two if these build on alpha now, but most are untested.
ldconfig isn't required.
1998-08-15 13:21:41 +00:00
Doug Rabson bcaf95205c Use explicitly sized types when laying out the cylinder groups. This
bug was the cause of the 'freeing free frag' panics that people have been
seeing with FreeBSD/alpha. I have a similar patch to newfs but I've not
finished testing it.
1998-08-15 10:07:33 +00:00
Philippe Charnier e791a73343 Forgot to remove a ';' in my previous commit. 1998-08-12 06:07:43 +00:00
John Polstra c42a51a6ff Add "-aout" option when calling the linker, so that this will work
in an ELF world.  This will have to be revisited when the kernel
moves to ELF.
1998-08-12 02:39:23 +00:00
Poul-Henning Kamp 511d9c69ba unifdef -UISO
Inspired by bdes comment to PR: 7419
1998-08-07 06:36:53 +00:00
Mark Murray 448bbb5805 Fix LIBDIR (for aout/ELF). 1998-08-06 21:41:13 +00:00
Peter Hawkins 62cf03cd85 PR: 7475
Added support for -q (suppress output) when firewall rules are taken from a
file. Solves PR 7475
1998-08-04 14:41:37 +00:00
Poul-Henning Kamp 7c949108fb There seem to be two messages that were added with soft-updates
support, which need a final "\n". I only observed one line of
mangled output, but I think there is another one which suffers
from the same problem, and thus I provide a patch that covers
both.

PR:		7483
Reviewed by:	phk
Submitted by:	Stefan Esser <se@FreeBSD.org>
1998-08-04 09:19:03 +00:00
Philippe Charnier adb378ce60 Use errx() instead of err() for malloc failures. -Wall. Do not dot
terminate errx() string. Remove unused #includes. Use .Tn for NFS.
1998-08-03 06:44:46 +00:00
Philippe Charnier 8679b1b4d8 Document -n (soft-update) flag.
Add rcsid, remove unused #includes. Sync usage() and SYNOPSIS.
1998-08-03 06:41:20 +00:00
Philippe Charnier e798a806ce .Nm swapon -> .Nm.
Sort #includes. Add rcsid.
1998-08-03 06:35:01 +00:00
Philippe Charnier 0ae352daa7 Correct use of .Nm and .Ev.
Add rcsid, rmove unused #include. Spelling.
1998-08-03 06:32:57 +00:00
Philippe Charnier 7afd196062 Typo: i. e. -> i.e.
Remove unused #include.
1998-08-03 06:24:59 +00:00
Philippe Charnier d371486332 Correct use of .Nm. Add rcsid. Do not dot terminate err(3) strings. Spelling. 1998-08-03 06:22:43 +00:00
Philippe Charnier bd48897bd1 Correct use of .Nm, add .An. 1998-08-03 06:19:47 +00:00
Bruce Evans ab84534772 Fixed printf format errors. 1998-08-02 16:06:35 +00:00
Doug Rabson 5a70a75747 Avoid trying to malloc > (1<<32) bytes of memory due to an arithmetic
underflow on the alpha.
1998-08-01 18:03:28 +00:00
Joerg Wunsch 62052b46f7 Document the kern.logsigexit sysctl variable (sort of).
Reminded by:	bde
1998-07-29 08:30:37 +00:00
Warner Losh 49a3215509 Commit patch from Tor Egge to fix the "large filesystem restore" problem.
This appears to work for me in the old case, but I don't have large
enough filesystems to test the fix case.

Reported working by: karl@mcs.net
1998-07-28 18:50:01 +00:00
Philippe Charnier 14cf3a5d8f Spelling. Errx() on malloc() failure. 1998-07-28 06:42:38 +00:00
Philippe Charnier f9b52c93a5 Correct use of .Nm, add rcsid, remove unused #include. 1998-07-28 06:38:57 +00:00
Philippe Charnier 90100551e6 Spelling, add rcsid, remove unused #includes.
Convert 1000000 usec to 1 sec 0 usec.
Use provided safe malloc (rtmalloc()) instead of malloc(): exit on allocation
failure.
Correct use of .Nm
Add usage() and use errx().
1998-07-28 06:36:31 +00:00
Philippe Charnier 1cc580ef41 Comment is .\" not .|'. Add -d and -t flags to SYNOPSIS and usage(). Getopt
returns -1. Correct use of .Nm. Spelling. Add rcsid and remove unused
#include.
1998-07-28 06:25:35 +00:00
Philippe Charnier 91ac32e405 Add rcsid. Remove unused #includes. Add missing prototypes and others -Wall
cleanings. Spelling.
1998-07-28 06:20:16 +00:00
Tim Vanderhoek d6c37912c6 Use an error message that more clearly indites(sp?) an out-of-sync
kernel+userland when that is the case.

PR:		bin/7414
1998-07-27 18:53:45 +00:00
Bruce Evans 6cabb34884 Fixed bugs in `disklabel -R...':
- nonstandard sector sizes didn't work because the sector size in the
  ASCII label was not read before a (default, wrong) sector size was used.
- the exit status was 0 after exiting early due to an invalid ASCII label.

Abort `disklabel -B...' if the secondary bootstrap doesn't fit.
1998-07-25 16:19:10 +00:00
Poul-Henning Kamp 6f48600e53 /usr/src/sbin/routed/parms.c and .../routed/rtquery/rtquery.c both
contain code that compare a char pointer with a char.  As this
doesn't make much sense, it looks very much as if a '*' has been
dropped by mistake.  I have made no analysis of the possible
consequences of the problem.

PR:		7319
Reviewed by:	phk
Submitted by:	Anders Thulin <Anders.X.Thulin@telia.se>
1998-07-22 05:49:36 +00:00
Poul-Henning Kamp 63322c283d Memory management error in init.
PR:		7320
Reviewed by:	phk
Submitted by:	Anders Thulin <Anders.X.Thulin@telia.se>
1998-07-22 05:45:11 +00:00
Joerg Wunsch aa81f3a9d8 Document sef's recent changes in the corefile naming.
Reviewed by:	sef (well, i believe his `Looks good' was a review result :)
1998-07-21 18:16:16 +00:00
Bruce Evans 519e76df7c Backed out rev.1.9 (except don't bring back the vax code deleted
in rev.1.9).  fsck uses the per-partition ffs-related information
in the label to find alternate superblocks when the main superblock
is hosed.  Rev.1.9 broke this by deleting the code that wrote the
label.

PR:		2537
xref:		fsck/setup.c rev.1.8
1998-07-20 12:04:42 +00:00
Bruce Evans e18fb238dc Clear d_boot0 and d_boot1 in the virgin label. These are overlaid by
d_packname in in-core labels, so they are garbage if d_packname is
initialized in the dummy label for the whole disk.  dsopen() will soon
initialize d_packname to "fictitious" if it is not already initialized.

Fixed nearby error handling.  Rev.1.7 apparently confused Perror()
with perror().
1998-07-20 11:34:06 +00:00
Robert Nordier 5fc905fcf0 Minor consistency fixes. 1998-07-19 15:02:39 +00:00
Robert Nordier 4633bc16d2 Reverse charnier's changes to usage. 1998-07-16 12:24:51 +00:00
Philippe Charnier 16e80a4182 Make it compile again in the !__STDC__ case.
Found by: Bruce.
1998-07-16 12:04:52 +00:00
Philippe Charnier 9448def93e Correct use of .Nm. Add rcsid. -Wall. Add -p flag in usage string (was missing). 1998-07-15 06:51:38 +00:00
Philippe Charnier 25f014db91 Correct use of .Nm. Add rcsid. Remove unused #includes. Use warn().
Errx(1, "malloc failed") is better than err(1, NULL).
1998-07-15 06:48:52 +00:00
Philippe Charnier e345a80d5d Correct use of .Nm. Remove unused #includes. Use warn(). cosmetic in usage()
string.
Translate 0 sec 1000000 usec to 1 sec 0 usec.
1998-07-15 06:45:02 +00:00
Philippe Charnier 1109d2e0ee Do not uppercase first letter in syslog() string. 1998-07-15 06:38:53 +00:00
Philippe Charnier 06389a253a Add Id. .Nm nologin -> .Nm. 1998-07-15 06:37:07 +00:00
Philippe Charnier 6ca76744cb Correct use of .Nm. Do not dot terminate syslog() strings. Remove unused
#includes. Add rcsid. -Wall.
1998-07-15 06:35:20 +00:00
Philippe Charnier 9b4d716bbb Do not dot terminate syslog() string. Remove unused #includes. Add rcsid. -Wall. 1998-07-15 06:33:15 +00:00
Philippe Charnier f6f3d50730 Correct use of .Nm. Remove unused #includes. Short usage() string, see man
page for details.
1998-07-15 06:30:38 +00:00
Philippe Charnier 27750b35a5 Add prototypes. Check malloc() return value. Use err(). Remove unused #includes
Do not \n nor dot terminate syslog()/err() messages. -Wall.
1998-07-15 06:28:05 +00:00
Philippe Charnier 7485340223 Correct improper use of .Sm. Document -d flag. Correct use of .Nm. Remove
unused #includes. Add usage(). Use warnx(). Correct spelling. Abort when
malloc() fails.
1998-07-15 06:21:41 +00:00
Philippe Charnier 109d5f9fa4 .Nm mount_union -> .Nm. 1998-07-15 06:13:45 +00:00
Philippe Charnier 6036829ceb Correct use of .Nm. Use .Ar when appropriate. Remove unused #includes. Typos. 1998-07-15 06:12:32 +00:00
Philippe Charnier fdb8d8965b Correct use of .Nm. Remove unused #includes. 1998-07-15 06:08:47 +00:00
Joseph Koshy 06d073b9a9 Fix inconsistent port numbering in man page.
PR: 7250
Submitted-by: Norihiro Kumagai <kuma@jp.freebsd.org>
1998-07-15 03:32:45 +00:00
Joseph Koshy f69e804d24 Make `dump' exit codes confirm to manual page.
PR: 5346
Style-check-by: bde
1998-07-14 09:19:47 +00:00
Joseph Koshy cdcd36c48e Add $Id$.
PR: 7249
1998-07-14 08:18:51 +00:00
Poul-Henning Kamp 06c534212f The '-h' option cannot toggle the kernel from a serial console
if the kernel was built with COMCONSOLE

PR:		7202
Reviewed by:	phk
Submitted by:	Greg A. Woods <woods@zeus.leitch.com>
1998-07-09 06:24:21 +00:00
Joseph Koshy ce60232381 Add a CAVEAT section documenting the minimum permissions required for a mount
point to be traversable in both directions by all users.

PR: 7172
1998-07-09 05:49:58 +00:00
John Polstra adb915cb28 Fix a bug that prevented the restoration of hard links to files that
had the schg flag set.  Reported by Matthew Thyer <thyerm@camtech.net.au>.
1998-07-09 03:57:26 +00:00
Robert Nordier 5a901bd884 Activate newfs_msdos. 1998-07-06 20:05:41 +00:00
Robert Nordier dc9ef4d1f7 Add newfs_msdos: extensive newfs-style support for creating FAT12,
FAT16, and FAT32 file systems in all their various horriblenesses.

Approved-in-concept by: joerg
1998-07-06 20:01:34 +00:00
Bruce Evans 91ba27a769 ioctl() request args are unsigned longs, so don't attempt to store
them as ints.  Among other bugs, doing so at best caused benign
overflow followed by fatal sign extension on machines with 32-bit
ints and 64-bit longs.
1998-07-06 19:54:39 +00:00
Bruce Evans 517cdb815b Restored rev.1.11, which I somehow clobbered in rev.1.12. 1998-07-06 19:11:35 +00:00
Philippe Charnier e37a54892b Correct use of .Nm. Spelling. Add rcsid and remove unused #includes. 1998-07-06 07:19:27 +00:00
Philippe Charnier 7b353f1aca -Wall. 1998-07-06 07:17:27 +00:00
Philippe Charnier 46fc8f78df Sync usage string and man page. Correct use of .Nm. Spelling. Remove
unused #includes.
1998-07-06 07:15:53 +00:00
Philippe Charnier 787e61c650 Correct use of .Nm. 1998-07-06 07:13:31 +00:00
Philippe Charnier bcb1d8469d Remove unused #includes. Spelling. Add rcsid. Do not dot terminate err()
strings.
1998-07-06 07:12:38 +00:00
Philippe Charnier 6b5bcce5dc Add rcsid. Remove unused #includes. Spelling. 1998-07-06 07:09:13 +00:00
Philippe Charnier 89a3081b41 Add rcsid, remove unused #includes, spelling. 1998-07-06 07:07:41 +00:00
Philippe Charnier fbb3447f9c Remove unused #include. Add usage(). 1998-07-06 07:06:15 +00:00
Philippe Charnier 23b5892f5e Correct use of .Nm. Spelling. Add rcsid, remove unused #includes, use err(3). 1998-07-06 07:04:50 +00:00
Philippe Charnier b50d7fae67 Add rcsid. remove unused #includes. Getopt returns -1 not EOF. Add usage().
Cosmetics in err(3) string.
1998-07-06 07:02:26 +00:00
Philippe Charnier 063bb8badc Lowercase 1st char. in err(3) strings. 1998-07-06 06:59:52 +00:00
Philippe Charnier 614a54ebb0 remoce unused #include. 1998-07-06 06:58:32 +00:00
Philippe Charnier 5df42cf4ae Correct .Nm use. Add rcsid. Use min for minutes instead of mn. 1998-07-06 06:56:08 +00:00
Philippe Charnier e333b9445f Update man page to allow adding address_family when -l is used (this is a no op
for now). Correct use of .Nm. Short usage string (see man page for full list).
Spelling.  Use err(3).
1998-07-06 06:53:43 +00:00
Philippe Charnier d98b16689b Correct use of .Nm, use .Bx Free for FreeBSD. Add rcsid, remove unused
#includes. Spelling. Use err(3) and add usage().
1998-07-06 06:44:36 +00:00
Julian Elischer f9e354df42 Support for IPFW based transparent forwarding.
Any packet that can be matched by a ipfw rule can be redirected
transparently to another port or machine. Redirection to another port
mostly makes sense with tcp, where a session can be set up
between a proxy and an unsuspecting client. Redirection to another machine
requires that the other machine also be expecting to receive the forwarded
packets, as their headers will not have been modified.

/sbin/ipfw must be recompiled!!!

Reviewed by:	Peter Wemm <peter@freebsd.org>
Submitted by: Chrisy Luke <chrisy@flix.net>
1998-07-06 03:20:19 +00:00
Brian Somers 357f172839 Make things clearer.
Submitted (some time ago) by: Ted Mittelstaedt <tedm@portsoft.com>
1998-07-04 12:07:03 +00:00
Brian Somers 622366b81d Suggest port 8668 rather than 6668 for natd.
6668 is IRC.
1998-07-04 01:53:54 +00:00
Philippe Charnier 61d20ca30f Add rcsid. Remove unused #includes. Use err(3) and check spelling. Reorganize
man page.
1998-06-30 06:28:18 +00:00
Philippe Charnier 750f6fe391 Split usage string. 1998-06-30 06:23:42 +00:00
Philippe Charnier eec2e675fc Document -r flag, document use of TAPE env variable. Add rcsid. Use err(3).
Remove unused vars (-Wall).
1998-06-30 06:22:08 +00:00
Philippe Charnier c27b7bad4a Do not dot terminate SEE ALSO list. Add rcsid, remove unused #includes. Err(3)
messages should start with a lowercase letter.
1998-06-30 06:18:44 +00:00
Philippe Charnier 9f597f59d5 Add SYNOPSIS section and change NULL to NUL in man page. Add rcsid, missing
#includes. Use err(3).
1998-06-30 06:12:44 +00:00
Philippe Charnier d286dcb026 Add rcsid. Remove unused #includes. Use err(3). 1998-06-30 06:09:37 +00:00
Bruce Evans c2deb6082e Don't assume that time_t is long. 1998-06-29 17:54:29 +00:00
Joseph Koshy a34f78d134 Fix bogon in man page. "-o conn" actually turns off NFSMNT_NOCONN as it is
a "negative" option.  This makes it equivalent to /not/ specifying "-c".
The compile time default is /not/ to have the NFSMNT_NOCONN flag set, so
"-o conn" should never be needed---truly a deprecated option :-).

PR: 6905.
1998-06-29 06:58:46 +00:00
Bruce Evans ba198492ad Fixed printf format errors. 1998-06-28 20:48:03 +00:00
Bruce Evans 318f0106d9 Fixed printf format errors. 1998-06-28 20:42:49 +00:00
Bruce Evans 00e0c280db Fixed printf format errors, scanf format errors and scanf error handling. 1998-06-28 20:40:51 +00:00
Bruce Evans 836b4a7ff9 Fixed printf format errors. 1998-06-28 20:33:36 +00:00
Bruce Evans 7fafc6f67c Fixed printf format errors. Sure is dusty here. 1998-06-28 20:25:59 +00:00
Bruce Evans ca46ad5f48 Fixed printf format errors. 1998-06-28 20:11:23 +00:00
Bruce Evans ce79296f87 Fixed printf format errors. 1998-06-28 19:45:13 +00:00
Bruce Evans 7abda51bbc Fixed printf format errors. 1998-06-28 19:36:49 +00:00
Bruce Evans b10466261e Fixed printf format errors. 1998-06-28 19:23:03 +00:00
Bruce Evans ba31b45080 Fixed printf format errors. 1998-06-28 19:06:17 +00:00
Bruce Evans 2a1deaaa04 Fixed printf format errors. 1998-06-28 18:59:04 +00:00
Bruce Evans 58f6798697 Fixed printf format errors. 1998-06-28 18:34:01 +00:00
Bill Paul 021e3d59aa A long time ago I hacked mountd so that it would deal intelligently
with export lines where the same hostname was specified more than once
(this happens a lot with netgroups sometimes). Recently I discovered
that it needs to be hacked to deal with multiple instances of the
same IP address too.

I've been using this modification locally for several months with no
hassles.
1998-06-25 21:26:06 +00:00
Joseph Koshy 6ebaa024df Fixes per PR 2850:
(a) Note that the default securelevel value is -1, in -current and -stable.
(b) Mention kernel sysctl variable that controls securelevel.
(c) Add warning the `fsck' will fail if securelevel >= 2.
(d) Suggest end of /etc/rc as the right place to raise securelevel.

and one spelling fix.

PR: 2850
1998-06-19 08:34:52 +00:00
Joseph Koshy d00b8231bd Remove reference to non-existent htable(8).
PR: 6940
1998-06-17 13:13:41 +00:00
Joerg Wunsch 01d48801bc Oops, the previous commit missed one line of code. 1998-06-15 15:43:13 +00:00
Joerg Wunsch 9d70a1569c Watch out for null hostnames in netgroup entries, to avoid dumping core.
This happens if someone tries to export to a netgroup like:

mygroup		(,,mynisdomain)
1998-06-15 15:41:41 +00:00
Philippe Charnier 0227048a1f Correct use of .Nm. Use .Bl/.El for enumerating options. Use .An. Correct
formatting of rcsid. Remove unused #includes. Do not use memory after
freeing it.
1998-06-15 07:12:20 +00:00
Philippe Charnier 2d34272b7b Correct use of .Nm. Add rcsid. Remove unused #includes. Use err(3). 1998-06-15 07:07:21 +00:00
Philippe Charnier 8f034b11f2 Capitalize at the start of sentence. Add rcsid. Remove unused #includes.
Use `dumpon' instead of argv[0].
1998-06-15 07:03:47 +00:00
Philippe Charnier 074fad210f Add rcsid. Remove unused #includes. 1998-06-15 07:00:01 +00:00
Philippe Charnier 7580ffbbbd Correct use of .Nm. Add rcsid. Remove unused #includes. 1998-06-15 06:58:13 +00:00
Peter Wemm bf0b255967 Force -DFREEBSD_AOUT incase ldconfig is being compiled under elf.
Without this, <link.h> defines stuff for elf linking which is not
what ldconfig needs.
1998-06-12 10:43:18 +00:00
Bruce Evans 677b9b3f7c Print the write counts if they are nonzero even if we're mounted
readonly, since they tell us about previous write activity.

Use the correct format to print the write counts.
1998-06-08 14:08:54 +00:00
Philippe Charnier 65b4c10030 Add rcsid, remove unused #includes. Use err(3). 1998-06-08 06:44:05 +00:00
Philippe Charnier 3121d4cbe0 Use warnx()+fprintf() to handle multi-line messages. Correct K&R support and
KNF continuation indent rule.
Requested by: Bruce.
1998-06-08 06:41:47 +00:00
Daniel O'Callaghan 20d3783ac9 Fix typo: exit -> exist 1998-06-08 02:00:45 +00:00
Peter Hawkins ce4a641c8b PR: docs/3636
Submitted by:	Gary Palmer gpalmer@FreeBSD.ORG
Add mention of the 1024-character line length limit on the netgroup database.
1998-06-07 15:08:50 +00:00
John Birrell fa05a94c42 Fix an alignment problem on alpha by doing a bytewise copy. 1998-06-06 23:33:28 +00:00
Julian Elischer c2a239ebc7 Reviewed by: Kirk Mckusick (mckusick@mckusick.com)
Submitted by:	luoqi Chen
fix a type in fsck.
(also add a comment that got picked up by mistake but is worth adding)
1998-06-05 23:33:26 +00:00
Steve Price 8588641614 Fix a spelling error.
PR:		6857
Submitted by:	Josh Gilliam <josh@quick.net>
1998-06-04 21:09:08 +00:00
Philippe Charnier 970cd28246 Use .Pa for filenames. Use .Bl/.El in FILES section. Remove unused #includes. 1998-06-04 06:51:14 +00:00
Philippe Charnier 6bd343a92d Add section number to .Xr. Use of .Nm. Typo. Add rcsid. Remove unused
#includes. Use err(3).
1998-06-04 06:49:13 +00:00
Philippe Charnier ec74b3f3ea Correct .Nm. Spelling. Add rcsid, remove unused #includes. Add usage(). Do not
dot-terminate errx() strings.
1998-06-04 06:44:18 +00:00
Philippe Charnier 9ad54eb7b3 Correct use of .Nm, use .Bl/.El in FILES section. Add rcsid. Remove unused
#includes and make it a little more -Wall-friendly.
1998-06-04 06:41:26 +00:00
Philippe Charnier 437e1c4474 Correct use of .Nm. Add section number to .Xr. Add rcsid, usage(). Use err(3). 1998-06-04 06:38:03 +00:00
Philippe Charnier f9184dd719 Correct use of .Nm. Add missing .El. Add rcsid. Remove unused #include. 1998-06-04 06:35:12 +00:00
Joseph Koshy 9595a75afa Spelling corrections.
PR: 6829
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-03 04:21:41 +00:00
Joseph Koshy 5caffabdc3 Correct typo.
PR: 6844
Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
1998-06-03 03:59:00 +00:00
Peter Wemm aa9ba0d726 SUBDIR += ldconfig 1998-06-01 14:12:48 +00:00
Peter Wemm af6b4e9098 Build ldconfig in /sbin environment directly, rather than under the gnu ld
directory.  The rcs files were repository copied.
1998-06-01 13:58:19 +00:00
Bruce Evans 5a3e77d851 Fixed overflow in the calculation of the number of inodes per group
for filesystems with almost the maximum number of sectors.  The maxiumum
is 2^31, but overflow is common for that size, and overflow normally
occurred here at size (2^31 - 4096).
1998-05-31 12:21:50 +00:00
Joseph Koshy d2d38aa2d7 Use the correct macro for file names. Remove empty `HISTORY' section.
PR: 6780
Submitted by: Yoshishige Arai <ryo2@on.rim.or.jp>
1998-05-29 10:15:28 +00:00
Joseph Koshy e44af4db8d Correct manual page, based on feedback from Bruce Evans.
Reviewed by: Bruce Evans <bde@freebsd.org>
1998-05-27 11:05:59 +00:00
Søren Schmidt cabb97dcbf ELF preparation step 2:
Move a.out libraries to /usr/lib/aout to make space for ELF libs.
Make rtld usr /usr/lib/aout as default library path.
Make ldconfig reject /usr/lib as an a.out library path.
Fix various Makefiles for LIBDIR!=/usr/lib breakage.

This will after a make world & reboot give a system that no
longer uses /usr/lib/*, infact one could remove all the old
libraries there, they are not used anymore.

We are getting close to an ELF make world, but I'll let this
all settle for a week or two...
1998-05-26 20:12:56 +00:00
Bill Fenner 039d6aa45a Use select() timeouts instead of SIGALRM to schedule packet transmission.
Fixes bin/6649 and removes the last abusive signal handler.
Use SO_TIMESTAMP to get the kernel to timestamp packets on reception.
 Fixes bin/5658 and provides slightly better accuracy.
Explicitly zero and terminate the IP options when using -R.

PR:		bin/5658
PR:		bin/6649
1998-05-25 20:16:05 +00:00
Joseph Koshy bb556bcf30 Manual page fix: add cross references, refer to ``dumpdev'' variable in
"/etc/rc.conf".

PR: 6117
Submitted by: Mark Mayo <mark@vmunix.com>
1998-05-25 08:54:40 +00:00
Steve Price dd033c223d Revert the previous fix. As it turns out Warner Losh is
working a better fix.
1998-05-25 06:53:17 +00:00
Steve Price a39f52db0f Attempt to stop another DoS attack related to ping flooding.
PR:		6649
Submitted by:	Jason Young <doogie@forbidden-donut.anet-stl.com>
1998-05-25 03:50:51 +00:00
James Raynard 4b3b45a7a2 Fix typo in prompt. 1998-05-20 22:23:16 +00:00
Daniel O'Callaghan dcf2c48fc9 Reminded by: Alex Nash
Bring man page up to date with -q flag behaviour.
1998-05-19 12:50:35 +00:00
Poul-Henning Kamp 58067a9909 Make the size of the msgbuf (dmesg) a "normal" option. 1998-05-19 08:58:53 +00:00
Peter Wemm c92e3fa533 Support changing the attribute cache limits per-mount. We don't have
many option letters left, I used long names only (like the previous
port= option)
1998-05-19 07:18:28 +00:00
Masafumi Max NAKANE 432a1104b6 Typo fix. 1998-05-19 03:10:14 +00:00
John Birrell ce27694fab Make this safe for an alpha build, leaving out just about everything
that has some sort of kernel issue associated with it.
1998-05-18 04:46:29 +00:00
Dmitrij Tejblum 0580d32288 Remove extraneous ")" from output. 1998-05-17 21:57:17 +00:00
Bill Fenner 4a3bf3b27c Turn on TCP_NODELAY on the remote socket, to turn off sender silly window
syndrome avoidance.  The combination of SWS avoidance and ack-every-other
 causes low throughput if the block size divided by the MSS is odd (which
 is true with the default block size and MSS).
Turning on TCP_NODELAY disables the Nagle algorithm and sender SWS avoidance.
 The rdump request/response protocol can not invoke Nagle and cannot cause
 SWS, so this has no negative effects.
1998-05-17 06:39:38 +00:00
John Birrell d32ff0376f When a timeval is stored at the beginning of icmp_data, the fields
are unaligned for access by the alpha, so copy the value to a variable
that is aligned.

When checking the returned data, be careful to avoid confusing the
size of the icmp header with the size of a timeval. On i386 these
are both 8, but on alpha, a timeval is 16 bytes. This means that
a packet sent from an alpha contains 48 bytes of data, not 56 like
on i386.
1998-05-16 00:19:27 +00:00
Daniel O'Callaghan 0eaa45335d PR: 6641
Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
Make -q work for zeroing a specific rule.
1998-05-15 12:38:07 +00:00
Poul-Henning Kamp 777558c3ce The SYNOPSYS of mount_umap(8) says
mount_umap [-o options] target mount-point uid-mapfile gid-mapfile

This should read

     mount_umap [-o options] -u uid-mapfile -g gid-mapfile target mount-point

PR:		6586
Reviewed by:	phk
Submitted by:	Amakawa Shuhei amakawa@hoh.t.u-tokyo.ac.jp
1998-05-13 08:02:50 +00:00