summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Use printb() instead of rolling its own routine to displayhrs2009-09-071-20/+4
| | | | | | | bits in options=<>. Pointed out by: ume MFC after: 3 days
* Suppress an options line when no bit is on.ume2009-09-071-0/+2
| | | | | Reviewed by: hrs MFC after: 3 days
* Add support for changing providers priority.pjd2009-09-062-9/+19
| | | | Submitted by: Mel Flynn
* Update copyright years.pjd2009-09-061-1/+1
|
* For any given subcommand allow to specify multi-line usage (separated by \n).pjd2009-09-061-2/+12
| | | | Submitted by: Mel Flynn
* remove stale references to RTF_CLONING and RTF_LLINFOkmacy2009-09-041-21/+0
| | | | MFC after: 3 days
* Add to `camcontrol cmd` support for sending arbitrary ATA commands.mav2009-09-042-52/+141
| | | | | | It could be used for broad range of tasks, such as configuring drive power management modes, caching, security and any other features and tasks, not supported by existing drivers.
* Short ATA command format has 28bit address, not 36bit.mav2009-08-301-2/+2
| | | | | | Rename ata_36bit_cmd() into ata_28bit_cmd(), while it didn't become legacy. MFC after: 2 days
* MFp4:mav2009-08-301-27/+120
| | | | | | | - Tune protocol version reporting, - Add supported DMA/PIO modes reporting. - Fix IDENTIFY for ATAPI devices. - Remove confusing "-" for NCQ status.
* - Add a SIGINFO handler for savecore.lulf2009-08-251-1/+17
|
* ANSIfy functions declarations, adjust prototypes. Rename local variablecharnier2009-08-251-75/+58
| | | | to not conflict with err().
* Remove (c) line.ivoras2009-08-231-1/+0
| | | | | | Requested by: pjd Approved by: gnn (mentor) MFC after: 1 month
* Remove the dependency on the kernel -- in particular the gctl request tomarcel2009-08-191-18/+23
| | | | | | | | | the GEOM_BSD class -- to translate the absolute offsets in the label to relative ones. This makes bslabel(8) work correctly with GEOM_PART and also when the BSD label is nested under arbitrary partitioning schemes. Inspired by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> Approved by: re (kib)
* Be more precise how to get fsids - 'mount -v' doesn't show fsids unless is runpjd2009-08-171-1/+2
| | | | | | by root. Approved by: re (kib)
* Emit a proper error message instead of dumping core when 1)marcel2009-08-161-2/+14
| | | | | | | | | | | GEOM_PART does not exist in the kernel, and 2) the GEOM in question does not exist. Additionally abort in case of programming errors that result in neither the class nor geom not being present in the gctl request. Submitted by: "Andrey V. Elsukov" <bu7cher@yandex.ru> Approved by: re (kib)
* Delete the descriptions of the gssname and allgssname optionss fromrmacklem2009-07-291-42/+1
| | | | | | | mount_nfs.8 since these options are not implemented in FreeBSD8. This is content change for the man page. Approved by: re (kensmith), kib (mentor)
* Mesh fixes, namely:rpaulo2009-07-271-11/+14
| | | | | | | | | | | | * don't clobber proxy entries * HWMP seq number processing, including discard of old frames * flush routing table entries based on nexthop * print route flags in ifconfig * more debugging messages and comments Proxy changes submitted by sam. Approved by: re (kib)
* Make ifconfig ifN -vnet <jname|jid> actually work:bz2009-07-261-7/+20
| | | | | | | | | | - fix ifconfig to ignore the non-existent interface in the current network stack in case of '-vnet'. - in ifconfig: actually use the local variables defined for the vnet functions rather than modifying the global. Reviewed by: rwatson Approved by: re (kib)
* Fix the logic to count the number of "live interfaces". With this changesam2009-07-211-9/+11
| | | | | | | | dhclient now terminates when the underlying ifnet is destroyed (e.g. on card eject). Reviewed by: brooks Approved by: re (kib)
* More mesh bits, namely:rpaulo2009-07-201-4/+6
| | | | | | | | | | | | | | * bridge support (sam) * handling of errors (sam) * deletion of inactive routing entries * more debug msgs (sam) * fixed some inconsistencies with the spec. * decap is now specific to mesh (sam) * print mesh seq. no. on ifconfig list mesh * small perf. improvements Reviewed by: sam Approved by: re (kib)
* Implementation of the upcoming Wireless Mesh standard, 802.11s, on therpaulo2009-07-113-50/+467
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | net80211 wireless stack. This work is based on the March 2009 D3.0 draft standard. This standard is expected to become final next year. This includes two main net80211 modules, ieee80211_mesh.c which deals with peer link management, link metric calculation, routing table control and mesh configuration and ieee80211_hwmp.c which deals with the actually routing process on the mesh network. HWMP is the mandatory routing protocol on by the mesh standard, but others, such as RA-OLSR, can be implemented. Authentication and encryption are not implemented. There are several scripts under tools/tools/net80211/scripts that can be used to test different mesh network topologies and they also teach you how to setup a mesh vap (for the impatient: ifconfig wlan0 create wlandev ... wlanmode mesh). A new build option is available: IEEE80211_SUPPORT_MESH and it's enabled by default on GENERIC kernels for i386, amd64, sparc64 and pc98. Drivers that support mesh networks right now are: ath, ral and mwl. More information at: http://wiki.freebsd.org/WifiMesh Please note that this work is experimental. Also, please note that bridging a mesh vap with another network interface is not yet supported. Many thanks to the FreeBSD Foundation for sponsoring this project and to Sam Leffler for his support. Also, I would like to thank Gateworks Corporation for sending me a Cambria board which was used during the development of this project. Reviewed by: sam Approved by: re (kensmith) Obtained from: projects/mesh11s
* Fix alignment issue with ATA IDENTIFY structure.scottl2009-07-101-11/+11
| | | | Approved by: re
* Separate the parallel scsi knowledge out of the core of the XPT, andscottl2009-07-102-6/+263
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modularize it so that new transports can be created. Add a transport for SATA Add a periph+protocol layer for ATA Add a driver for AHCI-compliant hardware. Add a maxio field to CAM so that drivers can advertise their max I/O capability. Modify various drivers so that they are insulated from the value of MAXPHYS. The new ATA/SATA code supports AHCI-compliant hardware, and will override the classic ATA driver if it is loaded as a module at boot time or compiled into the kernel. The stack now support NCQ (tagged queueing) for increased performance on modern SATA drives. It also supports port multipliers. ATA drives are accessed via 'ada' device nodes. ATAPI drives are accessed via 'cd' device nodes. They can all be enumerated and manipulated via camcontrol, just like SCSI drives. SCSI commands are not translated to their ATA equivalents; ATA native commands are used throughout the entire stack, including camcontrol. See the camcontrol manpage for further details. Testing this code may require that you update your fstab, and possibly modify your BIOS to enable AHCI functionality, if available. This code is very experimental at the moment. The userland ABI/API has changed, so applications will need to be recompiled. It may change further in the near future. The 'ada' device name may also change as more infrastructure is completed in this project. The goal is to eventually put all CAM busses and devices until newbus, allowing for interesting topology and management options. Few functional changes will be seen with existing SCSI/SAS/FC drivers, though the userland ABI has still changed. In the future, transports specific modules for SAS and FC may appear in order to better support the topologies and capabilities of these technologies. The modularization of CAM and the addition of the ATA/SATA modules is meant to break CAM out of the mold of being specific to SCSI, letting it grow to be a framework for arbitrary transports and protocols. It also allows drivers to be written to support discrete hardware without jeopardizing the stability of non-related hardware. While only an AHCI driver is provided now, a Silicon Image driver is also in the works. Drivers for ICH1-4, ICH5-6, PIIX, classic IDE, and any other hardware is possible and encouraged. Help with new transports is also encouraged. Submitted by: scottl, mav Approved by: re
* - 'burst' description rewritten.oleg2009-06-261-5/+10
| | | | | Submitted by: Ben Kaduk Approved by: re (kib)
* o Kill grammar nits.maxim2009-06-261-2/+2
| | | | | | PR: docs/136061 Submitted by: Ben Kaduk MFC after: 1 week
* - fix dummynet 'fast' mode for WF2Q case.oleg2009-06-244-7/+48
| | | | | | - fix printing of pipe profile data. - introduce new pipe parameter: 'burst' - how much data can be sent through pipe bypassing bandwidth limit.
* Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementationdfr2009-06-242-17/+17
| | | | and will be removed.
* Add the "vnet" and "-vnet" options, to allow moving interfaces betweenjamie2009-06-243-3/+47
| | | | | | jails with VIMAGE. Approved by: bz (mentor)
* Add a note about the implication of secure level setting against kldload,delphij2009-06-231-0/+6
| | | | and cross reference security(7).
* - Use size_t instead of int when appropriate;delphij2009-06-2311-26/+22
| | | | | | - Use C99 sparse initialization. With these changes ifconfig(8) is WARNS=2 clean.
* time_t does not always fit into long, for instance on arm. So rather castjhay2009-06-231-3/+3
| | | | it intmax_t and use %j in printf.
* - Back out the previous change in order to maintain compatibility.lulf2009-06-171-2/+2
|
* Remove redundant code from runshutdown() now tcsetsid(3) works reliably.ed2009-06-151-18/+1
| | | | | | We can now just call setctty() without any problems. This means the shell running the shutdown script is now the session leader, just like on startup.
* - The maximum number of heads is 255, not 256.lulf2009-06-151-2/+2
| | | | Pointed out by: marcel
* Fix the staircase issue properly this time.ed2009-06-141-0/+8
| | | | | | | | | | | Even though I thought this bug was somewhere in the TTY layer, it turns out init(8) doesn't make sure /dev/console is opened initially properly. I've added revoke() to two pieces of code: - death(): Apart from killing the gettys on shutdown, this doesn't guarantee the TTY to be closed immediately. - runshutdown(): Just like setctty(), we should revoke /dev/console. Applications like syslogd may have file descriptors to the console.
* Rev IEEE80211_IOC_STA_INFO abi: ni_flags grew from 16 bits to 32sam2009-06-131-21/+31
| | | | | | | | bits but isi_state did not follow; expand it to 32 bits and pad to maintain alignment. Note this is an incompatible change that requires rebuilding of user applications. Submitted by: rpaulo, cbzimmer, avatar
* Add support for labels derived from GPT metadata.ivoras2009-06-131-2/+14
| | | | | | | Approved by: gnn (mentor) Reviewed by: pjd PR: 128398 Submitted by: Marius Nuennerich < marius at nuenneri.ch >
* fsck_msdosfs: accept no-op -C option for compatibilty with fsckavg2009-06-102-4/+10
| | | | | | | Submitted by: marck Reviewed by: current@ Approved by: jhb (mentor) MFC after: 1 week
* Fix an off by one error when we limit append/prepend text sizes based on ourbrian2009-06-081-5/+15
| | | | | | | | | | | internal buffer sizes. When we 'append', assume we're appending to text. Some MS dhcp servers will give us a string with the length including the trailing NUL. when we 'append domain-name', we get something like "search x.y\000 z" in resolv.conf :( MFC after: 1 week Security: A buffer overflow (by one NUL byte) was possible.
* Change the printf format string to match the variable type to quietjhb2009-06-081-2/+2
| | | | warnings.
* Permit the specification of bandwidth values withinluigi2009-06-082-40/+72
| | | | | | | | | "profile" files (bandwidth is mandatory when using a profile, so it makes sense to have everything in one place). Update the manpage accordingly. Submitted by: Marta Carbone
* add a missing format in a printfluigi2009-06-081-1/+1
| | | | | | Detected building with gcc 4.3.3 MFC after: 3 days
* Make the size (-s) and start (-b) parameters of the add verb optional.marcel2009-06-081-2/+126
| | | | The missing parameter(s) are automatically filled-in.
* Fix and add a workaround on an issue of EtherIP packet with reversedhrs2009-06-072-0/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version field sent via gif(4)+if_bridge(4). The EtherIP implementation found on FreeBSD 6.1, 6.2, 6.3, 7.0, 7.1, and 7.2 had an interoperability issue because it sent the incorrect EtherIP packets and discarded the correct ones. This change introduces the following two flags to gif(4): accept_rev_ethip_ver: accepts both correct EtherIP packets and ones with reversed version field, if enabled. If disabled, the gif accepts the correct packets only. This flag is enabled by default. send_rev_ethip_ver: sends EtherIP packets with reversed version field intentionally, if enabled. If disabled, the gif sends the correct packets only. This flag is disabled by default. These flags are stored in struct gif_softc and can be set by ifconfig(8) on per-interface basis. Note that this is an incompatible change of EtherIP with the older FreeBSD releases. If you need to interoperate older FreeBSD boxes and new versions after this commit, setting "send_rev_ethip_ver" is needed. Reviewed by: thompsa and rwatson Spotted by: Shunsuke SHINOMIYA PR: kern/125003 MFC after: 2 weeks
* Allow humanized numbers for LBAs, as well as partition indices formarcel2009-06-073-21/+120
| | | | | | gpart(8). LBAs in particular are ugly. The ganularity is a sector, but users expect byte granularity when specifying the size or offset with a SI unit. Handle LBAs specially to deal with this.
* Several ipfw options and actions use a 16-bit argument to indicateluigi2009-06-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | pipes, queues, tags, rule numbers and so on. These are all different namespaces, and the only thing they have in common is the fact they use a 16-bit slot to represent the argument. There is some confusion in the code, mostly for historical reasons, on how the values 0 and 65535 should be used. At the moment, 0 is forbidden almost everywhere, while 65535 is used to represent a 'tablearg' argument, i.e. the result of the most recent table() lookup. For now, try to use explicit constants for the min and max allowed values, and do not overload the default rule number for that. Also, make the MTAG_IPFW declaration only visible to the kernel. NOTE: I think the issue needs to be revisited before 8.0 is out: the 2^16 namespace limit for rule numbers and pipe/queue is annoying, and we can easily bump the limit to 2^32 which gives a lot more flexibility in partitioning the namespace. MFC after: 5 days
* remove a printf that was only useful for debugging.luigi2009-06-051-2/+0
| | | | MFC after: 3 days
* Bump document date.benno2009-06-051-1/+1
| | | | Pointed out by: trhodes
* Perform some checking on the requested list of modules to warn people if theybenno2009-06-042-9/+142
| | | | | | | | | try to load modules by filename out of the current directory where the module in question may be further up the module path or not in the module path at all. Also add some text to the man page to help explain what's going on. Sponsored by: Redacted Consulting
* style(9) pass prior to further changes.benno2009-06-041-32/+37
| | | | Sponsored by: Redacted Consulting
OpenPOWER on IntegriCloud