summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Revert r272390.hrs2014-10-021-1/+1
| | | | Pointed out by: glebius
* Separate option handling from SIOC[SG]LAGG to SIOC[SG]LAGGOPTS forhrs2014-10-021-22/+27
| | | | backward compatibility with old ifconfig(8).
* Add IFCAP_HWSTATS.hrs2014-10-021-1/+1
|
* Virtualize lagg(4) cloner. This change fixes a panic when tearing downhrs2014-10-012-10/+115
| | | | | | | | | | | if_lagg(4) interfaces which were cloned in a vnet jail. Sysctl nodes which are dynamically generated for each cloned interface (net.link.lagg.N.*) have been removed, and use_flowid and flowid_shift ifconfig(8) parameters have been added instead. Flags and per-interface statistics counters are displayed in "ifconfig -v". CR: D842
* Merged from r183296.nyan2014-09-281-2/+2
| | | | Add missing library dependencies.
* Refactor the code a little bit to reduce duplicated code.delphij2014-09-261-102/+87
| | | | | Reviewed by: mjg MFC after: 2 weeks
* Explicitly set errno to 0 before calling strto*.delphij2014-09-251-0/+3
| | | | | Suggested by: mjg MFC after: 2 weeks
* The strtol(3) family of functions would set errno when it hits one.delphij2014-09-251-8/+16
| | | | | | | | Check errno and handle it as invalid input. Obtained from: HardenedBSD Submitted by: David CARLIER <devnexen@gmail.com> MFC after: 2 weeks
* Constify a parameter of name2oid. No functional change.delphij2014-09-231-2/+2
| | | | MFC after: 2 months
* Fix a typo.hrs2014-09-211-1/+1
|
* Fix a bug which could make routed(8) daemon exit by sending a special RIPhrs2014-09-215-7/+35
| | | | | | query from a remote machine, and disable accepting it by default. This requests a routed(8) daemon to dump routing information base for debugging purpose. An -i flag to enable it has been added.
* 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
OpenPOWER on IntegriCloud