summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-153-11/+5
|
* style(9) tweakobrien2001-08-141-24/+24
| | | | Approved by: dd
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-1410-16/+43
|
* ftrace is already initializedpeter2001-08-131-1/+1
|
* Spell "FreeBSD" with "F" and "BSD" in uppercase.ru2001-08-134-4/+9
|
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-134-5/+0
|
* Honour `TMPDIR' environment variable.sobomax2001-08-131-3/+9
| | | | | | Reviewed by: ru Approved by: ru MFC after: 2 weeks
OpenPOWER on IntegriCloud