summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Ok, looking at the solution a bit closer, the levelrrs2009-04-061-4/+4
| | | | | | | | | | | calculation was too agressive. Instead we should only look at each nibble. This makes it so we make 10.2.0.0 become 10.2/16 NOT 10.2/17. Need to explore the non-cidr address issue. The two may not be seperable.. MFC after: 1 week
* Class based addressing went out in the early 90's. Basicallyrrs2009-04-061-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | if a entry is not route add -net xxx/bits then we should use the addr (xxx) to establish the number of bits by looking at the first non-zero bit. So if we enter route add -net 10.1.1.0 10.1.3.5 this is the same as doing route add -net 10.1.1.0/24 Since the 8th bit (zero counting) is set to 1 we set bits to 32-8. Users can of course still use the /x to change this behavior or in cases where the network is in the trailing part of the address, a "netmask" argument can be supplied to override what is established from the interpretation of the address itself. e.g: route add -net 10.1.1.8 -netmask 0xff00ffff should overide and place the proper CIDR mask in place. PR: 131365 MFC after: 1 week
* Only raise WARNS to 6 on i386 and amd64, strict alignment platforms stillphk2009-04-061-0/+4
| | | | | barf at some of the gratuitous pointer gymnastics, and I do not see a simple solution.
* Remove if_ppp(4) and if_sl(4).ed2009-04-057-1705/+0
| | | | | | | | | | | | | Not only did these two drivers depend on IFF_NEEDSGIANT, they were broken 7 months ago during the MPSAFE TTY import. if_ppp(4) has been replaced by ppp(8). There is no replacement for if_sl(4). If we see regressions in for example the ports tree, we should just use __FreeBSD_version 800045 to check whether if_ppp(4) and if_sl(4) are present. Version 800045 is used to denote the import of MPSAFE TTY. Discussed with: rwatson, but also rwatson's IFF_NEEDSGIANT emails on the lists.
* Silence a printf warningphk2009-04-051-1/+1
|
* Add some consts, remove some unused stuff and other attempts to calmphk2009-04-059-31/+15
| | | | FlexeLint down.
* Fix casts which are not by definition safe, but which malloc(3)phk2009-04-051-6/+6
| | | | makes safe for us.
* Some constificationsphk2009-04-053-5/+7
|
* Modernize prototypes (ie: no extern)phk2009-04-0510-175/+157
| | | | Make lots of stuff static.
* Improve a bit reass documentation:piso2009-04-051-0/+25
| | | | | -document fragment handling sysctls -mention some caveats about fragments handling (and to deal with it)
* Convert list of remote interfaces to LIST_* macrosphk2009-04-053-16/+8
|
* Kick WARNS level up to 6 by fixing various trivial warnings.phk2009-04-056-9/+10
|
* Use <sys/queue.h> to manage the interface list.phk2009-04-058-41/+35
|
* Remove newlines from string argument of __COPYRIGHT(), it results inphk2009-04-051-2/+2
| | | | assembler warning messages.
* Send multicast on p2p interfaces if they can and are not prohibitedphk2009-04-051-2/+9
| | | | | | | from doing so with no_rip_mcast in /etc/gateways. This allows routed(8) to work with the way ports/security/openvpn employs the tun(4) interface.
* Implement an ipfw action to reassemble ip packets: reass.piso2009-04-014-1/+18
|
* Import the gvinum work that have been done during and after Summer of Code 2007.lulf2009-03-282-99/+605
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The work have been under testing and fixing since then, and it is mature enough to be put into HEAD for further testing. A lot have changed in this time, and here are the most important: - Gvinum now uses one single workerthread instead of one thread for each volume and each plex. The reason for this is that the previous scheme was very complex, and was the cause of many of the bugs discovered in gvinum. Instead, gvinum now uses one worker thread with an event queue, quite similar to what used in gmirror. - The rebuild/grow/initialize/parity check routines no longer runs in separate threads, but are run as regular I/O requests with special flags. This made it easier to support mounted growing and parity rebuild. - Support for growing striped and raid5-plexes, meaning that one can extend the volumes for these plex types in addition to the concat type. Also works while the volume is mounted. - Implementation of many of the missing commands from the old vinum: attach/detach, start (was partially implemented), stop (was partially implemented), concat, mirror, stripe, raid5 (shortcuts for creating volumes with one plex of these organizations). - The parity check and rebuild no longer goes between userland/kernel, meaning that the gvinum command will not stay and wait forever for the rebuild to finish. You can instead watch the status with the list command. - Many problems with gvinum have been reported since 5.x, and some has been hard to fix due to the complicated architecture. Hopefully, it should be more stable and better handle edge cases that previously made gvinum crash. - Failed drives no longer disappears entirely, but now leave behind a dummy drive that makes sure the original state is not forgotten in case the system is rebooted between drive failures/swaps. - Update manpage to reflect new commands and extend it with some examples. Sponsored by: Google Summer of Code 2007 Mentored by: le Tested by: Rick C. Petty <rick-freebsd2008 -at- kiwi-computer.com>
* add superg+tdma include files for protocol defs needed to do ie parsingsam2009-03-261-7/+3
|
* Man page accompanying r190423 - introduce UFS ID labels.ivoras2009-03-251-2/+8
| | | | | Actually-by: pjd Approved by: gnn (mentor)
* Save (empty) worklist at successful completionphk2009-03-231-0/+1
|
* Use the common PC98_SID_ACTIVE define instead of a local define.nyan2009-03-191-4/+2
|
* Mdoc style, spelling, grammar and wording fixes. This manpage needs more work.brueffer2009-03-191-62/+68
|
* Default to AF_LOCAL instead of AF_INET sockets for non-family-specificjamie2009-03-153-14/+16
| | | | | | | operations. This allows the query operations to work in non-IPv4 jails, and will be necessary in a future of possible non-INET networking. Approved by: bz (mentor)
* Also use %zu to print the allocation size when malloc(3) fails.ed2009-03-111-1/+1
| | | | Discussed with: phk
* Fix printf warnings on amd64 etc.phk2009-03-111-1/+1
|
* One Pp is more than enough.phk2009-03-111-1/+0
| | | | Says: brueffer
* Some improvements to recoverdiskphk2009-03-112-19/+48
|
* o Spell. Sort .Xrs.maxim2009-03-081-7/+7
|
* Document several notifications, among them are DEVFS, update to ifneti,kib2009-03-081-3/+58
| | | | | | | | | coretemp and kern. The asmc(4) and zfs(5) are still not documented. Based on the patch by Roland Smith <rsmith xs4all nl>. MFC after: 1 week
* Add a -o mountprog parameter to mount which explicitly allowsrodrigc2009-03-052-4/+39
| | | | | | | | | | | | | | | | | | | an alternative program to be used for mounting a file system. Ideally, all file systems should be converted to pass string arguments to nmount(), so that /sbin/mount can handle them. However, certain file systems such as FUSE have not done this, and want to have their own userland mount programs. For example, to mount an NTFS file system with the FUSE NTFS driver: mount -t ntfs -o mountprog=/usr/local/bin/ntfs-3g /dev/acd0 /mnt or via an fstab entry: /dev/acd0 /mnt ntfs ro,noauto,mountprog=/usr/local/bin/ntfs-3g 0 0 PR: 120784 Requested by: Dominic Fandrey
* move a variable declaration to the beginning of the blockluigi2009-03-051-1/+1
| | | | | (unfortunately, it is far away; we need to pack this code in a better way).
* remove some signed/unsigned and one const/!const warningluigi2009-03-051-5/+5
|
* mark a function static, as it isluigi2009-03-051-1/+1
|
* Verify that the filesystem being referenced in fstab is indeed a UFScy2009-03-021-2/+3
| | | | | | | | filesystem. This avoids confusion with nullfs and unionfs filesystems which reference the root of a UFS filesystem as a target. PR: 116849 Approved by: kib
* newfs_msdos: allow to work with media that doesn't have any CHS paramsavg2009-02-271-5/+17
| | | | | | | | | | Either use parameters provided by user or make them up. The code for faking CHS params is borrowed from disklabel code. The logic for using user-provided and auto-guessed parameters is not perfect, so to speak. PR: bin/121182 Approved by: jhb (mentor)
* Replace clone_setcallback() with a new function clone_setdefcallback()rpaulo2009-02-274-18/+34
| | | | | | | | that selects a callback from an interface prefix name. This allows us to report a meaningful error when the user types 'ifconfig wlan0 create', for example, and also kills some redundant code. Reviewed by: sam (earlier version)
* 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>
OpenPOWER on IntegriCloud