summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r270064,r270068,r270069,r270115,r270129,r270287,r270822,r271014,melifaro2015-08-154-0/+891
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r271524,r273541,r282967,r283009,r283364. Add support for reading i2c SFP/SFP+ data from NIC driver and presenting most interesting fields via ifconfig -v. This version supports Intel ixgbe driver only. Tested on: Cisco,Intel,Mellanox,ModuleTech,Molex transceivers * Add new net/sff8436.h containing constants used to access 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. 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. Sponsored by: Yandex LLC
* MFC: r285260rmacklem2015-08-081-2/+2
| | | | | | | | Since the case where secflavor < 0 indicates the security flavor is to be negotiated, it could be a Kerberized mount. As such, filling in the "principal" argument using the canonized host name makes sense. If it is negotiated as AUTH_SYS, the "principal" argument is meaningless but harmless.
* Fix patch(1) shell injection vulnerability via ed(1). [SA-15:18]delphij2015-08-051-0/+6
| | | | Fix routed remote denial of service vulnerability. [SA-15:19]
* MFC r285674:trasz2015-08-021-0/+4
| | | | | | Document suspend/resume notification in devd.conf(5). Sponsored by: The FreeBSD Foundation
* MFC r285673:trasz2015-08-021-1/+21
| | | | | | Add CARP events description to devd.conf(5). Sponsored by: The FreeBSD Foundation
* MFC r285735:ae2015-07-281-7/+4
| | | | | | | | lseek() allows an offset to be set beyond the end of file. Using it to check that partition has enough space to write bootcode doesn't work. Use the known size of provider instead. PR: 201504
* MFC r285796:jimharris2015-07-271-1/+2
| | | | | | nvmecontrol: read controller identify data before any log page operations Sponsored by: Intel
* MFC r282805:hrs2015-07-232-12/+1
| | | | | | | | | | - Remove ND6_IFF_IGNORELOOP. This functionality was useless in practice because a link where looped back NS messages are permanently observed does not work with either NDP or ARP for IPv4. - draft-ietf-6man-enhanced-dad is now RFC 7527. Approved by: re (gjb)
* MFC r271910, r273211:hrs2015-07-233-235/+223
| | | | | | | | | | | | | | | | | * Add -x waittime and -X timeout options for feature parity. These are equivalent to -W and -t options of ping(8). Different letters are used because both have already been used for another purposes in ping6(8). * Fix a problem that reply packets are not received when -i T option is set 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). Approved by: re (gjb)
* MFC: r285594allanjude2015-07-211-1/+7
| | | | | | | | | | | New partition flag for gpart, writes the 0xee partition in the pmbr in the second slot, rather than the first. Works around Lenovo legacy GPT boot issue PR: 184910 Approved by: re (gjb), marcel Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3140
* MFC: r285529brueffer2015-07-211-1/+1
| | | | | | | | | | | | | | | If ggated's exports_find() fails, the connection is removed before (trying to) report the problem to the client. sendfail() is called with an already closed socket and thus it fails to inform the client about the problem. Fix this by calling sendfail() before connection_remove(). PR: 195944 Submitted by: Fabian Keil Reviewed by: pjd Approved by: re (gjb)
* MFC: r285531brueffer2015-07-212-0/+2
| | | | | | | | | | | | | | Unbreak ggatec and ggatel on i386 after r238119, which added two more 'struct g_gate_ctl_create' fields. While the behaviour was technically undefined on other architectures as well, on the reporter's amd64 systems the uninitialized bytes the kernel cares about were always zero so everything worked as expected. PR: 197309, 199559 Submitted by: ota@j.email.ne.jp, Fabian Keil Reviewed by: pjd Approved by: re (gjb)
* MFC: r285037brueffer2015-07-141-1/+1
| | | | | | | | Add -b to the devlist usage info, forgotten in r260059. PR: 195094 Submitted by: robin.hahling@gw-computing.net Approved by: re (marius)
* MFC: r284290, r284323brueffer2015-07-131-9/+9
| | | | | | | | | Improve grammar. PR: 200673 Submitted by: Fabian Keil Obtained from: ElectroBSD Approved by: re (gjb)
* MFC: r285029brueffer2015-07-131-1/+1
| | | | | | | | Fix an obviously wrong boolean operator. PR: 200983 Submitted by: David Bindeman Approved by: re (gjb)
* MFH: r284250brueffer2015-06-241-1/+1
| | | | | | | Consistently use trailing whitespace in passphrase prompts. PR: 193496 Submitted by: Fabian Keil
* MFC r281929:trasz2015-06-212-5/+5
| | | | | | Fix growfs(8) build with debug enabled (make -DGFSDBG). Sponsored by: The FreeBSD Foundation
* MFC r282857:trasz2015-06-211-1/+23
| | | | | | Document RCTL events in devd.conf(5). Sponsored by: The FreeBSD Foundation
* MFC: r284531rmacklem2015-06-201-1/+4
| | | | | | | Document that a forced dismount of an NFSv3 mount when the NLM (rpc.lockd) is running can crash the system. Unfortunately this is not easy to fix, but I have left PR#200585 open.
* MFC, r284192:ken2015-06-165-2/+684
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r284192 | ken | 2015-06-09 15:39:38 -0600 (Tue, 09 Jun 2015) | 102 lines Add support for reading MAM attributes to camcontrol(8) and libcam(3). MAM is Medium Auxiliary Memory and is most commonly found as flash chips on tapes. This includes support for reading attributes and decoding most known attributes, but does not yet include support for writing attributes or reporting attributes in XML format. libsbuf/Makefile: Add subr_prf.c for the new sbuf_hexdump() function. This function is essentially the same function. libsbuf/Symbol.map: Add a new shared library minor version, and include the sbuf_hexdump() function. libsbuf/Version.def: Add version 1.4 of the libsbuf library. libutil/hexdump.3: Document sbuf_hexdump() alongside hexdump(3), since it is essentially the same function. camcontrol/Makefile: Add attrib.c. camcontrol/attrib.c: Implementation of READ ATTRIBUTE support for camcontrol(8). camcontrol/camcontrol.8: Document the new 'camcontrol attrib' subcommand. camcontrol/camcontrol.c: Add the new 'camcontrol attrib' subcommand. camcontrol/camcontrol.h: Add a function prototype for scsiattrib(). share/man/man9/sbuf.9: Document the existence of sbuf_hexdump() and point users to the hexdump(3) man page for more details. sys/cam/scsi/scsi_all.c: Add a table of known attributes, text descriptions and handler functions. Add a new scsi_attrib_sbuf() function along with a number of other related functions that help decode attributes. scsi_attrib_ascii_sbuf() decodes ASCII format attributes. scsi_attrib_int_sbuf() decodes binary format attributes, and will pass them off to scsi_attrib_hexdump_sbuf() if they're bigger than 8 bytes. scsi_attrib_vendser_sbuf() decodes the vendor and drive serial number attribute. scsi_attrib_volcoh_sbuf() decodes the Volume Coherency Information attribute that LTFS writes out. sys/cam/scsi/scsi_all.h: Add a number of attribute-related structure definitions and other defines. Add function prototypes for all of the functions added in scsi_all.c. sys/kern/subr_prf.c: Add a new function, sbuf_hexdump(). This is the same as the existing hexdump(9) function, except that it puts the result in an sbuf. This also changes subr_prf.c so that it can be compiled in userland for includsion in libsbuf. We should work to change this so that the kernel hexdump implementation is a wrapper around sbuf_hexdump() with a statically allocated sbuf with a drain. That will require a drain function that goes to the kernel printf() buffer that can take a non-NUL terminated string as input. That is because an sbuf isn't NUL-terminated until it is finished, and we don't want to finish it while we're still using it. We should also work to consolidate the userland hexdump and kernel hexdump implemenatations, which are currently separate. This would also mean making applications that currently link in libutil link in libsbuf. sys/sys/sbuf.h: Add the prototype for sbuf_hexdump(), and add another copy of the hexdump flag values if they aren't already defined. Ideally the flags should be defined in one place but the implemenation makes it difficult to do properly. (See above.) Sponsored by: Spectra Logic Corporation ------------------------------------------------------------------------
* MFC r273331, r273371, r275851:bryanv2015-06-143-0/+720
| | | | | | | | | - Add vxlan interface - Use the size of the Ethernet address, not the entire header, when copying into forwarding entry. - Prefix all the vxlan ifconfig commands so they are unique
* MFC r271603:bryanv2015-06-131-0/+1
| | | | Add DEF_CLONE_CMD_ARG2
* MFC r282809:ae2015-06-062-8/+36
| | | | | | | | | Add new socket ioctls SIOC[SG]TUNFIB to set FIB number of encapsulated packets on tunnel interfaces. Add support of these ioctls to gre(4), gif(4) and me(4) interfaces. For incoming packets M_SETFIB() should use if_fib value from ifnet structure, use proper value in gre(4) and me(4). Differential Revision: https://reviews.freebsd.org/D2462
* MFC r274246:ae2015-06-061-18/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Overhaul if_gre(4). Split it into two modules: if_gre(4) for GRE encapsulation and if_me(4) for minimal encapsulation within IP. gre(4) changes: * convert to if_transmit; * rework locking: protect access to softc with rmlock, protect from concurrent ioctls with sx lock; * correct interface accounting for outgoing datagramms (count only payload size); * implement generic support for using IPv6 as delivery header; * make implementation conform to the RFC 2784 and partially to RFC 2890; * add support for GRE checksums - calculate for outgoing datagramms and check for inconming datagramms; * add support for sending sequence number in GRE header; * remove support of cached routes. This fixes problem, when gre(4) doesn't work at system startup. But this also removes support for having tunnels with the same addresses for inner and outer header. * deprecate support for various GREXXX ioctls, that doesn't used in FreeBSD. Use our standard ioctls for tunnels. me(4): * implementation conform to RFC 2004; * use if_transmit; * use the same locking model as gre(4); PR: 164475 MFC r274289 (by bz): gcc requires variables to be initialised in two places. One of them is correctly used only under the same conditional though. For module builds properly check if the kernel supports INET or INET6, as otherwise various mips kernels without IPv6 support would fail to build. MFC r274964: Add ip_gre.h to ObsoleteFiles.inc.
* MFC r283641:pkelsey2015-06-041-2/+6
| | | | | | | Add CAP_FCNTL to the lease file capsicum rights, and limit to CAP_FCNTL_GETFL. Without CAP_FCNTL_GETFL, the lease file truncation in rewrite_client_leases() will fail to trim old data when rewriting the file with a lesser amount of data.
* MFC r265950 (by thomas):pjd2015-06-021-0/+2
| | | | Add mention of metadata version 7 in FreeBSD 10.0.
* MFC r283577:ae2015-06-021-1/+1
| | | | | | Print leading zeroes of UFS2 fs_id like we do for UFS1. PR: 156908
* MFC r282965:ae2015-05-312-2/+12
| | | | | | | | | | Add an ability accept encapsulated packets from different sources by one gif(4) interface. Add new option "ignore_source" for gif(4) interface. When it is enabled, gif's encapcheck function requires match only for packet's destination address. Differential Revision: https://reviews.freebsd.org/D2004 Sponsored by: Yandex LLC
* MFC r281236 -- extended media types in if_media.h.erj2015-05-291-6/+26
| | | | Approved by: jfv (mentor)
* MFC r282747:ngie2015-05-161-3/+1
| | | | | | | | Use MIN from sys/param.h instead of handrolling the macro Replace sys/types.h with sys/param.h per-style(9) Sponsored by: EMC / Isilon Storage Division
* MFC r279489:trasz2015-05-151-0/+7
| | | | | | | | Make the "automounted" flag work for FUSE filesystems. PR: 192852 Submitted by: taku at tackymt.homeip.net (earlier version) Sponsored by: The FreeBSD Foundation
* MFC r277170:trasz2015-05-151-1/+28
| | | | | | Add devd(8) notifications for creation and destruction of GEOM devices. Sponsored by: The FreeBSD Foundation
* MFC r282465:ae2015-05-131-1/+5
| | | | | | Add apple-boot, apple-hfs and apple-ufs aliases to MBR scheme. Sort DOSPTYP_* entries in diskmbr.h by value. Document these scheme-specific types in gpart(8).
* MFC r282434:gjb2015-05-111-1/+1
| | | | | | | | | | | | | | MFV r225523, r282431: r225523 (hrs): Import openresolv-3.4.4. r282431: Import openresolv-3.7.0. PR: 199854 Submitted by: yuri@rawbw.com Relnotes: yes Sponsored by: The FreeBSD Foundation
* MFC r261708, r261847, r268525, r274316, r274347, r275593,hiren2015-05-083-2/+21
| | | | | | | | | | | | | | | r276844, r276847, r279531, r279559, r279564, r279676 A bunch of IPv6 fixes by melifaro, hrs and ae Major changes: Simplify nd6_output_lle() Add refcounting to DAD and fix races and other errors Implement Enhanced DAD algorithm for IPv6 Suggested by: ae Tested by: Jason Wolfe <j at nitrology.com> Sponsored by: Limelight Networks
* MFC: r281324jgh2015-04-221-12/+14
| | | | | | | | | - ggatel.8 currently doesn't mention the 'rescue' command and documents a non-existing 'attach' command instead. - while here address a spelling error Approved by: wblock (mentor) Differential Revision: https://reviews.freebsd.org/D2346
* MFC: r280191:allanjude2015-04-161-1/+7
| | | | | | | Document that nextboot(8) doesn't work as expected with ZFS Approved by: eadler (mentor, implicit) Sponsored by: ScaleEngine Inc.
* MFC: r266774:allanjude2015-04-161-11/+34
| | | | | | | | | | improve ifconfig(8) man page by describing special behaviour of -l ether MFC: r267141: Style cleanups on ifconfig.8 Approved by: eadler (mentor, implicit) Sponsored by: ScaleEngine Inc.
* MFC r281320:pfg2015-04-141-2/+2
| | | | | | | Update documented OEM string in newfs_msdos(8). This was updated in r203868 to better match the naming scheme in other OSs that use FAT.
* MFC r280716,280767,280914:delphij2015-04-142-20/+17
| | | | | | | - Correct type for checkAgainst. - Staticify flags that are not used outside the file scope. - Fix warnings. - Constify parameters.
* MFC r266417 (bjk):delphij2015-04-141-7/+9
| | | | | | | | | | | | | | | Assorted updates to md5.1 Note that the -c argument's parameter is compared against the digest of the file, not the file. [1] Update the "current time" parentheticals for notes about reversing and colliding the hash functions. [1] Some general mdoc updates. PR: docs/188043 [1] Submitted by: Jamie Landeg-Jones [1]
* MFC 279951:jhb2015-04-091-5/+4
| | | | | | | | Simplify string mangling in ifmaybeload(). - Use strlcpy() instead of strcpy(). - Use strlcat() instead of a strlcpy() with a magic number subtracted from the length. - Replace strncmp(..., strlen(foo) + 1) with strcmp(...).
* MFC r280687: Make GEOM_PART work in presence of previous withered self.mav2015-04-091-3/+10
|
* MFC 280988:wblock2015-04-091-16/+15
| | | | Add articles, avoid use of "you", simplify a few sentences.
* MFC r280166:mav2015-03-311-32/+14
| | | | Make ATA power management commands to work on SCSI HBAs via PASS THROUGH.
* MFC r280249: Add camcontrol subcommands to control APM and AAM levels.mav2015-03-262-3/+99
| | | | Sponsored by: iXsystems, Inc.
* MFC r269854:ae2015-03-191-7/+6
| | | | | | | | | Remove duplicate entry. MFC r279935: Add GUID and alias for Apple Core Storage partition. PR: 196241
* Merge an applicable subset of r263234 from HEAD to stable/10:rwatson2015-03-193-5/+5
| | | | | | | | | | | | | Update most userspace consumers of capability.h to use capsicum.h instead. auditdistd is not updated as I will make the change upstream and then do a vendor import sometime in the next week or two. Note that a significant fraction does not apply, as FreeBSD 10 doesn't contain a Capsicumised ping, casperd, libcasper, etc. When these features are merged, the capsicum.h change will need to be merged with them. Sponsored by: Google, Inc.
* MFC r277799:trasz2015-03-071-2/+2
| | | | | | Fix sysctl name. Sponsored by: The FreeBSD Foundation
* MFC r279324:ae2015-03-051-1/+1
| | | | | | | | | When gpart(8) is trying automatically determine the first available block of free space after existing partition, take into account provider's stripeoffset, since the result will be adjusted to this value. PR: 197989
OpenPOWER on IntegriCloud