summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Bring SATA revision reporting into conformance with SATA-IO guidelines.mav2009-02-231-6/+6
|
* Add SATA and USB modes for completeness. USB modes principally can't be set,mav2009-02-222-7/+12
| | | | | | SATA mode setting is not implementes at this time. Submitted by: Christoph Mallon
* - Punctuation fixes.pjd2009-02-221-9/+18
| | | | | | | | - New sentence - new line. Reported by: Ben Kaduk <minimarmot@gmail.com> - No more than 80 chars per line.
* Display an error message when the requested mode is not known. So the user canrdivacky2009-02-191-0/+2
| | | | | | | | | distinguish between a typo in the mode name and that the device does not support a certain mode (till now both causes show the same result, i.e. the old mode is displayed). Submitted by: Christoph Mallon <christoph.mallon gmx.de> Approved by: kib (mentor)
* Fixup handling of roaming and xmit parameters to support 1/2 and 1/4-widthsam2009-02-191-110/+125
| | | | | | | | | channel modes: o usurp 'h' mode flag for half-width channels o add 'q' mode flag for quarter-width channels o rewrite rate parameter parsing to handle fractional values o merge mode loops to eliminate ordering assumptions o replace 0x80 with IEEE80211_RATE_MCS
* Correct the year.pjd2009-02-171-1/+1
| | | | Reported by: Florian Smeets <flo@kasimir.com>
* Document kern.geom.journal.* sysctls.pjd2009-02-171-6/+102
| | | | | | PR: docs/130548 Submitted by: Hywel Mallett <hywel@hmallett.co.uk> MFC after: 1 week
* Don't add a bwrite() symbol, it breaks the build when building newfscognet2009-02-122-16/+16
| | | | | | statically. Instead, bring in a stripped down version of sbwrite(), and add the offset to every bwrite() calls.
* Prefer the start and end attributes over the offset and sizemarcel2009-02-081-14/+31
| | | | | | attributes. The start and end more accurately describe the space taken by a partition. The offset and size are used to describe the effective (usable) storage of that partition.
* Add SCTP NAT support.piso2009-02-072-16/+218
|\ | | | | | | Submitted by: CAIA (http://caia.swin.edu.au)
| * Import sctp nat support in ipfw obtained from CAIA - http://caia.swin.edu.au.piso2008-12-281-1/+49
| |
* | Regulatory fixups:sam2009-02-073-66/+140
| | | | | | | | | | | | | | | | | | | | | | | | o add missing channel flags for ECM, indoor, and outdoor constraints o use HT capabilities to short-circuit HT20/HT40 channel construction o rewrite 1/2 and 1/4 width channel handling yet again; previously we assumed there was a full-width version of the channel in the calibration table but that's not always true (e.g. for the Public Safety Band), now we first check the calibration table for the exact channel we want then fall back to the heuristics we used before o fix HT channel construction; wasn't adjusting band edges for HT40 channel bandwidth requirements
* | Set NFSMNT_ACDIRMAX flag in fallback_mount() function.rodrigc2009-02-061-0/+1
| |
* | Set NFSMNT_ACREGMIN, NFSMNT_ACREGMAX, and NFSMNT_ACDIRMIN flagsrodrigc2009-02-061-0/+9
| | | | | | | | | | | | | | | | in fallback_mount() function. Add a comment to indicate that the fallback_mount() function should eventually go away. Submitted by: Jaakko Heinonen <jh saunalahti fi>
* | add support for max antenna gain (not used at the moment)sam2009-02-052-0/+5
| |
* | Update the actions previously attempted by the -D option to make themmckusick2009-02-046-76/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | robust. With these changes fsck is now able to detect and reliably rebuild corrupted cylinder group maps. The -D option is no longer necessary as it has been replaced by a prompt asking whether the corrupted cylinder group should be rebuilt and doing so when requested. These actions are only offered and taken when running fsck in manual mode. Corrupted cylinder groups found during preen mode cause the fsck to fail. Add the -r option to free up excess unused inodes. Decreasing the number of preallocated inodes reduces the running time of future runs of fsck and frees up space that can allocated to files. The -r option is ignored when running in preen mode. Reviewed by: Xin LI <delphij@> Sponsored by: Rsync.net
* | Use %u instead of %zu when we intend to print integer constant.delphij2009-02-031-3/+3
| |
* | - Use a separate pointer to the allocated memory for freeing, as strsep maylulf2009-02-021-3/+3
| | | | | | | | | | | | | | | | | | | | modify the pointer argument passed to it. This triggered an assert in malloc when a geom command being run under the livefs environment. PR: bin/130632 Submitted by: Dimitry Andric <dimitry -at- andric.com> Pointy hat to: me MFC after: 2 days
* | Explain that we assume AF_INET and only use the addr and port fieldluigi2009-02-021-1/+4
| | | | | | | | from a struct sockaddr_in, so there is no need to initialize sin_len
* | remove duplicate #includeluigi2009-02-021-1/+0
| |
* | put the altq-related functions into a separate file.luigi2009-02-016-122/+167
| | | | | | | | | | Minor cleanup of the includes used by the various source files, including annotations of why certain headers are used.
* | Remove and unused variable.bz2009-01-311-2/+1
| | | | | | | | | | Submitted by: Christoph Mallon christoph.mallon@gmx.de MFC after: 2 weeks
* | Add the '-C' "check clean" flag. If the FS is marked clean, skip fileobrien2009-01-307-15/+37
| | | | | | | | | | | | | | | | system checking. However, if the file system is not clean, perform a full fsck. Reviewed by: delphij Obtained from: Juniper Networks
* | include the channel list in list caps when -v is set; ieee channelsam2009-01-281-2/+9
| | | | | | | | | | #'s are not available and we have to hack around the mapchan routine but it lets us see the calibration table w/o forcing the debug regdomain
* | pritize the channel we display with list chans so that, among othersam2009-01-281-1/+28
| | | | | | | | | | | | things, 1/2 and 1/4 width channels are hidden behind the full width channel; this is needed because they are ordered such that they appear after in the channel table
* | simplify display of 1/2 and 1/4 width channelssam2009-01-281-16/+9
| |
* | improve debug msgs for regdomain operations; print channel flagssam2009-01-281-12/+25
| | | | | | | | | | symbolically so it's easier to identify channels and why they are added (or not)
* | Fix 1/2 and 1/4 width channel handling:sam2009-01-281-30/+38
| | | | | | | | | | | | | | | | | | | | | | | | o only include 1/2 and 1/4 width channels when they are specified in the regulatory database description; previously we treated them as if they were part of the band and blindly added them for 11a/g o check the channel list returned in the devcaps to identify whether a device supports 1/2 or 1/4 width channels on a band; this might be better brought out as a capability bit to avoid filling the channel list w/ 1/2 and 1/4 width channels but then cards that only support these channels in a range of frequencies could not be described (though right now we don't check frequency range only band)
* | Restore necessary NUL termination of locname.imp2009-01-281-0/+1
| | | | | | | | | | Submitted by: ian dowse MFC after: 2 days
* | Print disk offets as %jd rather than %lld; I fixed one before committingrwatson2009-01-281-1/+1
| | | | | | | | | | | | | | but missed the other, which breaks 64-bit builds. Reported by: bf <bf2006a at yahoo dot com> MFC after: 1 week
* | Avoid the use of duplicated typedefs -- see the comment for details.luigi2009-01-281-15/+21
| |
* | Bump doc date for recent change.trhodes2009-01-281-1/+1
| |
* | Add a new flag to dumpfs(8), -f, which causes dumpfs to list all freerwatson2009-01-282-7/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fragments in the file system by fragment (block) number. This new mode does the necessary arithmetic to generate absolute fragment numbers rather than than the cg-relative numbers printed in the default mode. If -f is passed once, contiguous fragment ranges are collapsed into an X-Y format as free block lists are currently printed in regular dumpfs output, but if specified twice, all block numbers are printed individually, allowing both compact and more script-friendly representation. This proves quite handy when attempting to recover deleted data, as it allows exclusion of non-deleted data from blocks searched. MFC after: 1 week Discussed with: jeff, Richard Clayton <richard dot clayton at cl.cam.ac.uk> Sponsored by: Google, Inc.
* | Fix parsing of acregmin, acregmax, acdirmin and acdirmax NFS mount optionsrodrigc2009-01-281-4/+4
| | | | | | | | | | | | when passed as strings via nmount(). Submitted by: Jaakko Heinonen <jh saunalahti fi>
* | Remove assumptions about the max # channels in ioctl's:sam2009-01-271-85/+132
| | | | | | | | | | | | | | | | | | o change ioctl's that pass channel lists in/out to handle variable-size arrays instead of a fixed (compile-time) value; we do this in a way that maintains binary compatibility o change ifconfig so all channel list data structures are now allocated to hold MAXCHAN entries (1536); this, for example, allows the kernel to return > IEEE80211_CHAN_MAX entries for calls like IEEE80211_IOC_DEVCAPS
* | remove %b msg bit defines now publicsam2009-01-271-7/+0
| |
* | fix printing of uint64_t values, so we can use WARNS=2luigi2009-01-274-11/+27
| |
* | fix wrong variable usage...luigi2009-01-271-2/+1
| |
* | Put nat and ipv6 support in their own files.luigi2009-01-275-1320/+1436
| | | | | | | | | | | | | | | | Usual moving of code with no changes from ipfw2.c to the newly created files, and addition of prototypes to ipfw2.h I have added forward declarations for ipfw_insn_* in ipfw2.h to avoid a global dependency on ip_fw.h
* | Put dummynet-related code in a separate file.luigi2009-01-273-785/+853
| | | | | | | | | | To this purpose, add prototypes for global functions in ipfw2.h and move there also the list of tokens used in various places in the code.
* | never mind, for the time being let's stick with WARNS=0 untilluigi2009-01-271-2/+2
| | | | | | | | we sort out all proper printf formats.
* | Start splitting the monster file in smaller blocks.luigi2009-01-274-589/+681
| | | | | | | | | | | | | | | | | | | | | | | | In this episode: - introduce a common header with a minimal set of common definitions; - bring the main() function and options parser in main.c - rename the main functions with an ipfw_ prefix No code changes except for the introduction of a global variable, resvd_set_number, which stores the RESVD_SET value from ip_fw.h and is used to remove the dependency of main.c from ip_fw.h (and the subtree of dependencies) for just a single constant.
* | put the usage() function inline, it was only 1 line and used once;luigi2009-01-271-19/+10
| | | | | | | | | | slightly reformat the help() text; slightly correct the text for the 'extraneous filename' error message;
* | put all options in a single struct, and document them.luigi2009-01-271-126/+146
| | | | | | | | | | This will allow us to easily restore the original values when processing commands from a file (where each individual line can have its own options).
* | I believe this is safe to build with WARNS=2 nowluigi2009-01-271-1/+1
| |
* | remove a couple of rarely used #define;luigi2009-01-271-13/+12
| | | | | | | | | | change PRINT_UINT from a macro to a function (renaming is postponed to reduce clutter)
* | Follow up with previous commit: mention -D, not -C when cg checkdelphij2009-01-271-1/+1
| | | | | | | | | | | | failed. Submitted by: obrien
* | wrap all malloc/calloc/realloc calls so they exit on failureluigi2009-01-261-23/+33
| | | | | | | | | | | | without having to check in each place. Remove an wrong strdup from previous commit.
* | Some implementations of getopt() expect that argv[0] is always theluigi2009-01-261-27/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | program name, and ignore that entry. ipfw2.c code instead skips this entry and starts with options at offset 0, relying on a more tolerant implementation of the library. This change fixes the issue by always passing a program name in the first entry to getopt. The motivation for this change is to remove a potential compatibility issue should we use a different getopt() implementation in the future. No functional changes. Submitted by: Marta Carbone (parts) MFC after: 4 weeks
* | remove some useless #include,luigi2009-01-221-8/+2
| | | | | | | | | | | | document why timeconv.h is needed MFC after: 3 days
OpenPOWER on IntegriCloud