summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
| * Use printb() for boolean flags in ro_opts and actor_state for LACP.hrs2014-10-051-12/+5
| |
* | Fix tracked interface list retrieval.melifaro2014-10-051-1/+1
| |
* | Fix GCC wardnings.melifaro2014-10-042-4/+5
| |
* | Sync to HEAD@r272516.melifaro2014-10-0418-381/+555
|\ \ | |/
| * 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
* | Document new table values.melifaro2014-10-031-45/+47
| | | | | | | | Sponsored by: Yandex LLC
* | Make ipfw_nat module use IP_FW3 codes.melifaro2014-09-071-116/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | Kernel changes: * Split kernel/userland nat structures eliminating IPFW_INTERNAL hack. * Add IP_FW_NAT44_* codes resemblin old ones. * Assume that instances can be named (no kernel support currently). * Use both UH+WLOCK locks for all configuration changes. * Provide full ABI support for old sockopts. Userland changes: * Use IP_FW_NAT44_* codes for nat operations. * Remove undocumented ability to show ranges of nat "log" entries.
* | Change copyrights to the proper one.melifaro2014-09-051-7/+3
| |
* | Return setsockopt() directly.melifaro2014-09-051-4/+1
| | | | | | | | Suggested by: Steven Hartland at killing@multiplay.co.uk.
* | Sync to HEAD@r271160.melifaro2014-09-058-63/+87
|\ \ | |/
| * * 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
* | Use per-function errno handling instead of global one.melifaro2014-09-052-50/+36
| | | | | | | | Requested by: luigi
* | Add support for multi-field values inside ipfw tables.melifaro2014-08-313-137/+390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the last major change in given branch. Kernel changes: * Use 64-bytes structures to hold multi-value variables. * Use shared array to hold values from all tables (assume each table algo is capable of holding 32-byte variables). * Add some placeholders to support per-table value arrays in future. * Use simple eventhandler-style API to ease the process of adding new table items. Currently table addition may required multiple UH drops/ acquires which is quite tricky due to atomic table modificatio/swap support, shared array resize, etc. Deal with it by calling special notifier capable of rolling back state before actually performing swap/resize operations. Original operation then restarts itself after acquiring UH lock. * Bump all objhash users default values to at least 64 * Fix custom hashing inside objhash. Userland changes: * Add support for dumping shared value array via "vlist" internal cmd. * Some small print/fill_flags dixes to support u32 values. * valtype is now bitmask of <skipto|pipe|fib|nat|dscp|tag|divert|netgraph|limit|ipv4|ipv6>. New values can hold distinct values for each of this types. * Provide special "legacy" type which assumes all values are the same. * More helpers/docs following.. Some examples: 3:41 [1] zfscurr0# ipfw table mimimi create valtype skipto,limit,ipv4,ipv6 3:41 [1] zfscurr0# ipfw table mimimi info +++ table(mimimi), set(0) +++ kindex: 2, type: addr references: 0, valtype: skipto,limit,ipv4,ipv6 algorithm: addr:radix items: 0, size: 296 3:42 [1] zfscurr0# ipfw table mimimi add 10.0.0.5 3000,10,10.0.0.1,2a02:978:2::1 added: 10.0.0.5/32 3000,10,10.0.0.1,2a02:978:2::1 3:42 [1] zfscurr0# ipfw table mimimi list +++ table(mimimi), set(0) +++ 10.0.0.5/32 3000,0,10.0.0.1,2a02:978:2::1
* | Sync to HEAD@r270409.melifaro2014-08-2330-88/+1116
|\ \ | |/
| * 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
OpenPOWER on IntegriCloud