summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix a problem that reply packets are not received when -i T option is sethrs2014-09-202-232/+166
| | | | | | | | | | | | and (T < RTT). - Use select(2) for timeout instead of interval timer. Remove poll(2) support. - Use sigaction(2) instead of signal(3). - Exit in SIGINT handler when two signals are received and doing reverse DNS lookup as ping(8) does. - Remove redundant variables used for getaddrinfo(3). PR: 151023
* Revert changes in r269180. It could cause -c N option to enter anhrs2014-09-201-8/+2
| | | | | | infinite loop if no reply packet is received. PR: 151023
* The lagg(4) interface is based on trunk(4) interface from OpenBSD.araujo2014-09-181-1/+1
| | | | | | | | | | | | | The FreeBSD is the only system that has the FEC protocol, that is a simple alias to loadbalance protocol and does not implement the ancient Cisco FEC standard. From now on, we remove the fec protocol from the documentation and keep the FEC code only for compatibility. Phabric: D539 Reviewed by: glebius, thompsa Approved by: glebius Sponsored by: QNAP Systems Inc.
* Add laggproto broadcast, it allows sends frames to all ports of the lagg(4) ↵araujo2014-09-181-2/+2
| | | | | | | | | | | | group and receives frames on any port of the lagg(4). Phabric: D549 Reviewed by: glebius, thompsa Approved by: glebius Obtained from: OpenBSD Sponsored by: QNAP Systems Inc.
* If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fixbdrewery2014-09-171-1/+5
| | | | | | | | | a FILE* leak in getbounds(). Submitted by: Conrad Meyer <conrad.meyer@isilon.com> PR: 192032 Sponsored by: EMC / Isilon Storage Division MFC after: 1 week
* Add DEF_CLONE_CMD_ARG2bryanv2014-09-141-0/+1
| | | | | | | This will be used in the forthcoming vxlan import. Reviewed by: gnn Phabric: https://reviews.freebsd.org/D382
* Update CAM CCB accounting for the new status quo.mav2014-09-141-2/+2
| | | | | | | | | | | | devq_openings counter lost its meaning after allocation queues has gone. held counter is still meaningful, but problematic to update due to separate locking of CCB allocation and queuing. To fix that replace devq_openings counter with allocated counter. held is now calculated on request as difference between number of allocated, queued and active CCBs. MFC after: 1 month
* Do not try to read i2c info when no transceiver is present.melifaro2014-09-131-2/+4
| | | | | MFC with: r270064 Sponsored by: Yandex LLC
* Add a sysctl to export the EFI memory map along with a handler in thejhb2014-09-131-0/+94
| | | | | | | | sysctl(8) binary to format it. Reviewed by: emaste MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D771
* Pass the length of an structure to the pretty-printer backends as ajhb2014-09-121-12/+12
| | | | size_t instead of an int.
* Since r270929 raw sockets expect network byte order.glebius2014-09-111-11/+0
| | | | Submitted by: avg
* Fix a bug which could break extended attributes in a dump output.hrs2014-09-101-1/+6
| | | | | | | | This occurred when a file was >892kB long and had a large data (>1kB) in the extended attributes. Reported by: Masashi Toriumi Reviewed by: mckusick
* Add the ability to set `prefer_source' flag to an IPv6 address.ae2014-09-092-1/+18
| | | | | | | | | | | It affects the IPv6 source address selection algorithm (RFC 6724) and allows override the last rule ("longest matching prefix") for choosing among equivalent addresses. The address with `prefer_source' will be preferred source address. Obtained from: Yandex LLC MFC after: 1 month Sponsored by: Yandex LLC
* * Unconditionally turn on SIOCGI2C probing for all interfacesmelifaro2014-09-031-11/+17
| | | | | | | | | | | on "ifconfig -v". I've seen no measurable timing difference for doing additional SIOCGI2C call for system with 4k vlans. * Determine appropriate handler (SFP/QSFP) by reading identification byte (which is the same for both SFF-8472 and SFF-8436) instead of checking driver name. MFC with: r270064 Sponsored by: Yandex LLC
* Add lock annotations to the threading API used by hastd.ed2014-09-012-13/+13
| | | | Approved by: pjd@
* Add references to vt(4) to further man-pages.se2014-09-011-0/+1
| | | | MFC after: 3 days
* Fix character case in examples for "camcontrol security" - should begavin2014-08-311-3/+3
| | | | | | | | "-U user" not "-u user". PR: 193179 Submitted by: milios ccsys com MFC after: 3 days
* - Add a new structure type for the ACPI 3.0 SMAP entry that includes thejhb2014-08-291-0/+29
| | | | | | | | | | | | | | | optional attributes field. - Add a 'machdep.smap' sysctl that exports the SMAP table of the running system as an array of the ACPI 3.0 structure. (On older systems, the attributes are given a value of zero.) Note that the sysctl only exports the SMAP table if it is available via the metadata passed from the loader to the kernel. If an SMAP is not available, an empty array is returned. - Add a format handler for the ACPI 3.0 SMAP structure to the sysctl(8) binary to format the SMAP structures in a readable format similar to the format found in boot messages. MFC after: 2 weeks
* * Add SIOCGI2C driver ioctl used to retrieve i2c info.melifaro2014-08-291-33/+21
| | | | | | | | | * Convert ixgbe to use this ioctl * Convert ifconfig to use generic i2c handler for "ix" interfaces. Approved by: Eric Joyner (ixgbe part) MFC after: 2 weeks Sponsored by: Yandex LLC
* Correct the destroy example. The -n argument is not needed (and is notjhb2014-08-271-2/+2
| | | | | | | | valid). Reported by: mwlucas Reviewed by: phk MFC after: 1 week
* Garbage collect libl dependencyngie2014-08-231-2/+2
| | | | | | | | | The application links and runs without libl Approved by: rpaulo (mentor) Phabric: D673 X-MFC with: r270117 Submitted by: trociny
* Whitespace/style changes merged from projects/ipfw.melifaro2014-08-231-1/+1
|
* Merge buffer-printing changes from from projects/ipfw as preparationmelifaro2014-08-235-365/+532
| | | | | | for branch merge. Requested by: luigi
* Change file permissions for some setuid executables so they are "o+r".neel2014-08-212-3/+3
| | | | | | | | | | | The executable itself doesn't contain any privileged information. An example of where this is useful is when makefs(8) is creating an image that includes /sbin/shutdown. This can now be done without root privileges. Reviewed by: delphij Discussed with: delphij, des CR: https://reviews.freebsd.org/D662
* * Add new net/sff8436.h containing constants used to accessmelifaro2014-08-211-88/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QSFP+ data via i2c inteface. These constants has been taken from SFF-8436 "QSFP+ 10 Gbs 4X PLUGGABLE TRANSCEIVER" standard rev 4.8. * Add support for printing QSFP+ information from 40G NICs such as Chelsio T5. This commit does not contain ioctl changes necessary for this functionality work, there will be another commit soon. Example: cxl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=ec07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,.....> ether 00:07:43:28:ad:08 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet 40Gbase-LR4 <full-duplex> status: active plugged: QSFP+ 40GBASE-LR4 (MPO Parallel Optic) vendor: OEM PN: OP-QSFP-40G-LR4 SN: 20140318001 DATE: 2014-03-18 module temperature: 64.06 C voltage: 3.26 Volts lane 1: RX: 0.47 mW (-3.21 dBm) TX: 2.78 mW (4.46 dBm) lane 2: RX: 0.20 mW (-6.94 dBm) TX: 2.80 mW (4.47 dBm) lane 3: RX: 0.18 mW (-7.38 dBm) TX: 2.79 mW (4.47 dBm) lane 4: RX: 0.90 mW (-0.45 dBm) TX: 2.80 mW (4.48 dBm) Tested on: Chelsio T5 Tested on: Mellanox/Huawei passive/active cables/transceivers. MFC after: 2 weeks Sponsored by: Yandex LLC
* Misc fixes suggested by Coverity.asomers2014-08-201-3/+9
| | | | | | | | | | | | sbin/devd/tests/client_test.c * In the event that popen fails, don't dereference its return value. * Fix array overwrite in the stream and seqpacket tests. * Close sockets at the end of successful ATF tests. Reported by: Coverity scan CID: 1232019, 1232020, 1232029, 1232030 MFC after: 1 week Sponsored by: Spectra Logic
* Add description for the "automounted" mount flag.trasz2014-08-201-1/+6
| | | | | | Reviewed by: emaste@ MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Revert r267233 for now. PIE support needs to be reworked.bdrewery2014-08-199-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | 1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other build-only utility libraries. 2. Another 40% is fixed by generating _pic.a variants of various libraries. 3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR) where it never would work anyhow, such as csu or loader. This suggests there may be better ways of adding support to the tree. Many of these cases can be fixed such that -fPIE will work but there is really no reason to have it in those cases. 4. Some of the uses are working around hacks done to some Makefiles that are really building libraries but have been using bsd.prog.mk because the code is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have been needed. We likely do want to enable PIE by default (opt-out) for non-tree consumers (such as ports). For in-tree though we probably want to only enable PIE (opt-in) for common attack targets such as remote service daemons and setuid utilities. This is also a great performance compromise since ASLR is expected to reduce performance. As such it does not make sense to enable it in all utilities such as ls(1) that have little benefit to having it enabled. Reported by: kib
* Zero buffer before request.melifaro2014-08-181-0/+1
|
* Add LIBUTIL to DPADDngie2014-08-181-0/+1
| | | | | | | | This will fix "make checkdpadd" MFC after: 5 days PR: 192759 Approved by: rpaulo (mentor)
* Add -ll to LDADD to fix "make checkdpadd"ngie2014-08-181-1/+1
| | | | | | Phabric: D622 MFC after: 2 weeks Approved by: rpaulo (mentor)
* Add forgotten DPADD to ifconfig(8).melifaro2014-08-171-0/+1
| | | | | | PR: 192760 Submitted by: yaneurabeya at gmail.com MFC after: 2 weeks
* Remove LOG_ODELAY because it does nothing.neel2014-08-171-1/+1
| | | | | Reviewed by: jilles CR: https://reviews.freebsd.org/D611
* Bring in the new automounter, similar to what's provided in most othertrasz2014-08-172-2/+5
| | | | | | | | | | | | | UNIX systems, eg. MacOS X and Solaris. It uses Sun-compatible map format, has proper kernel support, and LDAP integration. There are still a few outstanding problems; they will be fixed shortly. Reviewed by: allanjude@, emaste@, kib@, wblock@ (earlier versions) Phabric: D523 MFC after: 2 weeks Relnotes: yes Sponsored by: The FreeBSD Foundation
* Clean up unused definitions.melifaro2014-08-161-22/+8
|
* * Use standard net/sff8472.h header for sff bits and offsets.melifaro2014-08-161-103/+85
| | | | | | * Convert sff_8472_id to 'const char *' to please clang. Pointed by: np
* Add support for reading i2c SFP/SFP+ data from NIC driver andmelifaro2014-08-164-0/+551
| | | | | | | | presenting most interesting fields via ifconfig -v. This version supports Intel ixgbe driver only. Tested on: Cisco,Intel,Mellanox,ModuleTech,Molex transceivers MFC after: 2 weeks
* Use mount protocol version 3 by default for showmount and umount.peter2014-08-161-1/+1
| | | | | | mount_nfs effectively uses mount protocol v3 by default already. v1 mount protocol is being removed along with nfsv2 by a high profile NFS appliance vendor and our legacy v1 mount protocol usage causes rpc errors.
* Fix atmconfig compilation when MK_ATM == yes and MK_BSNMP == nongie2014-08-152-22/+17
| | | | | | | | | | | | | | | | | | | | | | | | | Makefile.inc1: Always compile gensnmptree with bootstrap-tools when MK_BSNMP != no instead of depending on a potentially stale tool installed on the build host sbin/atm/atmconfig/Makefile: - Always remove oid.h to avoid cluttering up the build/src tree. - Consolidate all of the RESCUE/MK_BSNMP != no logic under one conditional to improve readability - Remove unnecessary ${.OBJDIR} prefixing for oid.h and use ${.TARGET} instead of spelling out oid.h - Add a missing DPADD for ${LIBCRYPTO} when compiled MK_BSNMP == yes and MK_OPENSSL == yes and not compiling for /rescue/rescue sbin/atm/atmconfig/main.c: Change #ifndef RESCUE to #ifdef WITH_BSNMP in main.c to make it clear that we're compiling bsnmp support into atmconfig Approved by: jmmv (mentor) Phabric: D579 PR: 143830 MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Remove bogus ; at the end of the if condition in order to unbreak gcc buildsbz2014-08-151-2/+2
| | | | | | | after r270004. MFC after: 4 days X-MFX with: r270004
* Convert devd's client socket to type SOCK_SEQPACKET.asomers2014-08-145-38/+276
| | | | | | | | | | | | | | | | | | | | | | | | | This change consists of two merges from projects/zfsd/head along with the addition of an ATF test case for the new functionality. sbin/devd/tests/Makefile sbin/devd/tests/client_test.c Add ATF test cases for reading events from both devd socket types. r266519: sbin/devd/devd.8 sbin/devd/devd.cc Create a new socket, of type SOCK_SEQPACKET, for communicating with clients. SOCK_SEQPACKET sockets preserve record boundaries, simplying code in the client. The old SOCK_STREAM socket is retained for backwards-compatibility with existing clients. r269993: sbin/devd/devd.8 Fix grammar bug. CR: https://reviews.freebsd.org/rS266519 MFC after: 5 days Sponsored by: Spectra Logic
* Use "NO NAME" as the default unnamed label.pfg2014-08-131-1/+1
| | | | | | | | | | | | | Microsoft recommends avoiding the use of spaces in the string structures for FAT. Unfortunately they do just that by default in the case of unlabeled filesystems. Follow the default MS behavior to avoid confusion in common tools like file(1). This was actually the default behavior before r203868. Obtained from: NetBSD (CVS rev. 1.39) MFC after: 3 days
* Fix a typo in a comment: s/interprete/interpret/gjb2014-08-121-1/+1
| | | | | | Submitted by: Sam Fourman Jr. MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Turn off kern.geom.part.mbr.enforce_chs by default.ae2014-08-121-1/+1
|
* Remove duplicate entry.ae2014-08-121-7/+0
|
* Add sysctl and loader tunable kern.geom.part.mbr.enforce_chs that is setae2014-08-121-1/+7
| | | | | | | | by default. It can be used to disable automatic alignment to CHS geometry, that GEOM_PART_MBR does. Reviewed by: wblock MFC after: 1 week
* Mention tmpfs(5)skreuzer2014-08-061-0/+1
| | | | | | PR: 192389 Submitted by: yaneurabeya@gmail.com Approved by: hrs (mentor)
* Honour WITH and WITHOUT_INET6_SUPPORT.cy2014-08-051-0/+8
| | | | | Approved by: glebius (mentor) MFC after: 3 days
* Provide -o vers= support for mount_nfs.bz2014-08-052-1/+55
| | | | | | | | | | | | | Our mount_nfs does use -o nfsv<2|3|4> or -2 or -3 to specify the version. OSX (these days), Solaris, and Linux use -o vers=<2,3,4>. With the upcoming autofs support we can make a lot of (entrerprisy) setups getting mount options from LDAP just work by providing -o vers= compatibility. PR: 192379 Reviewed by: wblock, bjk (man page), rmacklem, emaste MFC after: 3 days Sponsored by: DARPA,AFRL
* Add generic list, status, load and unload docs to gpart(8)issyl02014-08-031-1/+21
| | | | | | | - In the style of gmirror(8). PR: docs/191534 Reviewed by: gavin
OpenPOWER on IntegriCloud