summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert r228603, and add the workaround to sbin/fsdb/Makefile instead.dim2011-12-182-3/+6
| | | | MFC after: 1 week
* Allow toggling of IFCAP_VLAN_HWCSUM for hardware that supports checksumbz2011-12-172-3/+5
| | | | | | | offloading on vlans and document the new option. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* In sbin/devd/devd.h, 'event_proc' and 'eps' are declared as structs. Indim2011-12-171-2/+2
| | | | | | devd.hh, there are redeclared as classes. Fix the inconsistency. MFC after: 1 week
* In sbin/dhclient, since we know the size of the source strings anyway,dim2011-12-172-3/+3
| | | | | | we might as well use memcpy; strlcpy is really unnecessary here. MFC after: 1 week
* In sbin/dhclient, work around warnings about the size argument todim2011-12-172-6/+12
| | | | | | | strlcpy appearing to be the size of the source buffer, instead of the destination. MFC after: 1 week
* Use both NO_WFORMAT and NO_WARRAY_BOUNDS for sbin/ipf, it would be toodim2011-12-171-0/+2
| | | | | | | disruptive to actually fix all the warnings, and the code hasn't been maintained for several years. MFC after: 1 week
* In sbin/atm/atmconfig/diag.c, fix a few warnings about format stringsdim2011-12-171-4/+4
| | | | | | not being literals. MFC after: 1 week
* Use NO_WCAST_ALIGN for sbin/gbde, this is more appropriate to fix thedim2011-12-171-5/+3
| | | | | | alignment warnings than using WARNS=3, and it also works for clang. MFC after: 1 week
* Use NO_WARRAY_BOUNDS for sbin/routed/rtquery.dim2011-12-161-0/+1
| | | | MFC after: 1 week
* In sbin/fsdb/fsdbutil.c, work around a clang false positive with printfdim2011-12-161-2/+3
| | | | | | | format warnings and conditional operators. (See LLVM PR 11313 for more information.) MFC after: 1 week
* In sbin/camcontrol/camcontrol.c, fix a few warnings about format stringsdim2011-12-161-7/+7
| | | | | | not being literals. MFC after: 1 week
* Rename ifcarp.c to carp.cglebius2011-12-162-1/+1
|
* Since size of struct in_aliasreq has just been changed in r228571,glebius2011-12-161-0/+1
| | | | | and thus ifconfig(8) needs recompile, it is a good chance to make parameter checks on SIOCAIFADDR arguments more strict.
* A major overhaul of the CARP implementation. The ip_carp.c was startedglebius2011-12-166-89/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from scratch, copying needed functionality from the old implemenation on demand, with a thorough review of all code. The main change is that interface layer has been removed from the CARP. Now redundant addresses are configured exactly on the interfaces, they run on. The CARP configuration itself is, as before, configured and read via SIOCSVH/SIOCGVH ioctls. A new prefix created with SIOCAIFADDR or SIOCAIFADDR_IN6 may now be configured to a particular virtual host id, which makes the prefix redundant. ifconfig(8) semantics has been changed too: now one doesn't need to clone carpXX interface, he/she should directly configure a vhid on a Ethernet interface. To supply vhid data from the kernel to an application the getifaddrs(8) function had been changed to pass ifam_data with each address. [1] The new implementation definitely closes all PRs related to carp(4) being an interface, and may close several others. It also allows to run a single redundant IP per interface. Big thanks to Bjoern Zeeb for his help with inet6 part of patch, for idea on using ifam_data and for several rounds of reviewing! PR: kern/117000, kern/126945, kern/126714, kern/120130, kern/117448 Reviewed by: bz Submitted by: bz [1]
* Xref re_format(7) in devd.conf(5), not in devd(8).glebius2011-12-162-5/+5
| | | | Pointy hat to: glebius
* Xref re_format(7).glebius2011-12-161-2/+3
|
* Remove redundant assignment.pjd2011-12-151-2/+0
| | | | | Found by: Clang Static Analyzer MFC after: 1 week
* Simplify code by changing functions types from int to avoid, as the functionspjd2011-12-151-15/+6
| | | | | | | always return 0. Found by: Clang Static Analyzer MFC after: 1 week
* Remove redundant setting of the error variable.pjd2011-12-151-2/+0
| | | | | Found by: Clang Static Analyzer MFC after: 1 week
* dhclient-script relied on incorrect behavior of SIOCAIFADDR ioctl,glebius2011-12-131-1/+1
| | | | | | | | | | | | that changed 0.0.0.0/0.0.0.0 prefix to 0.0.0.0/255.0.0.0. In the r228313 this behavior was fixed, and since dhclient-script got broken. I'm not sure this fix is a perfect one, it just changes dhclient-script to set 0.0.0.0/255.0.0.0 explicitly. PR: kern/163206
* Staticify dumpfs.ed2011-12-131-20/+20
| | | | | | This tool only consists of a single C file, so we can simply mark everything except main() static. This seems to shave off about 8% of the binary size.
* Add more static keywords to rcorder(8).ed2011-12-111-48/+47
| | | | | | The global variables and functions provided by rcorder.c are not used in the other C files, as the other C files only provide memory allocation and hash functions. This reduces the binary size by 10%.
* Add missing static keyword.ed2011-12-111-1/+1
| | | | | All global variables and functions are marked static. Simply because this is an enum, doesn't mean we can't do so as well.
* Let reboot(8) use getprogname() to compare the program name.ed2011-12-111-3/+3
| | | | | While there, mark the global variable dohalt static, as reboot(8) only consists of a single C file.
* Add missing static keywords to global variables in camcontrol.ed2011-12-112-13/+13
| | | | | While there, make the vendor list const and add appropriate keywords to functions that use this list.
* Support domain-search in dhclient(8)dumbbell2011-12-047-3/+180
| | | | | | | | | | | | | | | | | | | | | The "domain-search" option (option 119) allows a DHCP server to publish a list of implicit domain suffixes used during name lookup. This option is described in RFC 3397. For instance, if the domain-search option says: ".example.org .example.com" and one wants to resolve "foobar", the resolver will try: 1. "foobar.example.org" 2. "foobar.example.com" The file /etc/resolv.conf is updated with a "search" directive if the DHCP server provides "domain-search". A regression test suite is included in this patch under tools/regression/sbin/dhclient. PR: bin/151940 Sponsored by Yakaz (http://www.yakaz.com)
* Restore comment with credit to Marc Frajola.emaste2011-12-021-0/+9
| | | | | fwdownload.c is derived from Andre Albsmeier's fwdownload.c, which was written from scratch but was inspired by Marc's original idea and code.
* If the -d flag is specified, ignore any new values specified and onlyjhb2011-12-011-1/+1
| | | | | | | display the descriptions of specified nodes. Reported by: Jason Hellenthal jhell of dataix net MFC after: 2 weeks
* Fix build.delphij2011-11-251-1/+1
|
* Add firmware update support for SCSI devices.emaste2011-11-256-29/+488
| | | | | | | | | | | | | | | | | Firmware can be reprogrammed on devices from Hitachi, HP, IBM, Plextor, Quantum, and Seagate. At least one device from each manufacturer has been tested with some version of this code, and it has been used to update thousands of drives so far. The man page suggests having a backup of the drive's data, and the operation must be confirmed, either interactively or on the command line. (This is the same as the confirmation on the format command.) This work is largely derived from fwprog.c by Andre Albsmeier. Submitted by: Nima Misaghian Sponsored by: Sandvine Incorporated MFC after: 3 months
* Fix parsing of redirect_addr argument.glebius2011-11-231-1/+2
| | | | | PR: kern/162739 MFC after: 3 days
* Correct and expand BSD partitioning scheme description.wblock2011-11-211-7/+9
| | | | | | | | Correct GUID to GPT in RECOVERING section. Reviewed by: ae Approved by: gjb (mentor) MFC after: 1 week
* Fix date.wblock2011-11-211-1/+1
| | | | | Approved by: gjb (mentor) MFC after: 1 week
* Add a section that explicitly describes partitioning schemes. Modifywblock2011-11-211-126/+154
| | | | | | | | | existing sections to refer to the new one. Rearrange partitioning scheme list so MBR and EBR types are together. Also add several corrections for grammar, clarity, and consistency. Approved by: gjb (mentor) MFC after: 1 week
* For unknown reason, since rev 1.1 of ifconfig.c, sin_family isn'tglebius2011-11-191-2/+1
| | | | | | | set properly for the mask argument. Since I'd like to improve argument sanity checking in kernel side, in in_control(), fix this.
* Finish making 'wcommitsize' an NFS client mount option.jhb2011-11-142-0/+11
| | | | | Reviewed by: rmacklem MFC after: 1 week
* - new sentence should start on new line.eadler2011-11-131-2/+2
| | | | | | PR: bin/146541 Submitted by: bjk Approved by: bjk
* - fix duplicate "a a" in some commentseadler2011-11-132-2/+2
| | | | | | Submitted by: eadler Approved by: simon MFC after: 3 days
* - add "check" option to MD5 and friends to compare files against known hash.eadler2011-11-132-8/+40
| | | | | | | | | PR: bin/146541 Submitted by: eadler Reviewed by: jhell@dataix.net Approved by: secteam (cperciva) Approved by: cperciva MFC after: 3 weeks
* Bump date.adrian2011-11-121-1/+1
|
* Add documentation for the new quiet time IE options.adrian2011-11-121-0/+32
| | | | | Submitted by: Himali Patel <himali.patel@sibridgetech.com> Sponsored by: Sibridge Technologies
* Fix build on some archs after r227464.mav2011-11-121-3/+4
|
* Fix buildworld breakage due after r227464.dim2011-11-121-1/+1
| | | | Pointy hat to: mav
* Major GEOM MULTIPATH class rewrite:mav2011-11-122-98/+194
| | | | | | | | | | | | | | | | | | | | | | | | | - Improved locking and destruction process to fix crashes. - Improved "automatic" configuration method to make it consistent and safe by reading metadata back from all specified paths after writing to one. - Added provider size check to reduce chance of ordering conflict with other GEOM classes. - Added "manual" configuration method without using on-disk metadata. - Added "add" and "remove" commands to allow manage paths manually. - Failed paths are no longer dropped from geom, but only marked as FAIL and excluded from I/O operations. - Automatically restore failed paths when all others paths are marked as failed, for example, because of device-caused (not transport) errors. - Added "fail" and "restore" commands to manually control FAIL flag. - geom is now destroyed on last path disconnection. - Added optional Active/Active mode support. Unlike Active/Passive mode, load evenly distributed between all working paths. If supported by the device, it allows to significantly improve performance, utilizing bandwidth of all paths. It is controlled by -A option during creation. Disabled by default now. - Improved `status` and `list` commands output. Sponsored by: iXsystems, inc. MFC after: 1 month
* Use __packed to prevent alignment from taking place, which otherwise maydelphij2011-11-111-5/+5
| | | | | | | | | | change the on-disk format in an incompatible way. Without this change, msdosfs created on FreeBSD/arm would not be mountable. PR: bin/162486 Submitted by: Ian Lepore <freebsd damnhippie dyndns org> Reported by: Mattia Rossi <mrossi at swin.edu.au> MFC after: 3 days
* Note that NAT instance argument can be tablearg.glebius2011-11-101-2/+2
| | | | | PR: misc/162265 Submitted by: Paul Procacci <pprocacci gmail.com>
* Remove trailing whitespace.ed2011-11-091-2/+2
|
* Add quiet time element configuration support to ifconfig.adrian2011-11-081-0/+36
| | | | | | | | | | This allows a hostap to specify to a set of stations that they should not transmit for a certain period of time after each beacon interval has expired. This is used when searching for radar pulses or general interference. Submitted by: Himali Patel <himali.patel@sibridgetech.com> Sponsored by: Sibridge Technologies
* Fix multi-line comment formatting.ae2011-11-071-1/+2
| | | | MFC after: 2 weeks
* Fix multi-line comment formatting.ae2011-11-071-2/+4
| | | | | Pointed by: jh MFC after: 1 week
OpenPOWER on IntegriCloud