summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Allow ipfw to forward to a destination that is specified by a table.julian2006-08-172-11/+60
| | | | | | | | | | | | | | | | | for example: fwd tablearg ip from any to table(1) where table 1 has entries of the form: 1.1.1.0/24 10.2.3.4 208.23.2.0/24 router2 This allows trivial implementation of a secondary routing table implemented in the firewall layer. I expect more work (under discussion with Glebius) to follow this to clean up some of the messy parts of ipfw related to tables. Reviewed by: Glebius MFC after: 1 month
* Bump the document date. s/dhclient/.Nm/brian2006-08-171-4/+7
| | | | Suggested by: ru
* Correct usage()brian2006-08-171-1/+1
|
* Add a -p switch to dhclient. The switch tells dhclient to persistbrian2006-08-172-5/+20
| | | | | | | | | | despite the interface link status. Add dhclient_flags_iface and background_dhclient_iface rc.conf options. (where iface is a specific interface). These can be used to give interface specific flags to dhclient. Reviewed by: brooks@
* Regularly scheduled patch to unbreak regularly scheduled post-ipfilterkan2006-08-171-1/+1
| | | | | | | buildworld breakage. Exclude loglevel.c from the build. It does not appear to be used by anything in the tree and buildworld succeeds just fine without it.
* Take IP_FIREWALL_EXTENDED out of the man page too.julian2006-08-171-8/+0
| | | | MFC after: 1 week
* Clarify documentation of '-L' command line switch: the snapshot isthomas2006-08-161-1/+2
| | | | | | | | | unlinked as soon as the dump starts (and removed when the dump is completed, and the dump process exits). Previous wording was confusing because users might expect the snapshot to be visible in the .snap subdirectory while dump is running. MFC after: 1 week
* Adapt to ipf 4.1.13guido2006-08-161-2/+2
|
* If rawname returns NULL, deal with it appropriately.mjacob2006-08-151-0/+2
| | | | | | PR: 94045 Submitted by: Andrey Elsukov MFC after: 1 week
* Fix printing of integer Kelvins broken in rev. 1.71, which isru2006-08-151-3/+3
| | | | | | fatal on sizeof(int) != sizeof(long) systems (such as amd64). MFC after: 1 day
* Print packet loss figures with one decimal place. ping6 already doesdd2006-08-141-4/+4
| | | | | this, and OpenBSD and NetBSD pings do it too. This is primarily useful for comparing low levels of packet loss.
* Add an extension to the UINT & ULONG types. The XINT & XLONG types behaveobrien2006-08-121-2/+10
| | | | the same, except sysctl(8) will print out the values in hex.
* Restore the "plumb" compatibility command, which was lostyar2006-08-121-0/+1
| | | | due to the recent change by sam@ to clone operations in ifconfig(8).
* fixup list station support:sam2006-08-101-4/+23
| | | | | | o add sanity check to avoid possible looping o use intended api for IEEE80211_IOC_STA_INFO o when operating in sta mode get the sta info for the ap
* o Spell.maxim2006-08-101-1/+1
| | | | Submitted by: ru
* o Strip eol whitespaces.maxim2006-08-091-2/+2
|
* o New sentence, new line.maxim2006-08-091-2/+3
| | | | o Touch Dd for -r.
* Allow geli to operate on read-only providers.pjd2006-08-092-4/+7
| | | | | Initial patch from: vd MFC after: 2 weeks
* Add missing #.pjd2006-08-071-1/+1
|
* Eliminate a pair of unneeded parentheses slipped in from previous version ofmarck2006-08-061-1/+1
| | | | | | fix. Noticed by: ru
* strlen(3) returns size_t, which is not strictly equivalent to int an 64-bitmarck2006-08-061-3/+4
| | | | | | | archs, hence printf(3) warning. Fix this. Noticed by: tinderbox Approved by: rse
* Use the SLIST_NEXT macro instead of sle_next.stefanf2006-08-051-2/+2
| | | | Checked with: cmp(1)
* Do not pass-through the tailing newline character from the ctime(3)rse2006-08-051-3/+5
| | | | | | | | output to setproctitle(3) in order to get rid of the ugly two-character escape sequence "\n" in the ps(1) output of a dump(8) process: << [...] finished in 0:00 at Sat Aug 5 14:44:39 2006\n (dump) >> [...] finished in 0:00 at Sat Aug 5 14:44:39 2006 (dump)
* Use floating point instead of hacking something together. Suggested bynjl2006-08-041-10/+8
| | | | | | bde@. Fix nearby int conversion and a couple style bugs. MFC after: 1 day
* Block a variety of signals which may afffect reboot(8), before killingbms2006-08-021-2/+15
| | | | | | | | | | init(8), to avoid losing a race to them and dying before being able to call reboot(2). PR: bin/64664 Submitted by: maxim Obtained from: NetBSD MFC after: 30 days
* Block SIGHUP before killing init(8), to avoid a race condition which maybms2006-08-021-3/+3
| | | | | | | | kill the current process and hang the system when attempting reboot. PR: bin/64664 Reviewed by: ssouhal, phk (historic) MFC after: 30 days
* Add eye candy while I'm here: a blank line betweenyar2006-07-271-0/+1
| | | | the license and the $FreeBSD$ line.
* INET6 has no effect on rtsol, it's an IPv6-only tool with itsyar2006-07-271-7/+0
| | | | | | | | code independent of the macro. This utility is just omitted from the build as a whole by ../Makefile if MK_INET6 is set to false. Pointed out by: ume Tested with: cmp(1)
* rtsol is just a stripped-down version of rtsold and as such it shouldyar2006-07-271-1/+2
| | | | | | be built only if MK_INET6 is true: it's specific to IPv6. Pointed out by: ume
* These IPv6-only tools have no explicit dependency on the INET6 macro.yar2006-07-271-1/+1
| | | | Tested with: cmp(1)
* Obey MK_INET6_SUPPORT.yar2006-07-273-9/+28
| | | | This is also a good chance to apply style.Makefile(5) in some cases.
* add beacon miss threshold controlsam2006-07-262-1/+29
| | | | | Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk> MFC after: 2 weeks
* Specify correct argument range for tag/untag keywords.oleg2006-07-251-2/+2
| | | | Approved by: glebius (mentor)
* Fix printing of negative decimal values in Kelvin to Celsius conversion.njl2006-07-251-2/+6
| | | | MFC after: 3 days
* style.Makefile(5): Remove -Wall from CFLAGS.stefanf2006-07-171-1/+1
|
* Remove duplicated assignment.stefanf2006-07-171-1/+0
|
* Teach mount(8) about a 'late' keyword, which means the file system shoulddes2006-07-122-7/+38
| | | | | | | | | | | | | | | | | | not be mounted unless the -l flag was specified. Add an rc script, mountlate, which basically runs 'mount -a -l'. It runs after DAEMON but before LOGIN. This is useful for things like loopback mounts, because mountcritremote runs before mountd / nfsd (since /usr might be a remote file system), so an attempt to mount a loopback network file system in mountcritremote will fail. Also add a progress message to mountcritlocal, for the sake of symmetry with similar messages in mountcritremote and mountlate. Reviewed by: freebsd-rc MFC after: 3 weeks
* o replace special handling of clone operations by a clone callbacksam2006-07-094-100/+127
| | | | | | | mechanism o change vlan cloning to use callback and pass all vlan parameters on create using the new SIOCREATE2 ioctl o update vlan set logic to match existing practice
* Fix cut-n-paste bug: compare argument s against known aliases,marcel2006-07-071-6/+6
| | | | | not the global optarg. This bug goes unnoticed because optarg is so far always the actual argument for the formal argument s.
* Send client identifier unconditionally. My ancient D-Link router responsejkim2006-07-031-4/+0
| | | | | | | | | with NACK if I don't set it. Setting 'option dhcp-client-identifier' is alternative but it is inconvenient because I have to keep the list of all MAC addresses. As bin/94743 pointed out, it is always sent from Windows clients and I found Mac OS X does the same. OK'd by: brooks
* remove display of the ERP ie from the list sta output (it's alwayssam2006-06-232-5/+55
| | | | | | zero); replace it with station capabilities MFC after: 1 month
* Improve support for Intel based Macs:marcel2006-06-223-2/+12
| | | | | o Accept hfs as partition type. o Print Apple HFS partitions using a friendly name.
* Move the duplicated logic of parsing partition types into a newmarcel2006-06-225-57/+56
| | | | function called parse_uuid().
* Import interface groups from OpenBSD. This allows to group interfaces inmlaier2006-06-193-1/+208
| | | | | | | | order to - for example - apply firewall rules to a whole group of interfaces. This is required for importing pf from OpenBSD 3.9 Obtained from: OpenBSD (with changes) Discussed on: -net (back in April)
* - Fail with an understandable error message if we cannot detect thesimon2006-06-181-2/+5
| | | | | | | | | | | | | | | | sector size, instead of later failing with an error about /boot/mbr not being a multiple of the sector size (since we end up with an assumed sector size of MAX_SEC_SIZE * 2). - We query the sector size via an IOCTL anyway, so if that succeeds use that instead of probing for it via read(2) calls. This fixes the problem with fdisk failing to operate on at least graid3 and md(4) devices on kernels with src/sys/geom/geom_dev.c before rev. 1.90, due to fdisk failing to detect the sector size. - When detecting the root device allow "/" characters in it, which happens with e.g. gmirror devices. Reviewed by: cperciva MFC after: 1 week
* Add support of 'tablearg' feature for:oleg2006-06-152-80/+128
| | | | | | | | | | | | | | | | | | | - 'tag' & 'untag' action parameters. - 'tagged' & 'limit' rule options. Rule examples: pipe 1 tag tablearg ip from table(1) to any allow ip from any to table(2) tagged tablearg allow tcp from table(3) to any 25 setup limit src-addr tablearg sbin/ipfw/ipfw2.c: 1) new macros GET_UINT_ARG - support of 'tablearg' keyword, argument range checking. PRINT_UINT_ARG - support of 'tablearg' keyword. 2) strtoport(): do not silently truncate/accept invalid port list expressions like: '1,2-abc' or '1,2-3-4' or '1,2-3x4'. style(9) cleanup. Approved by: glebius (mentor) MFC after: 1 month
* o Revert a previous delta as strlcpy(3) operates with NUL-terminatedmaxim2006-06-141-1/+2
| | | | | strings and cp is not. Fix logic in the original code and eliminate core dumps on lines without '\n'.
* o Replace (an incorrect) string copy gymnastics with strlcpy(3).maxim2006-06-141-2/+1
| | | | | | PR: bin/98905 Submitted by: Fabian Keil MFC after: 1 week
* o Fix typo.maxim2006-06-111-1/+1
| | | | Obtained from: DragonFlyBSD
* Fix a typo s/Made/Make. Use .Pp for a line break, it will quiet thetrhodes2006-06-101-2/+2
| | | | mdoc(7) warning.
OpenPOWER on IntegriCloud