Commit Graph

891 Commits

Author SHA1 Message Date
thorpej c18ae5ec1d Bring this in touch with reality. 1997-03-29 20:28:17 +00:00
thorpej e4a70a7f8f Use pathnames provided by <netinet/ip_fil.h> 1997-03-29 19:54:02 +00:00
thorpej 91d0b1474b Resolve conflicts from import of 3.2alpha2. 1997-03-28 21:54:38 +00:00
thorpej dbdde72e82 Add a "-l" flag, which lists available network interfaces, with no
additional information.
1997-03-27 22:50:09 +00:00
darrenr fe3bc025d0 Bring in entire 3.2alpha2 source tree 1997-03-27 15:13:58 +00:00
thorpej a285d77f82 Print the station address of interfaces that have one. From
Matt Thomas <matt@3am-software.com>
1997-03-26 01:46:49 +00:00
perry fd9be39827 fix 3128 from SAITOH Masanobu.
this consisted of nuking a duplicated paragraph; I did it slightly
differently than suggested.
1997-03-25 19:51:21 +00:00
thorpej 315d0c6cbb Display the correct interface name in the event SIOCGIFMEDIA "succeeds"
but doesn't return any media types.
1997-03-25 01:37:11 +00:00
christos d59123b39b - Makefile cleanups 1997-03-24 22:15:37 +00:00
christos 794ba0d372 Don't allow < 1 sec ping interval to regular users. 1997-03-24 03:34:26 +00:00
thorpej 66addb16d6 Fix a slight bogon in printing active/current media, from Matt Thomas. 1997-03-24 00:45:30 +00:00
fvdl 983e7c0af4 Use a reserved port by default. The -P option is now obsolete, but
kept for backward compatibility. The -p option was added to explicitly
NOT use reserved ports.
1997-03-23 20:59:56 +00:00
fvdl 4df5a6390b Checking for the use reserved ports by clients (both for mount/umount
and individual NFS requests) now depends on the '-noresport' option
in the exports file. Checking for reserved ports is the default.

The -n option has become obsolete but is maintained for backwards
compatibility.
1997-03-23 20:58:14 +00:00
christos 9c21b4d7f9 Try adding `o' option again; connection died. 1997-03-19 12:44:08 +00:00
christos 3696ff03af Take care of alignment problems on the alpha: From John Birell, via cgd. 1997-03-19 12:36:03 +00:00
lukem 8c5cee237e * use mkstemp() instead of mktemp()
* remove "register" qualifiers
1997-03-19 08:42:51 +00:00
christos f3703d3a82 Remove -g 1997-03-18 21:27:16 +00:00
christos 5a6005a07e Off by one. 1997-03-18 21:26:43 +00:00
christos 217f82764f PR/3329: From David Jones: Add F_ONCE 1997-03-18 19:06:51 +00:00
thorpej 797e996927 Fix lookup_media_word() to properly distinguish between the "autoselect"
media type and error.  (oops!)
1997-03-18 05:04:50 +00:00
thorpej af71bad528 Do that last change somewhat differently; We need to know the
currently selected media, and thus cannot allow E2BIG, since the
top-level kernel ioctl code won't perform the copyout of the
ifmediareq if it sees an "error".
1997-03-18 01:50:01 +00:00
thorpej 55e07c34a2 Ignore E2BIG in domediaopt() like we do in setmedia(). Oversight pointed
out by Andrew Gallatin <gallatin@CS.Duke.EDU>.
1997-03-18 00:37:34 +00:00
thorpej 4fcebbc43a Add support for BSD/OS-style media selection:
- new "media" keyword specified media to select:
		ifconfig de0 media utp
	- new "mediaopt/-mediaopt" keywords for setting/clearing
	  media options (such as full-duplex)
	- new "-m" flag to display all supported media types for
	  a given interface.
Also, some generial cleanup of argument parsing while I was there.
Manual page updates from Jeremy Cooper <jeremy@netbsd.org>.
1997-03-17 03:08:46 +00:00
lukem cb77572e20 use mkstemp() instead of mktemp() 1997-03-16 05:25:38 +00:00
perry e27abe4739 Nuke obsolete special case .if for amigas. 1997-03-14 22:49:51 +00:00
mycroft 7f2e03747e Insert some closelog()s, so we don't leave the syslog socket
on fd 0.
1997-03-14 00:44:35 +00:00
cgd 61d5abc37c string.h for protos 1997-03-14 00:00:26 +00:00
christos 9ee27f02a1 Fix PR/3327: rcvd_tbl index was assumed to be in host order, creating
incorrect dup reports. From enami tsugutomo
1997-03-13 16:19:10 +00:00
perry 204351f3a5 The boot_${ARCH}.8 man files never belonged in reboot -- they have
been moved to man8.${ARCH}/boot.8. Note that this means that the
references in the pages to boot.8 are now actually true on many
architectures instead of being a lie on all.
1997-03-13 04:04:54 +00:00
christos b9f439f21f Fix PR/3322, reference to non existant program. 1997-03-12 13:57:51 +00:00
christos fe4e4bb7a5 - remove -g from Makefile
- fix setsockopt and recvfrom casts.
1997-03-11 21:53:41 +00:00
christos 203dfd3486 - Use err, warn, errx
- Don't use floor, because we would need libm
- Add maxwait option from old ping
- Add a centralized gethost() to get hostnames
- Fix PR/1014 and PR/2017; (adds -D, -T options, and -I and -t for unicast)
- Document exit status
1997-03-11 21:22:49 +00:00
mikel d2057dd292 add support for MNT_NOATIME; from Lennart Augustsson in PR bin/3304. 1997-03-10 03:59:53 +00:00
christos 3d71dbfd9b fix reversed test for maxpartitions. 1997-03-09 00:35:44 +00:00
christos 649ae0edb1 Jason says: Use getmaxpartitions(3) to determine the number of partitions
allowed in this architecture.
1997-03-09 00:14:17 +00:00
christos 72fbacb380 Add -i (interactive mode to create/edit labels) inspired by the SunOS/Solaris
format/partition command.
1997-03-08 23:46:08 +00:00
cgd 245ccce34c Fix NetBSD RCS ID tag 1997-03-08 19:46:43 +00:00
mouse 80c0d60f84 alternate -> alternative, per PR 2643 1997-03-08 13:47:08 +00:00
christos 6c522b4c82 Added fsirand 1997-03-07 20:17:19 +00:00
christos 4de052219b First pass at fsirand. Needs /dev/random to do things right. 1997-03-07 20:16:39 +00:00
thorpej ee5ba12678 Don't get stuck in an infinite loop if the msgbuf index is 0 or 1, from
enami tsugutomo <enami@ba2.so-net.or.jp>, PR #3285.
1997-03-06 23:55:12 +00:00
christos af9e021593 Added newfs_msdos 1997-03-01 19:46:36 +00:00
christos d5fff03ed1 From FreeBSD's mkdosfs:
- KNF
	- cleaned up a few typos.
	- use the msdosfs header files.
	- separated Makefile and Makefile.boot, since we cannot build
	  bootcode.h (yet)
ToDo:
	- Make it work on hard disks; only works on floppies
	- Make it accept an msdos.sys io.sys and a command.com, to make
	  a real dos bootable disk.
1997-03-01 19:42:54 +00:00
mikel b31dfde1ef set bflag so that 'dump bd M N' works properly. fix from Juergen
Hannken-Illjes in PR bin/3254.
1997-02-27 06:17:23 +00:00
carrel 533cb559da Remove uid checks since the kernel now handles this and route(1) is no
longer setuid.
Document the "Permission denied" msg in the man page since this is
_slightly_ less clear than route(1)'s old error msg.
1997-02-22 21:22:24 +00:00
thorpej c7e33aad6c Now that non-superuser can open the routing socket, this program no
longer needs to be setuid-root.  Superuser status is required to
alter the routing table, but is enforced by the kernel.
1997-02-22 03:49:31 +00:00
thorpej dd72c4e12f If root has no password, don't lock the operator out of single-user
mode if the console is "insecure".
1997-02-22 02:19:51 +00:00
mikel 9b8074878a use += instead of = for CFLAGS 1997-02-21 07:47:49 +00:00
mrg 1cf9e54f49 link ipl.4 to ipfilter.4 1997-02-18 21:28:53 +00:00
mrg cda4cfcedd note that ipfilter also includes PFIL_HOOKS. 1997-02-18 21:28:19 +00:00
matthias d67f3db782 The pc532 port now uses the new libkvm. 1997-02-08 09:38:06 +00:00
christos e7512e5a5e - resolve conflicts.
- remove md5 stuff; it is in libc.
- define MCAST_PPP_BUG, until we fix if_ppp.c
1997-02-03 22:02:51 +00:00
christos 6cf225561b New version from ftp.sgi.com:sgi/src/routed.tar.Z 1997-02-03 21:06:26 +00:00
veego 8a514d0afa Remove the last change. fil.fr_icode ist char and NOT unsigned char.
Fix pr#3169
1997-01-31 10:10:11 +00:00
tls aeb2ee9ac9 add support for noatime mount flag 1997-01-30 09:56:10 +00:00
tls d0c43309b5 add support for noatime mount flag 1997-01-30 09:52:26 +00:00
thorpej 17aa7541b7 Add support to display the ccd-specific statistics kept by the ccd
driver.
1997-01-30 04:02:08 +00:00
mark ab4940de30 Cast -1 to an unsigned char for the test with fil.fr_icode as the fr_icode
field is declared as an unsigned char.
1997-01-29 18:39:47 +00:00
ws ac112dcf50 Shifting by 32 on a 32-bit machine is undefined
(and in fact -1 << 32 results in -1 on e.g. x86)
1997-01-29 12:07:26 +00:00
mark 2ab96deb9a Use an integer rather than a char for the getopt() return value in main()
in order to make it work with architectures that use unsigned chars.
1997-01-29 01:29:09 +00:00
perry b1998ea4df fix some nits from SAITOH Masanobu, pr-3149 1997-01-27 15:01:58 +00:00
mikel 8cd71f8b62 eliminate duplicate paragraph and fix typos; PR misc/3128 1997-01-23 06:34:39 +00:00
mikel 7f50ef911a eliminate possibility that execle() will be called with one too many
arguments.
1997-01-23 05:48:06 +00:00
perry ea9e41ab25 fix .I which should be .Em, from SAITOH Masanobu in pr-3109 1997-01-17 05:04:09 +00:00
perry 7665c8ee25 close pr-2717 from Manuel Bouyer <bouyer@lix.polytechnique.fr>
Replaces reference to hand patching securelevel kernel variable
with reference to options INSECURE.
1997-01-17 02:56:27 +00:00
perry 5714664cf5 fix pr 2977 -- only try to dump ufs/ffs partitions 1997-01-16 22:00:30 +00:00
cgd 7bd18db5e6 pointer cast fixups for 64-bit cleanliness 1997-01-14 06:47:10 +00:00
lukem 6c8a1cc329 don't call el_parse() if there's no commands (el_parse() now checks this,
but more safety is good)
1997-01-11 06:50:53 +00:00
lukem 5c9d30eb5f the editline(3) man page now exists (but not as libedit(3)) 1997-01-11 05:51:40 +00:00
tls 2ab9ccf105 it's a shame, but since we have no kernel support for kerb NFS (which may or may not be worth having, in the form available to us) this is how I'm closing PR #2469. 1997-01-09 09:43:51 +00:00
veego 21361a6567 Add ipf. 1997-01-08 21:58:34 +00:00
mrg eafab1cbd3 ipl -> ipfilter 1997-01-07 11:32:24 +00:00
mrg 3460d5fc46 update this for "pseudo-device ipl" 1997-01-05 14:53:55 +00:00
mrg 4810e839ab initial import of darren reed's ip-filter, version 3.1.2. 1997-01-05 13:06:38 +00:00
mrg b904481502 xref ld.so.conf.5 1997-01-05 12:07:53 +00:00
ws fdbcbfc254 Fix handling of clusters marked bad
Noted by Rafal Boni
1997-01-03 14:32:47 +00:00
mikel dd40c6d884 eliminate valueless return from main(); PR bin/3073. 1997-01-03 07:10:52 +00:00
mikel ca9a02b5b1 oops, missed a comma. 1996-12-27 05:53:53 +00:00
mikel d894f16336 fix reboot(8) xref 1996-12-27 05:51:14 +00:00
cjs ea04966433 Fix typo: PR bin/3059 1996-12-26 17:35:35 +00:00
mikel 8a207c6ea3 eliminate obsolete reference to mkfs(8);
from Klaus Klein <kleink@layla.inka.de>.
also fixed buggy -a flag lines, reference fsck_ffs(8) instead of fsck(8).
1996-12-26 04:37:18 +00:00
mikel 875986c568 eliminate obsolete references to mkfs(8);
from Klaus Klein <kleink@layla.inka.de>
1996-12-26 04:33:34 +00:00
mikel aff1970d41 remove mkfs(8) xref; PR 3041 1996-12-24 02:32:25 +00:00
cgd d9842e70b9 declare the keywords structure 'extern' in keywords.h, to avoid a common defn. 1996-12-16 19:53:02 +00:00
thorpej 8e41017b18 After passing the terminating NULL for the argv list to execle(),
don't forget the (NULL) envp.
From Lennart Augustsson <augustss@cs.chalmers.se>, PR #2737.
1996-12-11 04:05:21 +00:00
christos fa1d4fc6d7 PR/3002: bug in my previous commit. 1996-12-07 19:09:11 +00:00
christos 468b0bc4a8 PR/2975: fsck lies to children about their program name
PR/2979: fsck is not smart enough about filesystems not in /etc/fstab
1996-12-05 18:30:23 +00:00
mycroft 728e20590f Make sure to byte-swap all of the relevant fields; especially c_flags. 1996-12-04 03:54:04 +00:00
cgd bcaa5b7b1c When initializing 'fssize,' the size of the data buffer to be used when
writing data to the file system, if the "optimal" file system I/O
operation block size is less than TP_BSIZE, leave fssize alone (i.e.
at its default setting of MAXBSIZE).  This was causing restore's
stack to be trashed, because the end-of-buffer checking/flushing code
around line 680 would never notice that the buffer was full (because
it'd be comparing a buffer segment index, which would always be >= 1, to
fssize / TP_BSIZE, which could be zero in that case), and would keep
filling and filling and filling...
1996-11-30 18:31:29 +00:00
cgd a0c5caa042 patches from Tom I Helbekkmo <tih@nhh.no> to deal with type-size issues,
so this works (better, at least) on 64-bit machines (e.g. alpha).
1996-11-30 18:01:52 +00:00
mikel 957e75132e Fix typo; PR misc/2956. Also cleaned up .Nm usage. 1996-11-26 06:44:36 +00:00
pk b82932df85 sparc uses new savecore.c 1996-11-18 11:20:16 +00:00
gwr 6b2707d575 Note that distrib/utils/x_route uses these files. 1996-11-15 19:10:38 +00:00
gwr 786940dfb1 Remove comment that was no longer applicable. 1996-11-15 18:57:21 +00:00
gwr 13410f03ee As discussed some time ago, add a "show" sub-command.
Also allow compilation with -DSMALL to ommit support for
non-essential protocols (i.e. when built into a ramdisk).
Use a less hack-ish way to generate keywords.[ch] and just
check in the result (helps ../../distrib/utils/x_route).
1996-11-15 18:45:23 +00:00
gwr a54521537f As discussed some time ago, add a "show" sub-command.
Also allow compilation with -DSMALL to ommit support for
non-essential protocols (i.e. when built into a ramdisk).
Use a less hack-ish way to generate keywords.[ch] and just
check in the result (helps ../../distrib/utils/x_route).
1996-11-15 18:01:36 +00:00
perry 6af2a74574 Fix more cosmetic problems -- changed .Nm fsck to just .Nm (thats the
whole point of the .Nm macro), replaced naked "fsck"s with .Nm's,
fixed another "the the", and .Dq'ed the "no" in the -t
description. Note that the description of -t is still ambiguous --
needs to be cleaned up by someone like Christos that actually knows it
well.
1996-11-09 18:43:22 +00:00
lukem 8c7e6f0d43 fixed typos, from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp> in [misc/2924] 1996-11-09 01:49:54 +00:00
cgd b292e6cefd make ping(8) print out statistics when given a SIGINFO. 1996-11-06 20:42:14 +00:00
thorpej 12afd4fc11 - If rcmd() fails, don't do any of the setsockopt() calls.
- Since the TCP_MAXSEG setsockopt can only descrease the MSS, and never
  increase it, do an IP_TOS:IPTOS_THROUGHPUT setsockopt instead, since
  dump is a bulk transfer.
Submitted by Bill Fenner <fenner@parc.xerox.com>.
1996-11-05 23:59:01 +00:00