aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Actually component with the greatest priority is used by the prefer balancePawel Jakub Dawidek2009-09-091-1/+1
| | | | | | | algorithm. Notes: svn path=/head/; revision=197044
* Use printb() instead of rolling its own routine to displayHiroki Sato2009-09-071-20/+4
| | | | | | | | | | bits in options=<>. Pointed out by: ume MFC after: 3 days Notes: svn path=/head/; revision=196931
* Suppress an options line when no bit is on.Hajimu UMEMOTO2009-09-071-0/+2
| | | | | | | | Reviewed by: hrs MFC after: 3 days Notes: svn path=/head/; revision=196929
* Add support for changing providers priority.Pawel Jakub Dawidek2009-09-062-9/+19
| | | | | | | Submitted by: Mel Flynn Notes: svn path=/head/; revision=196879
* Update copyright years.Pawel Jakub Dawidek2009-09-061-1/+1
| | | | Notes: svn path=/head/; revision=196878
* For any given subcommand allow to specify multi-line usage (separated by \n).Pawel Jakub Dawidek2009-09-061-2/+12
| | | | | | | Submitted by: Mel Flynn Notes: svn path=/head/; revision=196877
* remove stale references to RTF_CLONING and RTF_LLINFOKip Macy2009-09-041-21/+0
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=196833
* Add to `camcontrol cmd` support for sending arbitrary ATA commands.Alexander Motin2009-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. Notes: svn path=/head/; revision=196831
* Short ATA command format has 28bit address, not 36bit.Alexander Motin2009-08-301-2/+2
| | | | | | | | | Rename ata_36bit_cmd() into ata_28bit_cmd(), while it didn't become legacy. MFC after: 2 days Notes: svn path=/head/; revision=196659
* MFp4:Alexander Motin2009-08-301-27/+120
| | | | | | | | | | - Tune protocol version reporting, - Add supported DMA/PIO modes reporting. - Fix IDENTIFY for ATAPI devices. - Remove confusing "-" for NCQ status. Notes: svn path=/head/; revision=196658
* - Add a SIGINFO handler for savecore.Ulf Lilleengen2009-08-251-1/+17
| | | | Notes: svn path=/head/; revision=196528
* ANSIfy functions declarations, adjust prototypes. Rename local variablePhilippe Charnier2009-08-251-75/+58
| | | | | | | to not conflict with err(). Notes: svn path=/head/; revision=196527
* Remove (c) line.Ivan Voras2009-08-231-1/+0
| | | | | | | | | Requested by: pjd Approved by: gnn (mentor) MFC after: 1 month Notes: svn path=/head/; revision=196476
* Remove the dependency on the kernel -- in particular the gctl request toMarcel Moolenaar2009-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) Notes: svn path=/head/; revision=196383
* Be more precise how to get fsids - 'mount -v' doesn't show fsids unless is runPawel Jakub Dawidek2009-08-171-1/+2
| | | | | | | | | by root. Approved by: re (kib) Notes: svn path=/head/; revision=196287
* Emit a proper error message instead of dumping core when 1)Marcel Moolenaar2009-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) Notes: svn path=/head/; revision=196278
* Delete the descriptions of the gssname and allgssname optionss fromRick Macklem2009-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) Notes: svn path=/head/; revision=195942
* Mesh fixes, namely:Rui Paulo2009-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) Notes: svn path=/head/; revision=195908
* Make ifconfig ifN -vnet <jname|jid> actually work:Bjoern A. Zeeb2009-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) Notes: svn path=/head/; revision=195890
* Fix the logic to count the number of "live interfaces". With this changeSam Leffler2009-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) Notes: svn path=/head/; revision=195805
* More mesh bits, namely:Rui Paulo2009-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) Notes: svn path=/head/; revision=195784
* Implementation of the upcoming Wireless Mesh standard, 802.11s, on theRui Paulo2009-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 Notes: svn path=/head/; revision=195618
* Fix alignment issue with ATA IDENTIFY structure.Scott Long2009-07-101-11/+11
| | | | | | | Approved by: re Notes: svn path=/head/; revision=195573
* Separate the parallel scsi knowledge out of the core of the XPT, andScott Long2009-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 Notes: svn path=/head/; revision=195534
* - 'burst' description rewritten.Oleg Bulyzhin2009-06-261-5/+10
| | | | | | | | Submitted by: Ben Kaduk Approved by: re (kib) Notes: svn path=/head/; revision=195075
* o Kill grammar nits.Maxim Konovalov2009-06-261-2/+2
| | | | | | | | | PR: docs/136061 Submitted by: Ben Kaduk MFC after: 1 week Notes: svn path=/head/; revision=195036
* - fix dummynet 'fast' mode for WF2Q case.Oleg Bulyzhin2009-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. Notes: svn path=/head/; revision=194930
* Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementationDoug Rabson2009-06-242-17/+17
| | | | | | | and will be removed. Notes: svn path=/head/; revision=194880
* Add the "vnet" and "-vnet" options, to allow moving interfaces betweenJamie Gritton2009-06-243-3/+47
| | | | | | | | | jails with VIMAGE. Approved by: bz (mentor) Notes: svn path=/head/; revision=194871
* Add a note about the implication of secure level setting against kldload,Xin LI2009-06-231-0/+6
| | | | | | | and cross reference security(7). Notes: svn path=/head/; revision=194802
* - Use size_t instead of int when appropriate;Xin LI2009-06-2311-26/+22
| | | | | | | | | - Use C99 sparse initialization. With these changes ifconfig(8) is WARNS=2 clean. Notes: svn path=/head/; revision=194799
* time_t does not always fit into long, for instance on arm. So rather castJohn Hay2009-06-231-3/+3
| | | | | | | it intmax_t and use %j in printf. Notes: svn path=/head/; revision=194684
* - Back out the previous change in order to maintain compatibility.Ulf Lilleengen2009-06-171-2/+2
| | | | Notes: svn path=/head/; revision=194333
* Remove redundant code from runshutdown() now tcsetsid(3) works reliably.Ed Schouten2009-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. Notes: svn path=/head/; revision=194257
* - The maximum number of heads is 255, not 256.Ulf Lilleengen2009-06-151-2/+2
| | | | | | | Pointed out by: marcel Notes: svn path=/head/; revision=194244
* Fix the staircase issue properly this time.Ed Schouten2009-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. Notes: svn path=/head/; revision=194198
* Rev IEEE80211_IOC_STA_INFO abi: ni_flags grew from 16 bits to 32Sam Leffler2009-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 Notes: svn path=/head/; revision=194136
* Add support for labels derived from GPT metadata.Ivan Voras2009-06-131-2/+14
| | | | | | | | | | Approved by: gnn (mentor) Reviewed by: pjd PR: 128398 Submitted by: Marius Nuennerich < marius at nuenneri.ch > Notes: svn path=/head/; revision=194092
* fsck_msdosfs: accept no-op -C option for compatibilty with fsckAndriy Gapon2009-06-102-4/+10
| | | | | | | | | | Submitted by: marck Reviewed by: current@ Approved by: jhb (mentor) MFC after: 1 week Notes: svn path=/head/; revision=193943
* Fix an off by one error when we limit append/prepend text sizes based on ourBrian Somers2009-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. Notes: svn path=/head/; revision=193765
* Change the printf format string to match the variable type to quietJohn Baldwin2009-06-081-2/+2
| | | | | | | warnings. Notes: svn path=/head/; revision=193728
* Permit the specification of bandwidth values withinLuigi Rizzo2009-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 Notes: svn path=/head/; revision=193715
* add a missing format in a printfLuigi Rizzo2009-06-081-1/+1
| | | | | | | | | Detected building with gcc 4.3.3 MFC after: 3 days Notes: svn path=/head/; revision=193702
* Make the size (-s) and start (-b) parameters of the add verb optional.Marcel Moolenaar2009-06-081-2/+126
| | | | | | | The missing parameter(s) are automatically filled-in. Notes: svn path=/head/; revision=193673
* Fix and add a workaround on an issue of EtherIP packet with reversedHiroki Sato2009-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 Notes: svn path=/head/; revision=193664
* Allow humanized numbers for LBAs, as well as partition indices forMarcel Moolenaar2009-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. Notes: svn path=/head/; revision=193648
* Several ipfw options and actions use a 16-bit argument to indicateLuigi Rizzo2009-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 Notes: svn path=/head/; revision=193516
* remove a printf that was only useful for debugging.Luigi Rizzo2009-06-051-2/+0
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=193500
* Bump document date.Benno Rice2009-06-051-1/+1
| | | | | | | Pointed out by: trhodes Notes: svn path=/head/; revision=193480
* Perform some checking on the requested list of modules to warn people if theyBenno Rice2009-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 Notes: svn path=/head/; revision=193475