summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Rename option 'C' to 'D' (damaged) in order to avoid a conflict with upcomingdelphij2009-01-204-28/+28
| | | | | | | Juniper 'C' (clean) flag. Requested by: obrien MFC after: 1 week
* Fix a number of (innocuous) warnings, and remove a useless test.luigi2009-01-201-18/+18
| | | | | | | | | | | | | There are still several signed/unsigned warnings left, which require a bit more study for a proper fix. This file has grown beyond reasonable limits. We really need to split it into separate components (ipv4, ipv6, dummynet, nat, table, userland-kernel communication ...) so we can make mainteinance easier. MFC after: 1 weeks
* Tone down warning about the quality of the NTFS VFS module. It appears thatsobomax2009-01-201-5/+2
| | | | | not all developers share luigi opinion about quality of sysutils/fusefs-ntfs compared to our kernel NTFS module.
* In the CAVEATS section mention the fact that the NTFS kernel support isn'tsobomax2009-01-191-0/+6
| | | | | | | | | very well maintained and point user to sysutils/fusefs-ntfs, which at the time of this writing seems to be a better alternative. Suggested by: luigi MFC after: 2 weeks
* Fix regression introduced in rev. 173124:mav2009-01-181-26/+27
| | | | | | 0.0.0.0/1 is not the same as 0.0.0.0/0. MFC after: 1 month
* Bail on ENXIO, you won't get any further any way.phk2009-01-171-1/+4
| | | | Submitted by: tobez
* Fix 1/2 and 1/4 width channel handling for non-GSM operation:sam2009-01-161-3/+17
| | | | | | o correct typo that caused random channel selection o explicitly add 1/2 and 1/4 width channels because channel lookups match flags that include IEEE80211_CHANNEL_HALF and IEEE80211_CHANNEL_QUARTER
* use correct interface name when setting flags; fixes ifconfig ... create ... upsam2009-01-141-2/+2
| | | | Noticed by: Chris Anderson
* Reword some entries for NTFS and DOS.luigi2009-01-141-2/+4
| | | | | | Add entries for DELL and ASUS recovery partitions. MFC after: 3 days
* Another change from Christoph:luigi2009-01-141-110/+101
| | | | | | | | | | replace the table of partition with a simpler and faster array of strings. The change in the array is done mechanically, using vi commands. Most entries in the table are probably 15+ years old and largely outdated, so the next step is to remove stale entries with more current values. Submitted by: Christoph Mallon, with small changes from me MFC after: 3 days
* more changes from Christoph:luigi2009-01-141-15/+14
| | | | | | | | pass a pointer instead of an index to print_part() so it does not depend on a static variable. Submitted by: Christoph Mallon MFC after: 3 days
* remove unused argument to print_s0()luigi2009-01-141-11/+8
| | | | | Submitted by: Christoph Mallon MFC after: 3 days
* Some small fixes submitted by Christoph Mallon, specifically:luigi2009-01-131-17/+16
| | | | | | | | | | | | | + Remove a dead field of a struct. It serves no purpose anymore. + Remove a \n at the end of the format string of err(); the err() function already adds a \n ; + remove many unnecessary casts which obfuscate the code. This file has a huge number of indentation bugs, but I'd rather fix them when/if we happen to modify the relevant parts of the code. Submitted by: Christoph Mallon MFC after: 3 days
* r187093 failed to keep the lifetime of the pointer suitable for reentrancy.obrien2009-01-131-11/+5
| | | | Fix that. Also move the current buffer size into the 'cpa' structure.
* Use a dynamically grown buffer for building the argv for the sub-mounts.obrien2009-01-121-11/+16
| | | | | | Also fix RCSid spamage. Inspired by patch from: Christoph Mallon <christoph.mallon@gmx.de>
* Fix typo.delphij2009-01-121-1/+1
| | | | | Submitted by: Ben Kaduk <minimarmot gmail com> MFC after: 3 days
* - improve readabilitydanger2009-01-111-8/+12
| | | | | Reviewed by: trhodes, keramida MFC after: 3 days
* Explicitly check each mount argv building assignment for buffer over flowing.obrien2009-01-101-28/+34
| | | | Reviewed by: imp (earlier version of patch)
OpenPOWER on IntegriCloud