summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r318160, 318176: Persistently store NIC's hardware MAC address, and addrpokala2017-05-181-0/+36
| | | | | | | | | | | | | | | | | | | | | a way to retrive it NOTE: Due to restructuring, the merges didn't apply cleanly; the resulting change is almost identical to what went into stable/11, but in some cases in different locations. The MAC address reported by `ifconfig ${nic} ether' does not always match the address in the hardware, as reported by the driver during attach. In particular, NICs which are components of a lagg(4) interface all report the same MAC. When attaching, the NIC driver passes the MAC address it read from the hardware as an argument to ether_ifattach(). Keep a second copy of it, and create ioctl(SIOCGHWADDR) to return it. Teach `ifconfig' to report it along with the active MAC address. PR: 194386 (cherry picked from commit 2ce46e31d62424593e08c3853efe8c1e9283aba2)
* Merge remote-tracking branch 'origin/releng/10.3' into RELENG_2_3Renato Botelho2016-08-121-10/+11
|\
| * Release 6 errata notices for 10.3-RELEASE, all related to Microsoft Hyper-V.glebius2016-08-121-10/+11
| | | | | | | | | | Submitted by: Dexuan Cui <decui microsoft.com>, gjb Approved by: so
* | Merge remote-tracking branch 'origin/releng/10.3' into RELENG_2_3Renato Botelho2016-03-041-1/+1
|\ \ | |/
| * MFC 285730gnn2016-03-031-1/+1
| | | | | | | | | | | | | | | | Only report the lack of ALTQ support if pfctl is using verbose (-v) mode. PR: 194935 Submitted by: Jim Thompson Approved by: re (gjb)
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-03-021-1/+1
|\ \ | |/
| * MFC r295969:ae2016-03-021-1/+1
| | | | | | | | | | | | | | | | Fix bug in filling and handling ipfw's O_DSCP opcode. Due to integer overflow CS4 token was handled as BE. PR: 207459 Approved by: re (gjb)
* | Importing pfSense patch pfaltq_interface_bw.diffLuiz Otavio O Souza2016-02-171-8/+5
| | | | | | | | Sets default speed to 1G.
* | Revert "Importing pfSense patch pfaltq_interface_bw.diff"Luiz Otavio O Souza2016-02-171-5/+8
| | | | | | | | This reverts commit 9b3c3fc58b6b3162259b33fc56746f42a48e0301.
* | Importing pfSense patch pf_static_tracker.diffLuiz Otavio O Souza2016-01-283-1/+25
| | | | | | | | This version fixes the issue with 'State Creations' in pfctl -vvsr.
* | Revert "Importing pfSense patch pf_static_tracker.diff"Luiz Otavio O Souza2016-01-283-25/+1
| | | | | | | | This reverts commit 9068fb423dfecae0f8b611d4bc558dd6cb2e2bd7.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-252-5/+53
|\ \ | |/
| * MFC r292573asomers2016-01-181-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix "mount -a" for NFS and ZFS filesystems with shared mountpoints sbin/mount.c Check whether an fstab entry has the same fstype as a mounted filesystem before declaring it to be mounted. This will allow NFS filesystems that share a mountpoint with a local filesystem to be automatically mounted at boot. This is not such an unusual situation. For example, if somebody uses the standard installer with a ZFS root, he'll get a /usr/home filesystem, even though he may choose to mount /usr/home over NFS.
| * MFC r292831: Add SFF-8024 Extended Specification Compliance.melifaro2016-01-171-4/+44
| | | | | | | | | | Submitted by: markb_mellanox.com Differential Revision: https://reviews.freebsd.org/D4666
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-1319-73/+373
|\ \ | |/
| * MFC r290689:trasz2016-01-121-8/+9
| | | | | | | | | | | | Fix resource leaks in error cases. Sponsored by: The FreeBSD Foundation
| * MFC r290548:trasz2016-01-125-22/+316
| | | | | | | | | | | | | | | | | | | | | | | | Userspace part of reroot support. This makes it possible to change the root filesystem without full reboot, using "reboot -r". This can be used to to eg. boot from a temporary md_image preloaded by loader(8), setup an iSCSI session, and continue booting from rootfs mounted over iSCSI. Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3693
| * MFC r289110:trasz2016-01-121-4/+5
| | | | | | | | | | | | | | | | | | | | Make geom_nop(4) collect statistics on all types of BIOs, not just reads and writes. PR: kern/198405 Submitted by: Matthew D. Fuller <fullermd at over-yonder dot net> Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3679
| * MFC: r287842allanjude2016-01-121-9/+6
| | | | | | | | | | | | Make ifconfig always exit with an error code if an important ioctl fails PR: 203062
| * MFC r292020asomers2016-01-111-6/+17
| | | | | | | | | | | | | | Increase devd's client socket buffer size to 256KB. This is not as large as it looks, because we'll hit the sockbuf's mbuf limit long before hitting its data limit. A 256KB data limit allows creating a ZFS pool on about 450 drives without overflowing the client socket buffers.
| * MFC r287429:trasz2016-01-111-1/+0
| | | | | | | | | | | | | | The dumpfs(8) utility doesn't actually use disktab(5); remove it from "SEE ALSO". Sponsored by: The FreeBSD Foundation
| * MFC r287396:trasz2016-01-119-14/+18
| | | | | | | | | | | | | | | | | | | | | | It's 2015, and some people are still trying to use fdisk and then go asking what debug flags to set for GEOM to make it work. Advice them to use gpart(8) instead. Something similar should probably done with disklabel, but I need to rewrite the disklabel examples first. Sponsored by: The FreeBSD Foundation
| * MFC 289113:trasz2016-01-112-6/+9
| | | | | | | | | | | | Add 'p' postfix to mdconfig(8). Sponsored by: The FreeBSD Foundation
| * MFC r292057:ae2016-01-101-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make detection of GPT a bit more reliable. When we are detecting a partition table and didn't find PMBR, try to read backup GPT header from the last sector and if it is correct, assume that we have GPT. Differential Revision: https://reviews.freebsd.org/D4282 MFC r292058: Remove a note about damaged PMBR. Now GPT will be detected automatically with such corruption. Relnotes: yes
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-079-14/+34
|\ \ | |/
| * MFC r289677:bdrewery2016-01-076-7/+7
| | | | | | | | Fix a ton of speelling errors
| * MFC: r292266 & r292947smh2016-01-062-7/+24
| | | | | | | | | | | | Add flag to disable inital reboot(8) userland sync Sponsored by: Multiplay
| * MFC r287920:rstone2016-01-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix /sbin/route to never look up (invalid) interface names through DNS /sbin/route has a bug where if it is passed an interface name that does not exist, it falls through and winds up interpreting it as a hostname. It fails out eventually, but on a system where DNS lookup is broken you can end up waiting for up to 60 seconds waiting for the DNS lookup to timeout. I'm not quite sure what happens if the DNS lookup somehow succeeds but I doubt that can end well. Reviewed by: markj, cem MFC after: 2 weeks Sponsored by: EMC/Isilon Storage Division
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2015-12-173-5/+8
|\ \ | |/
| * MFC r292048:ngie2015-12-171-5/+6
| | | | | | | | | | | | | | | | | | | | | | Don't leak rsector/sector in mp_label(..) Use calloc instead of malloc + memset(.., 0, ..) when allocating sector Differential Revision: https://reviews.freebsd.org/D4450 Reported by: cppcheck Reviewed by: mav Sponsored by: EMC / Isilon Storage Division
| * MFC r292005:ngie2015-12-161-0/+1
| | | | | | | | | | | | | | | | Call va_end on ap when vsnprintf fails in run_cmd(..) to clean up the variable state Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division
| * MFC r290236kp2015-12-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | pfctl: Fix uninitialised veriable In pfctl_set_debug() we used 'level' without ever initialising it. We correctly parsed the option, but them failed to actually assign the parsed value to 'level' before performing to ioctl() to configure the debug level. PR: 202996 Submitted by: Andrej Kolontai
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2015-12-106-11/+2
|\ \ | |/
| * MFC r291329:bdrewery2015-12-045-9/+0
| | | | | | | | Remove redundant DPSRCS which were already in SRCS.
| * MFC r290083:bdrewery2015-12-041-2/+2
| | | | | | | | Use more appropriate ${SHAREDIR} rather than /usr/share.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2015-12-011-4/+19
|\ \ | |/
| * MFC r291207:smh2015-11-301-4/+19
| | | | | | | | | | | | Fix dumpon compatibility with dumpdev kenv Sponsored by: Multiplay
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2015-11-161-1/+16
|\ \ | |/
| * MFC r290450:smh2015-11-131-1/+16
| | | | | | | | | | | | Add sysctl to control LACP strict compliance default Sponsored by: Multiplay
* | MFC r287009:Luiz Otavio O Souza2015-11-114-9/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ALTQ(9) support for the CoDel algorithm. CoDel is a parameterless queue discipline that handles variable bandwidth and RTT. It can be used as the single queue discipline on an interface or as a sub discipline of existing queue disciplines such as PRIQ, CBQ, HFSC, FAIRQ. Differential Revision: https://reviews.freebsd.org/D3272 Reviewd by: rpaulo, gnn (previous version) Obtained from: pfSense Sponsored by: Rubicon Communications (Netgate) TAG: CODEL
* | MFC r284777:Luiz Otavio O Souza2015-11-114-4/+337
| | | | | | | | | | | | | | | | | | | | | | | | ALTQ FAIRQ discipline import from DragonFLY Differential Revision: https://reviews.freebsd.org/D2847 Reviewed by: glebius, wblock(manpage) Approved by: gnn(mentor) Obtained from: pfSense Sponsored by: Netgate TAG: FAIRQ
* | Revert "Importing pfSense patch fairq.RELENG_10.diff"Luiz Otavio O Souza2015-11-114-339/+5
| | | | | | | | | | | | This reverts commit 570dae5561e54cd2703f546b04a3fa029c92dc62. TAG: FAIRQ
* | Revert "Importing pfSense patch altq_codel.diff"Luiz Otavio O Souza2015-11-114-174/+34
| | | | | | | | | | | | This reverts commit cf3bb1a7166bec431631defe01c8d4e706a99638. TAG: CODEL
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2015-11-111-1/+1
|\ \ | |/
| * MFC r289913,r289916:ngie2015-11-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r289913: Use 't' (bits) not 'i' (bytes) for describing MRIE (aka "Method of Reporting Informational Exceptions") in the SCSI mode database as the field described in X3T10/94-190 (revision 4; page 2, table 1) [1.] is 4 bits wide, not 4 bytes wide 1. http://ftp.t10.org/ftp/t10/document.94/94-190r4.pdf Bug 200619 Reported by: Michael Baptist <mbaptist@isilon.com> Submitted by: Lars Skodje <lskodje@isilon.com> Sponsored by: EMC / Isilon Storage Division r289916: Limit RESOLUTION_MAX to INT_MAX, not UINT_MAX (all spelled out) so the mode value isn't always clipped to -1 when (resolution * size) == 32, which would have been the case with values => {4i,32b,32t}. This seems to have been broken in r64382. PR: 200619 Reported by: Michael Baptist Submitted by: Lars Skodje Sponsored by: EMC / Isilon Storage Division
* | Merge branch 'stable/10' into develRenato Botelho2015-11-0318-66/+28
|\ \ | |/
| * MFC r289229:ngie2015-11-011-2/+2
| | | | | | | | | | | | | | | | | | Replace references to /dev/acd0 with /dev/cd0 atapicd(4) was replaced by cd(4) with the atacam work done by mav@ and then removed in r249083 X-MFC to: stable/10
| * MFC r288963:delphij2015-10-291-1/+1
| | | | | | | | | | Now that we own the code, use arc4random(3) unconditionally and remove the corresponding HAVE_ARC4RANDOM conditions.
| * MFC r288305:ngie2015-10-2616-63/+25
| | | | | | | | Replace N #defines with nitems to simplify ifconfig code slightly
* | Merge branch 'stable/10' into develRenato Botelho2015-10-2112-126/+139
|\ \ | |/
OpenPOWER on IntegriCloud