summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-013-3/+3
|
* mdoc(7) police: fix markup.ru2001-10-011-56/+27
|
* *** empty log message ***obrien2001-10-011-3/+4
|
* Enable bug-for-bug compatibility with mount_mfs when the programiedowse2001-09-302-5/+7
| | | | | | | | | | name is "mount_mfs" or "mfs". Previously, the condition was that the program name must start with "mount_", but this both missed the case where mount(8) invokes mdmfs with argv[0] = "mfs", and it included cases such as "mount_md" where compatibility is not required. Reviewed by: dd
* Don't require that the special/filesystem argument translates intoiedowse2001-09-301-5/+4
| | | | | | | | | | | a block or character device; the rest of tunefs works just fine on filesystem images in regular files. Instead, if getfsfile() failed and if the specified filesystem is a directory then print a more useful "unknown file system" error. Also, _PATH_DEV already contains a trailing slash, so don't add another one when constructing a device path, and use errx() instead of err() in a case where errno is meangingless.
* now that jlemon has added a hash table to lookup locally configured ipbillf2001-09-291-3/+2
| | | | | | | | addresses (and the macros that ipfw(4) use to lookup data for the 'me' keyword have been converted) remove a comment about using 'me' being a "computationally expensive" operation. while I'm here, change two instances of "IP number" to "IP address"
* Two main changes here:luigi2001-09-272-36/+102
| | | | | | | | | | | | | | | + implement "limit" rules, which permit to limit the number of sessions between certain host pairs (according to masks). These are a special type of stateful rules, which might be of interest in some cases. See the ipfw manpage for details. + merge the list pointers and ipfw rule descriptors in the kernel, so the code is smaller, faster and more readable. This patch basically consists in replacing "foo->rule->bar" with "rule->bar" all over the place. I have been willing to do this for ages! MFC after: 1 week
* The -A option (beep when packets are dropped) didn't work quiteiedowse2001-09-252-5/+12
| | | | | | | | | | | | | right; after a single packet was dropped it beeped after every transmission. Change its implementation to only output a bell when there is an increase in the maximum value of the number of packets that were sent but not yet received. This has the benefit that even for very long round-trip times, ping -A will do roughly the right thing after a few inital false-positives. Reviewed by: ru
* o Reduce userland inclusion of kernel headers -- remove unneeded includerwatson2001-09-241-1/+0
| | | | | | of <sys/mbuf.h>. Reviewed by: jlemon
* A bunch of minor changes to the code (see below) for readability, code sizeluigi2001-09-201-8/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and speed. No new functionality added (yet) apart from a bugfix. MFC will occur in due time and probably in stages. BUGFIX: fix a problem in old code which prevented reallocation of the hash table for dynamic rules (there is a PR on this). OTHER CHANGES: minor changes to the internal struct for static and dynamic rules. Requires rebuild of ipfw binary. Add comments to show how data structures are linked together. (It probably makes no sense to keep the chain pointers separate from actual rule descriptors. They will be hopefully merged soon. keep a (sysctl-readable) counter for the number of static rules, to speed up IP_FW_GET operations initial support for a "grace time" for expired connections, so we can set timeouts for closing connections to much shorter times. merge zero_entry() and resetlog_entry(), they use basically the same code. clean up and reduce replication of code for removing rules, both for readability and code size. introduce a separate lifetime for dynamic UDP rules. fix a problem in old code which prevented reallocation of the hash table for dynamic rules (PR ...) restructure dynamic rule descriptors introduce some local variables to avoid multiple dereferencing of pointer chains (reduces code size and hopefully increases speed).
* Deal with nfs server module changes for autoloading.peter2001-09-201-9/+4
|
* Deal with module name changes and autoloading.peter2001-09-201-15/+8
|
* Non-decimal ``skipto'' rule numbers are meaningless.ru2001-09-191-1/+1
| | | | | Noticed by: "Marc G. Fournier" <scrappy@hub.org> MFC after: 3 days
* Userland part of nfs client/server split and cleanup.peter2001-09-187-430/+25
|
* Split hwcsum into rxcsum and txcsum components.jlemon2001-09-181-3/+5
|
* Teach ifconfig about the new interface capability words.jlemon2001-09-181-1/+43
|
* fix savecore so that it works on the alpha after the size changegallatin2001-09-131-2/+2
| | | | | | | | | | of dumpmag from an int to a u_long in rev 1.41 -- without this change, savecore will always fail like this: #savecore -v /var/crash dumplo = 874356736 (1707728 * 512) savecore: magic number mismatch (8fca0101 != 8fca0101) savecore: no core dump
* Set BINOWN=root explicitly for setuid root binaries.ru2001-09-133-0/+3
| | | | | | This is not "useless", as one may have non-default setting for BINOWN in make.conf, and we still want these to be installed setuid root in this case.
* Use ${MACHINE}, it works with cross-builds.ru2001-09-121-4/+2
|
* mdoc(7) police: restore fix in rev. 1.52; .Dt should be in CAPITALS.ru2001-09-111-1/+1
|
* mdoc(7) police: restore the correct sorting of SEE ALSO.ru2001-09-111-1/+1
|
* mdoc(7) police: markup nits, improve -W option text,ru2001-09-111-5/+10
| | | | mount_msdos(8) is called mount_msdosfs(8) nowadays.
* Removed -M and -N from getopt(3) call as well.ru2001-09-111-1/+1
|
* Use a better stripe size in the examples.grog2001-09-091-12/+12
| | | | Noted by: Sean Eric Fagan <sef@kithrup.com>
* Stole unicode translation table from mount_msdos. Add kernel codesemenu2001-09-083-2/+85
| | | | | | to support this translation. MFC after: 2 weeks
* * Switch from doing compress(1)ed crashdumps with the -z flag to usingkris2001-09-063-40/+43
| | | | | | | | | | | gzip(1). gdb doesn't understand these, but then again it didn't understand compressed crashdumps either. * Change a stray lseek() into a Lseek() * Remove the extraneous prototype for log() which has apparently never existed in FreeBSD's sources Obtained from: NetBSD (partially) MFC after: 2 weeks
* Use CFLAGS, not COPTS, in the Makefile. bsd.prog.mk conveniently addsdd2001-09-052-3/+3
| | | | | | | | | COPTS towards the end of final CFLAGS so that it can be used to override Makefile and other defaults. Using it in Makefiles risks having options set using it clobbered when somebody uses it on the command line. Approved by: bde
* SECURITY.ru2001-09-055-117/+15
| | | | | | | | Notify operators using wall(1)'s -g option. Drop ``setgid tty'' privilege. Obtained from: OpenBSD MFC after: 1 month
* The defaults for bsize and fsize were interchanged.ru2001-09-052-8/+8
| | | | PR: docs/30330
* Don't reinvent the wheel; use strptime(3).ru2001-09-041-44/+4
| | | | MFC after: 2 weeks
* mdoc(7) police: removed hard sentence breaks.ru2001-09-041-6/+14
|
* Duh! forgot this bit of the NCCD patch.phk2001-09-043-152/+83
| | | | | Submitted by: sobomax Reviewed by: phk
* Mention collision attacks on MD5. From the md5(3) man page.murray2001-09-041-0/+6
| | | | | | PR: docs/14158 Reviewed by: kris Submitted by: Eric Frias <efrias@sg505.net>
* IPFilter source code in contrib/ipfilter apparently can't make up its mindjlemon2001-09-031-0/+1
| | | | | | | | | | where the headers should live, as the code references both "ip_fil.h" and "netinet/ip_fil.h" (among others). As a consequence, put both sys/contrib/ipfilter and sys/contrib/ipfilter/netinet to the include path so either variant works. PR: 29384 Pointed out by: Thomas.Quinot@Cuivre.FR.EU.ORG
* SECURITY: Drop `setgid kmem' bit as early as possible.ru2001-08-311-0/+2
|
* Synch with NetBSD and OpenBSD.ru2001-08-312-3/+2
| | | | | | | | | | Allow non-superuser to open, listen to, and send safe commands on the routing socket. Superuser priviledge is required for all commands but RTM_GET. Lose `setuid root' bit of route(8). Reviewed by: wollman, dd
* restore(8) doesn't need to be setgid `tty', and never did.ru2001-08-301-2/+0
| | | | | | | | | At the times, restore(8) and rrestore(8) were the different utilities. rrestore(8) was installed setuid `root', while restore(8) with usual ownership and privileges. Later on, on August 28, 1991 (what a coincidence!), rrestore(8) code was merged with restore(8). The setgid `tty' bit then was accidentally put.
* Banish hard-coded KERNBASE references from savecore. Dynamicallypeter2001-08-241-1/+15
| | | | adjust to whatever kernbase is in the kernel that we are dumping.
* ``create'' and ``destroy'' are command modifiers (.Cm), not flags (.Fl).yar2001-08-221-2/+2
|
* mdoc(7) police: Fixed broken xrefs.ru2001-08-221-1/+1
|
* Handle snprintf() returning < 0 (not just -1)brian2001-08-203-3/+7
| | | | MFC after: 2 weeks
* Handle snprintf() returning -1.brian2001-08-203-5/+9
| | | | MFC after: 2 weeks
* Fix grammar.dd2001-08-201-1/+2
|
* Respect the -N flag when changing directory attributes in setdirmode).dd2001-08-201-4/+6
| | | | | PR: 29671 Submitted by: Sascha Blank <sblank@addcom.de>
* Silence non-constant format string warnings by marking functionskris2001-08-1913-28/+28
| | | | | | | as __printflike()/__printf0like(), adding const, or adding missing "%s" format strings, as appropriate. MFC after: 2 weeks
* Actuall make plumb work in addition to create as per the manpage.brooks2001-08-171-1/+2
| | | | | PR: bin/29812 Submitted by: Joao Carlos Mendes Luis <jonny@eng05.embratel.net.br>
* mdoc(7) police: restore markup bit that got accidentally lost in rev. 1.44.ru2001-08-161-1/+1
|
* mdoc(7) police: replace `\*(Ba' with a simple `|', it's handled specially.ru2001-08-161-1/+1
|
* mdoc(7) police: Section cross-references are marked with .Sx.ru2001-08-161-3/+2
| | | | -compat is not a valid keyword.
* Implement a better compatibility mode with mount_mfs. It is thedd2001-08-162-6/+120
| | | | | | | | | | | | | | | | | default if the executable is named (called as) "mount_*", or can be enabled with the -C option. This allows users to leave their old fstab entires unchanged (modulo symlink'ing mdmfs to mount(md|mfs)) and have things behave the way they should (by emulating mount_mfs silliness), while still allowing mdmfs to be used as a generic make-an-md-and-mount-it type thing. Right now, the only effects of this option is to set the mount-point mode to 01777 as if "-p 1777" was given, and to complain about getting command-line options that mount_mfs didn't take (e.g., -X, -L, et al). The latter is mostly to try to catch operator errors. Also implement -U, which turns on soft-updates. It's redundant (since softdep is the default), but implement it anyway for compatibility.
OpenPOWER on IntegriCloud