aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Allow ipfw to forward to a destination that is specified by a table.Julian Elischer2006-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 Notes: svn path=/head/; revision=161424
* Bump the document date. s/dhclient/.Nm/Brian Somers2006-08-171-4/+7
| | | | | | | Suggested by: ru Notes: svn path=/head/; revision=161417
* Correct usage()Brian Somers2006-08-171-1/+1
| | | | Notes: svn path=/head/; revision=161411
* Add a -p switch to dhclient. The switch tells dhclient to persistBrian Somers2006-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@ Notes: svn path=/head/; revision=161410
* Regularly scheduled patch to unbreak regularly scheduled post-ipfilterAlexander Kabaev2006-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. Notes: svn path=/head/; revision=161387
* Take IP_FIREWALL_EXTENDED out of the man page too.Julian Elischer2006-08-171-8/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=161382
* Clarify documentation of '-L' command line switch: the snapshot isThomas Quinot2006-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 Notes: svn path=/head/; revision=161362
* Adapt to ipf 4.1.13Guido van Rooij2006-08-161-2/+2
| | | | Notes: svn path=/head/; revision=161358
* If rawname returns NULL, deal with it appropriately.Matt Jacob2006-08-151-0/+2
| | | | | | | | | PR: 94045 Submitted by: Andrey Elsukov MFC after: 1 week Notes: svn path=/head/; revision=161333
* Fix printing of integer Kelvins broken in rev. 1.71, which isRuslan Ermilov2006-08-151-3/+3
| | | | | | | | | fatal on sizeof(int) != sizeof(long) systems (such as amd64). MFC after: 1 day Notes: svn path=/head/; revision=161313
* Print packet loss figures with one decimal place. ping6 already doesDima Dorfman2006-08-141-4/+4
| | | | | | | | this, and OpenBSD and NetBSD pings do it too. This is primarily useful for comparing low levels of packet loss. Notes: svn path=/head/; revision=161273
* Add an extension to the UINT & ULONG types. The XINT & XLONG types behaveDavid E. O'Brien2006-08-121-2/+10
| | | | | | | the same, except sysctl(8) will print out the values in hex. Notes: svn path=/head/; revision=161256
* Restore the "plumb" compatibility command, which was lostYaroslav Tykhiy2006-08-121-0/+1
| | | | | | | due to the recent change by sam@ to clone operations in ifconfig(8). Notes: svn path=/head/; revision=161248
* fixup list station support:Sam Leffler2006-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 Notes: svn path=/head/; revision=161147
* o Spell.Maxim Konovalov2006-08-101-1/+1
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=161142
* o Strip eol whitespaces.Maxim Konovalov2006-08-091-2/+2
| | | | Notes: svn path=/head/; revision=161133
* o New sentence, new line.Maxim Konovalov2006-08-091-2/+3
| | | | | | | o Touch Dd for -r. Notes: svn path=/head/; revision=161130
* Allow geli to operate on read-only providers.Pawel Jakub Dawidek2006-08-092-4/+7
| | | | | | | | Initial patch from: vd MFC after: 2 weeks Notes: svn path=/head/; revision=161127
* Add missing #.Pawel Jakub Dawidek2006-08-071-1/+1
| | | | Notes: svn path=/head/; revision=161052
* Eliminate a pair of unneeded parentheses slipped in from previous version ofDmitry Morozovsky2006-08-061-1/+1
| | | | | | | | | fix. Noticed by: ru Notes: svn path=/head/; revision=161025
* strlen(3) returns size_t, which is not strictly equivalent to int an 64-bitDmitry Morozovsky2006-08-061-3/+4
| | | | | | | | | | archs, hence printf(3) warning. Fix this. Noticed by: tinderbox Approved by: rse Notes: svn path=/head/; revision=161017
* Use the SLIST_NEXT macro instead of sle_next.Stefan Farfeleder2006-08-051-2/+2
| | | | | | | Checked with: cmp(1) Notes: svn path=/head/; revision=161001
* Do not pass-through the tailing newline character from the ctime(3)Ralf S. Engelschall2006-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) Notes: svn path=/head/; revision=161000
* Use floating point instead of hacking something together. Suggested byNate Lawson2006-08-041-10/+8
| | | | | | | | | bde@. Fix nearby int conversion and a couple style bugs. MFC after: 1 day Notes: svn path=/head/; revision=160963
* Block a variety of signals which may afffect reboot(8), before killingBruce M Simpson2006-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 Notes: svn path=/head/; revision=160916
* Block SIGHUP before killing init(8), to avoid a race condition which mayBruce M Simpson2006-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 Notes: svn path=/head/; revision=160914
* Add eye candy while I'm here: a blank line betweenYaroslav Tykhiy2006-07-271-0/+1
| | | | | | | the license and the $FreeBSD$ line. Notes: svn path=/head/; revision=160759
* INET6 has no effect on rtsol, it's an IPv6-only tool with itsYaroslav Tykhiy2006-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) Notes: svn path=/head/; revision=160758
* rtsol is just a stripped-down version of rtsold and as such it shouldYaroslav Tykhiy2006-07-271-1/+2
| | | | | | | | | be built only if MK_INET6 is true: it's specific to IPv6. Pointed out by: ume Notes: svn path=/head/; revision=160757
* These IPv6-only tools have no explicit dependency on the INET6 macro.Yaroslav Tykhiy2006-07-271-1/+1
| | | | | | | Tested with: cmp(1) Notes: svn path=/head/; revision=160755
* Obey MK_INET6_SUPPORT.Yaroslav Tykhiy2006-07-273-9/+28
| | | | | | | This is also a good chance to apply style.Makefile(5) in some cases. Notes: svn path=/head/; revision=160747
* add beacon miss threshold controlSam Leffler2006-07-262-1/+29
| | | | | | | | Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk> MFC after: 2 weeks Notes: svn path=/head/; revision=160687
* Specify correct argument range for tag/untag keywords.Oleg Bulyzhin2006-07-251-2/+2
| | | | | | | Approved by: glebius (mentor) Notes: svn path=/head/; revision=160661
* Fix printing of negative decimal values in Kelvin to Celsius conversion.Nate Lawson2006-07-251-2/+6
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=160658
* style.Makefile(5): Remove -Wall from CFLAGS.Stefan Farfeleder2006-07-171-1/+1
| | | | Notes: svn path=/head/; revision=160447
* Remove duplicated assignment.Stefan Farfeleder2006-07-171-1/+0
| | | | Notes: svn path=/head/; revision=160446
* Teach mount(8) about a 'late' keyword, which means the file system shouldDag-Erling Smørgrav2006-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 Notes: svn path=/head/; revision=160303
* o replace special handling of clone operations by a clone callbackSam Leffler2006-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 Notes: svn path=/head/; revision=160196
* Fix cut-n-paste bug: compare argument s against known aliases,Marcel Moolenaar2006-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. Notes: svn path=/head/; revision=160149
* Send client identifier unconditionally. My ancient D-Link router responseJung-uk Kim2006-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 Notes: svn path=/head/; revision=160089
* remove display of the ERP ie from the list sta output (it's alwaysSam Leffler2006-06-232-5/+55
| | | | | | | | | zero); replace it with station capabilities MFC after: 1 month Notes: svn path=/head/; revision=159885
* Improve support for Intel based Macs:Marcel Moolenaar2006-06-223-2/+12
| | | | | | | | o Accept hfs as partition type. o Print Apple HFS partitions using a friendly name. Notes: svn path=/head/; revision=159867
* Move the duplicated logic of parsing partition types into a newMarcel Moolenaar2006-06-225-57/+56
| | | | | | | function called parse_uuid(). Notes: svn path=/head/; revision=159865
* Import interface groups from OpenBSD. This allows to group interfaces inMax Laier2006-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) Notes: svn path=/head/; revision=159781
* - Fail with an understandable error message if we cannot detect theSimon L. B. Nielsen2006-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 Notes: svn path=/head/; revision=159757
* Add support of 'tablearg' feature for:Oleg Bulyzhin2006-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 Notes: svn path=/head/; revision=159636
* o Revert a previous delta as strlcpy(3) operates with NUL-terminatedMaxim Konovalov2006-06-141-1/+2
| | | | | | | | strings and cp is not. Fix logic in the original code and eliminate core dumps on lines without '\n'. Notes: svn path=/head/; revision=159605
* o Replace (an incorrect) string copy gymnastics with strlcpy(3).Maxim Konovalov2006-06-141-2/+1
| | | | | | | | | PR: bin/98905 Submitted by: Fabian Keil MFC after: 1 week Notes: svn path=/head/; revision=159604
* o Fix typo.Maxim Konovalov2006-06-111-1/+1
| | | | | | | Obtained from: DragonFlyBSD Notes: svn path=/head/; revision=159510
* Fix a typo s/Made/Make. Use .Pp for a line break, it will quiet theTom Rhodes2006-06-101-2/+2
| | | | | | | mdoc(7) warning. Notes: svn path=/head/; revision=159480