Commit Graph

2470 Commits

Author SHA1 Message Date
thorpej
0614e02cbd Need rtsock.c 2001-07-09 20:04:32 +00:00
itojun
32a3de2268 clarify -a. sync with kame 2001-07-05 06:35:08 +00:00
hubertf
1adda5370d EVEN IF YOU SCREAM, THE COMMANT IS STILL CALLED fsck_ffs ! 2001-07-04 22:43:35 +00:00
jdolecek
0fe5bf8257 pipe sysctl stuff is now in <sys/pipe.h> 2001-07-02 20:55:16 +00:00
jhawk
18883403cb Update Dd to rev 1.31 (ipsec changes)
Some hosts and gateways ignore record route, but not "many." Of course,
  more are firewalled. But that's not what was meant here.
Expand flood-pinging admonition to include multicast addresses.
Note flags that conflict with ping under Solaris and FreeBSD.
Reorder BUGS in rough order of significance.
2001-06-25 01:12:53 +00:00
itojun
1d7e1a7cda sync with latest kame.
- sync usage/manpage with reality.
- stop pinging on "-f -c N".
2001-06-22 13:25:03 +00:00
onoe
c4eb8932f8 Add support of persistent key of IEEE 802.11 wireless LAN card.
Currently, only Aironet ("an") driver/card can be used.
     nwkey persist   (IEEE 802.11 devices only) Enable WEP encryption for IEEE
                     802.11-based wireless network interfaces with the persis-
                     tent key written in the network card.
     nwkey persist:key
                     (IEEE 802.11 devices only) Write the key to the persis-
                     tent memory of the network card, and enable WEP encryp-
                     tion for IEEE 802.11-based wireless network interfaces
                     with the key.
2001-06-21 13:36:24 +00:00
mrg
6aca287eb4 expand -n documentation; from sunos. 2001-06-20 02:07:02 +00:00
wiz
3f9984fc90 existent', not existant' 2001-06-19 13:42:07 +00:00
fvdl
e2ff2f5762 Use ELFSIZE 64 for x86-64. 2001-06-19 00:40:57 +00:00
lukem
172a636b48 - Don't attempt to fsck a file system that is mounted read-write unless -f
(force) is given. fsck(8) will return with a zero exit status if "fsck -p"
  is used in this circumstance, but all other invocations (e.g, "fsck",
  "fsck /filesystem", "fsck -p /filesystem") will return with a non-zero exit
  status in this circumstance.
  Per discussions with various people including Bill Sommerfeld.
- Use "file system" instead of "filesystem"
2001-06-18 06:28:59 +00:00
lukem
9e2e804c1c use TAILQ_xxx instead of referencing tqe_xxx elements directly 2001-06-18 02:43:32 +00:00
lukem
f97f509658 ansi knf 2001-06-18 02:31:09 +00:00
lukem
dacdbbf6ac use TAILQ_xxx instead of referencing tqh_xxx elements directly 2001-06-18 02:22:33 +00:00
lukem
4905fe31e2 -d is always compiled in; there's no specific #define to remove it 2001-06-18 01:55:12 +00:00
lukem
684735b97b complete conversion to ANSI C 2001-06-18 01:38:05 +00:00
lukem
df639a1b6b remove references to /etc/rbootd.conf, since it's the config file for
a little used server daemon which can be controlled with rc.conf in any case.
(xxx: list of files probably should be totally configurable, but that's
another story). from [bin/13061] by matthew green.
2001-06-18 00:01:51 +00:00
jdolecek
ee882e3a09 Add port of high performance pipe implementation written by John S. Dyson
for FreeBSD project. Besides huge speed boost compared with socketpair-based
pipes, this implementation also uses pagable kernel memory instead of mbufs.

Significant differences to FreeBSD version:
* uses uvm_loan() facility for direct write
* async/SIGIO handling correct also for sync writer, async reader
* limits settable via sysctl, amountpipekva and nbigpipes available via sysctl
* pipes are unidirectional - this is enforced on file descriptor level
	for now only, the code would be updated to take advantage of it
	eventually
* uses lockmgr(9)-based locks instead of home brew variant
* scatter-gather write is handled correctly for direct write case, data
  is transferred by PIPE_DIRECT_CHUNK bytes maximum, to avoid running out of kva

All FreeBSD/NetBSD specific code is within appropriate #ifdef, in preparation
to feed changes back to FreeBSD tree.

This pipe implementation is optional for now, add 'options NEW_PIPE'
to your kernel config to use it.
2001-06-16 12:00:02 +00:00
nonaka
978de91e79 Fix big-endian vs. MBR parameters. 2001-06-15 18:49:37 +00:00
wiz
0f1cb57c85 Note usage of getbootfile(3); sort SEE ALSO section according to
mdoc.samples(7).
2001-06-13 23:24:32 +00:00
wiz
f91f11f51f Use getbootfile(3) instead of _PATH_UNIX by default.
Sprinkle some const.
2001-06-13 23:16:27 +00:00
fredette
48b3bae7e9 Enable edlabel on sun2, too. 2001-06-13 18:09:15 +00:00
mrg
55e0fea74f s/primary swap area/first swap area/ 2001-06-07 14:52:50 +00:00
wiz
ea23c08f2a Typos and grammar fixes (last part of misc/13133 by Michael K. Sanders) 2001-06-07 13:58:23 +00:00
wiz
cbd2a2a6a6 Drop trailing dot in Nd. 2001-06-05 12:46:08 +00:00
wiz
d12a675883 Fix Nd and some whitespace and punctuation. 2001-06-05 12:44:43 +00:00
wiz
821db49ac7 Remove some trailing whitespace. 2001-06-05 12:42:56 +00:00
wiz
b2935aaaf6 Drop argument of .Os. 2001-06-05 11:24:51 +00:00
wiz
73f545bb5b Drop arguments of .Os. 2001-06-05 11:22:41 +00:00
hannken
de85f7e43e Assign a saved copy of dt->fs_file to mountpoint. dt->fs_file will be freed
otherwise resulting in a wrong spcl.c_filesys .
2001-06-03 09:51:10 +00:00
thorpej
ca4d373730 Implement support for IP/TCP/UDP checksum offloading provided by
network interfaces.  This works by pre-computing the pseudo-header
checksum and caching it, delaying the actual checksum to ip_output()
if the hardware cannot perform the sum for us.  In-bound checksums
can either be fully-checked by hardware, or summed up for final
verification by software.  This method was modeled after how this
is done in FreeBSD, although the code is significantly different in
most places.

We don't delay checksums for IPv6/TCP, but we do take advantage of the
cached pseudo-header checksum.

Note: hardware-assisted checksumming defaults to "off".  It is
enabled with ifconfig(8).  See the manual page for details.

Implement hardware-assisted checksumming on the DP83820 Gigabit Ethernet,
3c90xB/3c90xC 10/100 Ethernet, and Alteon Tigon/Tigon2 Gigabit Ethernet.
2001-06-02 16:17:06 +00:00
lukem
9af1692ef1 * improve parsing of file-systems-to-dump when a path is given:
- if it's a path to an unmounted file-system listed in /etc/fstab, use
	that instead of assuming the user wanted a subtree dump of the parent
	directory. this restores the behaviour of dump before the subtree
	dumping code went in.
      - if it's a path to a mounted file-system which is not in /etc/fstab,
	use the info from getmntinfo(3). previously, dump would choke.
* implement error checked malloc(), calloc(), strdup(), and use
  appropriately (some of the calloc()s weren't being checked)
* use 'file-system' instead of 'filesystem' in the man page
2001-05-28 01:09:54 +00:00
lukem
cc5935ebba unifdef !__STDC__ (missed in previous) 2001-05-28 00:41:14 +00:00
lukem
713ffa0ec4 more KNF 2001-05-27 15:07:34 +00:00
lukem
99feaf5b29 knf to ansi 2001-05-27 14:17:56 +00:00
christos
7956951247 - KNF printlabel.c
- add a function to print only one partition's info.
- print the partition information if it was modified in interactive mode.
- improve on the chaining code. [still assumes that partition offsets increase
  monotonically]. We could check for overlap too.
2001-05-26 19:48:32 +00:00
lukem
e7bcd6bf17 use strdup appropriately 2001-05-26 07:48:15 +00:00
bouyer
1047a6a764 Adapt for MODE SENSE/SELECT changes in kernel. 2001-05-15 15:11:02 +00:00
tron
b82fe09a8d Add "e" option to usage message. Problem pointed out by Takahiro Kambe
in private e-mail.
2001-05-12 10:26:22 +00:00
tron
b72a1f53d6 Fix bug in new "e" option: only eject tape if it is full, not if the dump
was finished.
2001-05-12 08:03:01 +00:00
itojun
8306609bc4 correct -n handling. 2001-05-09 11:22:22 +00:00
itojun
219df672ab fix signal handling on ping6 -f <nonexisting peer>. from hash@iij.ad.jp.
sync with kame
2001-05-09 11:19:13 +00:00
tron
d6be44d3c8 Add a new option "e" to "dump" which allows to eject tapes automatically
if a tape change is required.
2001-05-07 21:17:48 +00:00
kleink
017a840cd9 getopt(3): EOF -> -1. 2001-05-07 14:51:46 +00:00
simonb
1547b056d0 If the position of the formatted panic string can be found in the
message buffer, use that instead of the raw panic string.

Suggested by Jason Thorpe eons ago.
2001-05-06 13:36:51 +00:00
wiz
bd49a98652 Improve wording of a sentence. misc/10893 by Jim Bernard, part 2. 2001-05-06 12:30:05 +00:00
wiz
ccb6f40539 Improve usage of `comprise' according to Webster and misc/10893
by Jim Bernard.
2001-05-06 12:29:18 +00:00
fvdl
60f029933e Remove BUGS section, which only referred to performance tuning.
Instead, add a PERFORMANCE section which explains the most common
optimizations.
2001-05-02 12:18:45 +00:00
lukem
49137c3ddc clarify that -w updates the in-core label if changed, and if -r is
given as well, the on-disk label will then be updated.
2001-05-01 11:51:21 +00:00
itojun
cb58c8c6b6 make -A a default. present MAC adderss on all ifconfig operations. 2001-04-28 04:11:10 +00:00
itojun
7d54359fb0 assume the presense of getifaddrs(3). 2001-04-28 00:00:06 +00:00
manu
e0e227f2a3 Added a few examples and a reference to sysctl to enable IP forwarding
Approved by Christos
2001-04-27 19:33:06 +00:00
itojun
59ba739cf6 sync usage() more to the reality. document alias/-alias. 2001-04-27 09:10:04 +00:00
itojun
be4c7a7c16 allow ifconfig to take "deprecated" and "-deprecated" for IPv6. sync with kame
sync usage() with reality.  take "up" and "down" outside of "[af ...],
as "up" and "down" are independent from interface address configuration.
2001-04-27 09:08:44 +00:00
wiz
09fc203c72 Add arch to Dt, and lots of whitespace fixes. 2001-04-21 14:44:13 +00:00
ad
bd8e0b62fb Let '\377' be whitespace. 2001-04-17 13:31:00 +00:00
lukem
f5cf87f961 add fix by Minoura Makoto to correctly support recursive extended partitions.
the offset of an extended sub-partition is the offset of the top-level
extended partition, not the partition before it (this is annoying, and
makes `clean' recursive mbr descent difficult).  fixes PRs 11829 and 12677.
2001-04-16 10:47:15 +00:00
itojun
5b3c802193 sync with if_lmcioctl.h change.
From: Bernd Ernesti <netbsd@arresum.inka.de>
2001-04-12 23:52:22 +00:00
agc
c286afd376 "It's" is short for "it is". The possessive pronoun is "its". 2001-04-11 15:17:51 +00:00
mrg
32aec0200a add a section on swap priorities. document the round robin scheme.
fixes half of PR#12610.
2001-04-11 14:10:17 +00:00
wiz
8e78c80273 Make WARNS=2 safe, and set WARNS to 2. 2001-04-06 16:52:41 +00:00
wiz
14dbdf5518 Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.
2001-04-06 11:13:45 +00:00
jhawk
5e3565be65 Xr icmp(6), inet(6), ip(6) 2001-04-03 14:06:31 +00:00
jhawk
1277f0fe42 Xr icmp(4), inet(4), ip(4) 2001-04-03 14:00:09 +00:00
jdolecek
4fe147ddbf xref se(4) now that the manpage is built and installed 2001-04-03 11:51:33 +00:00
wiz
6fccda72ed Don't xref format(8) -- the man pages we have for it (hp300/vax) don't
seem very interesting at all, if not even obsolete.
Whitespace fixes while I'm here.
2001-04-03 11:21:57 +00:00
wiz
b258a384eb Add section to .Xr. 2001-04-03 11:19:54 +00:00
wiz
dd7acb43b8 Don't xref nonexisting se(4). 2001-04-03 11:18:53 +00:00
wiz
2d48dd26ee Xref send-pr 1, not 8. Whitespace fixes while I'm here. 2001-04-03 11:17:31 +00:00
wiz
7919f2a9a1 Don't xref gated(8) and htable(8), which we don't have. 2001-04-03 11:16:27 +00:00
wiz
4bb6958546 Xref rc.conf 5, not 8. Whitespace fixes while I'm here. 2001-04-03 11:09:01 +00:00
wiz
93709797b6 Xref newfs_lfs instead of newlfs; whitespace fixes while I'm here. 2001-04-03 11:07:50 +00:00
wiz
f53dfc72b2 Xref exit 3, not 2. Whitespace fixes while I'm here. 2001-04-03 11:06:20 +00:00
ad
93e3741265 Remove superfluous newlines in calls to errx(). 2001-04-01 14:59:56 +00:00
drochner
98e00988ad Don't error out if the mbr cannot be read.
This makes "disklabel cd0" working also on platforms with MBR support.
2001-03-29 12:18:32 +00:00
itojun
4b72eeeee5 net.inet.ip.maxfragpackets defines the maximum size of ip reass queue
(prevents fragment flood from chewing up mbuf memory space).
derived from KAME net.inet6.ip6.maxfragpackets.
2001-03-27 02:24:38 +00:00
drochner
07c471d18e Do the last fix correctly: round the beginning of the .data segment,
otherwise an unaligned address gets passed to the linker. (which is
rounded there, so this is harmless)
XXX how about passing "-N" and killing all these hacks?
2001-03-26 15:50:20 +00:00
tsutsui
4dc9a92b20 Make and install ldconfig on ELF m68k ports. 2001-03-21 14:54:39 +00:00
itojun
dc50d8510a examples. suggested by deraadt. sync with kame 2001-03-19 06:56:56 +00:00
thorpej
39dcc60032 Add a chkconfig(8) utility for managing rc.conf.d settings. Written
by Dan Mercer <dmercer@zembu.com>, inspired by the similar command that
appears in IRIX.
2001-03-14 03:51:46 +00:00
itojun
0a6cee32ec -Q is not there. some comsetic sync with kame. NetBSD PR 12384. 2001-03-12 03:42:17 +00:00
christos
4fea751ddc sync with version 2.24. Vernon says:
The most significant [fix] involves so called "remote" interfaces
configured in the kludge file to with what appear to be colliding
networks.  Edward Mascarenhas <eddiem@vihar.engr.sgi.com> found
the problem and the fix, and I think has tested it in the SGI
network.
2001-03-10 23:52:45 +00:00
chs
83d071a318 add UBC memory-usage balancing. we track the number of pages in use for
each of the basic types (anonymous data, executable image, cached files)
and prevent the pagedaemon from reusing a given page if that would reduce
the count of that type of page below a sysctl-setable minimum threshold.
the thresholds are controlled via three new sysctl tunables:
vm.anonmin, vm.vnodemin, and vm.vtextmin.  these tunables are the
percentages of pageable memory reserved for each usage, and we do not allow
the sum of the minimums to be more than 95% so that there's always some
memory that can be reused.
2001-03-09 01:02:10 +00:00
fair
676026bddb Clarify the description of "preen" mode, per PR 12110 2001-03-07 23:48:54 +00:00
thorpej
6f05b85270 Make this manual page a lot more helpful. 2001-03-06 20:12:33 +00:00
aymeric
93564fe83d Move reference to article on soft-updates from tunefs.8 to mount_ffs.8
OK'd by Ignatios.
2001-03-05 23:18:09 +00:00
ad
edb647f542 Fix typo. 2001-03-02 17:57:34 +00:00
itojun
db6f3bcf39 whitespace at EOL 2001-03-01 08:35:16 +00:00
itojun
b57caf4727 on "tunnel" subcommand, use specified address family. 2001-03-01 08:34:10 +00:00
is
9b2152236c error code formatting 2001-02-25 20:41:43 +00:00
is
22bb5ac981 Note that the ados fs is read-only, and that mount_ados falls back to
read-only mounts now.
2001-02-25 20:37:15 +00:00
christos
b58136d76c PR/12275:Kimmo Suominen: show -C in usage 2001-02-23 19:49:54 +00:00
christos
28e741ef5e fix compile errors. 2001-02-23 07:51:41 +00:00
is
05378de234 Silently fall back to read-only mounting, when we get EROFS.
We do not want to enforce read-only mounting (like mount_iso does)
because we want to write adosfs writing code eventually.
2001-02-22 21:34:57 +00:00
cgd
d7666f6c7f use getprogname() 2001-02-20 23:22:49 +00:00
itojun
1e48b7fbb5 add SIOC[SG]LIFPHYADDR ioctl. greatly simplify tunnel address settings.
sync with kame.  old ioctls are supplied but not recommended for new code.
2001-02-20 15:35:19 +00:00
bjh21
0009ba56a7 Add a dependency on libm. 2001-02-20 00:15:56 +00:00
cgd
8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
tsutsui
899149f1e5 Add x_mount, which does not include any MOUNT_PROGS.
Installer does not require all vfs progs and all binaries
are crunched after all.
2001-02-18 06:15:48 +00:00
lukem
ed9bdbd8b9 - remove unused arg to getparts()
- clean up WARNS=2 problems
- implement getshort()
- use getshort() with MBR_MAGICOFF to test if the magic number is OK, rather
  than using hard-coded magic numbers
2001-02-18 03:36:07 +00:00
thorpej
617bd311bc Add a "deleteall" command that takes a src/dst/protocol. 2001-02-16 23:55:05 +00:00
minoura
2fafdf112c Descend to mount_* subdirs when cleandir, in addition to clean and distclean. 2001-02-14 14:21:08 +00:00
ad
a42efe450c Fix typo. 2001-02-11 13:04:22 +00:00
itojun
22b473e0f6 during ip6/icmp6 inbound packet processing, do not call log() nor printf() in
normal operation (/var can get filled up by flodding bogus packets).
sysctl net.inet6.icmp6.nd6_debug will turn on diagnostic messages.
(#define ND6_DEBUG will turn it on by default)

improve stats in ND6 code.

lots of synchronziation with kame (including comments and cometic ones).
2001-02-07 08:59:47 +00:00
christos
180360ac44 remove redundant decl 2001-02-04 21:56:11 +00:00
christos
df49c4a876 fix nested extern 2001-02-04 21:53:39 +00:00
christos
aceee3f06d fix redundant decls 2001-02-04 21:52:02 +00:00
christos
93292f2f1a revert previous change; not needed. 2001-02-04 21:38:34 +00:00
christos
abc5ad9724 fix nested extern 2001-02-04 21:38:01 +00:00
christos
b9140b5b9f restore needs the rcmd operations. 2001-02-04 21:37:29 +00:00
christos
91a0880aad fix redundant decls 2001-02-04 21:33:19 +00:00
christos
566662ba06 remove redundant declarations 2001-02-04 21:25:54 +00:00
christos
422d686664 fix nested extern and duplicate declarations 2001-02-04 21:19:34 +00:00
christos
3aed6f1e40 avoid redundant declaration 2001-02-04 21:16:59 +00:00
christos
a2c613b344 fix nested extern 2001-02-04 21:14:32 +00:00
christos
252e11ea2b fix nested extern. 2001-02-04 21:13:12 +00:00
christos
f156d24d3f fix nested extern 2001-02-04 21:11:47 +00:00
christos
55692aa513 remove nested externs. 2001-02-04 21:09:07 +00:00
christos
e2571306fb remove redundant prototypes. 2001-02-04 21:05:42 +00:00
christos
a84f9073c7 fix nested extern 2001-02-04 20:09:40 +00:00
christos
158632e207 ifix nested extern. 2001-02-04 20:08:24 +00:00
christos
1e41af421a remove redundant declaration 2001-02-04 20:06:51 +00:00
christos
f0cf3bcdfb fix nested externs 2001-02-04 20:05:20 +00:00
christos
ccc59bf1d7 fix nested extern. While I am here assign copyright to TNF. 2001-02-04 20:04:02 +00:00
christos
8358095fd4 remove redundant declarations and nested externs. 2001-02-04 19:59:37 +00:00
christos
ee002727d9 fix nested extern 2001-02-04 19:54:56 +00:00
itojun
ad65d3d893 correct recvmsg() validation. 2001-02-04 00:35:20 +00:00
thorpej
cab4d17202 Sprinkle some const. 2001-01-28 00:59:26 +00:00
oster
705631a231 Move parts of a RAID type mapping table from rf_layout.c to rf_configure.c.
This means we don't need to compile or link with rf_layout.c here.
2001-01-27 19:32:47 +00:00
itojun
08087050ed support -cloned command line flag.
i don't think anyone ever going to use it.
2001-01-27 04:53:13 +00:00
itojun
6a04f28b13 regen 2001-01-27 04:51:25 +00:00
itojun
16595a06cf add a keyword, cloned 2001-01-27 04:51:17 +00:00
itojun
fee00b1a78 mark cloned routes with RTF_CLONED. present it with netstat -r by "c".
let static routes overwrite cloned routes, as cloned routes can come back again
if necessary.  behavior same as freebsd/bsdi, code partially from bsdi42.
(NRL rt->rt_parent was not added)
should fix PR 11916 and maybe some other PRs with ARP behavior.

recompilation of usr.sbin/route6d is suggested.
2001-01-27 04:49:31 +00:00
itojun
ad678343e6 support RTF_BLACKHOLE.
XXX route show is total duplicate of netstat -r, we need to either remove
route show, or share the same source code, otherwise maintenance cost
bites (and is biting) us
2001-01-27 04:26:49 +00:00
itojun
d9196c1881 remove use of uninitialized route (struct ortentry).
it seems that the bug was born during 4.3reno -> 4.4Lite1 transition.
2001-01-27 03:20:29 +00:00
hubertf
331005f88b Document that there's currently no registry for vendor sysctls.
After discussion with John Hawkinson and Frank van der Linden.
2001-01-26 21:13:23 +00:00
thorpej
9c45d4b02d In pass 5, check alternate superblocks for consistency with
the current in-core master superblock, and fix them up if
they're incorrect.  Move the code that writes the alternate
superblocks if (cvtlevel || doswap) into pass 5 for efficiency.

Reviewd by Charles Hannum, and used by me to fix up a curdled
file system.
2001-01-26 17:37:16 +00:00
itojun
e42b253d93 more simpler signal handling. be more friendly with 4.3BSD-ish socket API
(linux/USAGI folks are using the code).  sync with kame.
2001-01-26 13:18:45 +00:00
enami
cdf90f8e31 Remove incorrect advice for lint; the control may return from panic(). 2001-01-24 23:14:04 +00:00
garbled
b17f8c01fa Fix the usage string so it displays the -b and s options to ifconfig -l 2001-01-24 18:06:51 +00:00
mycroft
1fa165bd82 Fix a rather glaring byte-swapping bug: di_size is 64 bits, not 16. 2001-01-23 02:35:51 +00:00
enami
2efd21a284 If possible, detect more case that file is missing on the tape.
XXX we still may lose if a file of highest inode number requested
XXX to extract was missing or one of multiple dump tape is lost.
2001-01-18 08:59:23 +00:00
fvdl
93beca224d Fix spelling. 2001-01-17 11:58:33 +00:00
fvdl
6129a28444 Document -o linux option. 2001-01-17 11:57:54 +00:00
itojun
b3705ee26f unbroken slash notation (10.0.0.0/8) for IPv4. 2001-01-17 06:10:37 +00:00
itojun
f3a31dc12d support "prefixlen n" for IPv4 too. 2001-01-17 06:07:32 +00:00
fvdl
a7fede800b Add handling of -o linux. 2001-01-17 00:09:54 +00:00
cgd
d594ce939b comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
cgd
09995c7b56 generated source should include stdlib.h and string.h for prototypes. 2001-01-16 02:37:35 +00:00
itojun
7846de58b2 specify interface by using interface index (set/getsockopt with 0.0.0.0/8). 2001-01-15 13:19:12 +00:00