| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Approved by: pluknet
Found with: Coverity Prevent(tm)
CID: 10125
|
|
|
|
|
|
|
|
|
| |
the now default 32K/4K filesystem the same as the number of inodes in
the previously default 16K/2K filesystem.
PR: bin/16265
Reported by: Olivier Cochard-Labbe <olivier@cochard.me>
MFC: 4 weeks (9 is the only affected branch)
|
|
|
|
|
|
|
|
|
|
| |
The DIOCGSECTORSIZE takes u_int * as an argument, using long *
causes failures on big-endian targets.
Diagnosed by: Michiel Boland <boland37 xs4all nl>
PR: sparc64/163460
Tested by: pho (x86), flo (sparc64)
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
| |
Remove C99 initializers: they don't help in this case.
Set errno to 0 before strtoll() (from NetBSD).
PR: 151850
Suggested by: bde
Approved by: jhb (Mentor)
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
warnings in sbin/hastd/lzf.c are only emitted for i386 and amd64, and
there they can be safely ignored.
MFC after: 1 week
|
| |
|
|
|
|
|
| |
Inspired by: r228555
MFC after: 1 week
|
|
|
|
|
| |
Detected by: clang
MFC after: 1 week
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
|
| |
offloading on vlans and document the new option.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
| |
devd.hh, there are redeclared as classes. Fix the inconsistency.
MFC after: 1 week
|
|
|
|
|
|
| |
we might as well use memcpy; strlcpy is really unnecessary here.
MFC after: 1 week
|
|
|
|
|
|
|
| |
strlcpy appearing to be the size of the source buffer, instead of the
destination.
MFC after: 1 week
|
|
|
|
|
|
|
| |
disruptive to actually fix all the warnings, and the code hasn't been
maintained for several years.
MFC after: 1 week
|
|
|
|
|
|
| |
not being literals.
MFC after: 1 week
|
|
|
|
|
|
| |
alignment warnings than using WARNS=3, and it also works for clang.
MFC after: 1 week
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
|
| |
format warnings and conditional operators. (See LLVM PR 11313 for more
information.)
MFC after: 1 week
|
|
|
|
|
|
| |
not being literals.
MFC after: 1 week
|
| |
|
|
|
|
|
| |
and thus ifconfig(8) needs recompile, it is a good chance to make
parameter checks on SIOCAIFADDR arguments more strict.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
from scratch, copying needed functionality from the old implemenation
on demand, with a thorough review of all code. The main change is that
interface layer has been removed from the CARP. Now redundant addresses
are configured exactly on the interfaces, they run on.
The CARP configuration itself is, as before, configured and read via
SIOCSVH/SIOCGVH ioctls. A new prefix created with SIOCAIFADDR or
SIOCAIFADDR_IN6 may now be configured to a particular virtual host id,
which makes the prefix redundant.
ifconfig(8) semantics has been changed too: now one doesn't need
to clone carpXX interface, he/she should directly configure a vhid
on a Ethernet interface.
To supply vhid data from the kernel to an application the getifaddrs(8)
function had been changed to pass ifam_data with each address. [1]
The new implementation definitely closes all PRs related to carp(4)
being an interface, and may close several others. It also allows
to run a single redundant IP per interface.
Big thanks to Bjoern Zeeb for his help with inet6 part of patch, for
idea on using ifam_data and for several rounds of reviewing!
PR: kern/117000, kern/126945, kern/126714, kern/120130, kern/117448
Reviewed by: bz
Submitted by: bz [1]
|
|
|
|
| |
Pointy hat to: glebius
|
| |
|
|
|
|
|
| |
Found by: Clang Static Analyzer
MFC after: 1 week
|
|
|
|
|
|
|
| |
always return 0.
Found by: Clang Static Analyzer
MFC after: 1 week
|
|
|
|
|
| |
Found by: Clang Static Analyzer
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
| |
that changed 0.0.0.0/0.0.0.0 prefix to 0.0.0.0/255.0.0.0.
In the r228313 this behavior was fixed, and since dhclient-script
got broken.
I'm not sure this fix is a perfect one, it just changes
dhclient-script to set 0.0.0.0/255.0.0.0 explicitly.
PR: kern/163206
|
|
|
|
|
|
| |
This tool only consists of a single C file, so we can simply mark
everything except main() static. This seems to shave off about 8% of the
binary size.
|
|
|
|
|
|
| |
The global variables and functions provided by rcorder.c are not used in
the other C files, as the other C files only provide memory allocation
and hash functions. This reduces the binary size by 10%.
|
|
|
|
|
| |
All global variables and functions are marked static. Simply because
this is an enum, doesn't mean we can't do so as well.
|
|
|
|
|
| |
While there, mark the global variable dohalt static, as reboot(8) only
consists of a single C file.
|
|
|
|
|
| |
While there, make the vendor list const and add appropriate keywords to
functions that use this list.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The "domain-search" option (option 119) allows a DHCP server to publish
a list of implicit domain suffixes used during name lookup. This option
is described in RFC 3397.
For instance, if the domain-search option says:
".example.org .example.com"
and one wants to resolve "foobar", the resolver will try:
1. "foobar.example.org"
2. "foobar.example.com"
The file /etc/resolv.conf is updated with a "search" directive if the
DHCP server provides "domain-search".
A regression test suite is included in this patch under
tools/regression/sbin/dhclient.
PR: bin/151940
Sponsored by Yakaz (http://www.yakaz.com)
|
|
|
|
|
| |
fwdownload.c is derived from Andre Albsmeier's fwdownload.c, which was
written from scratch but was inspired by Marc's original idea and code.
|
|
|
|
|
|
|
| |
display the descriptions of specified nodes.
Reported by: Jason Hellenthal jhell of dataix net
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Firmware can be reprogrammed on devices from Hitachi, HP, IBM, Plextor,
Quantum, and Seagate. At least one device from each manufacturer has
been tested with some version of this code, and it has been used to
update thousands of drives so far.
The man page suggests having a backup of the drive's data, and the
operation must be confirmed, either interactively or on the command
line. (This is the same as the confirmation on the format command.)
This work is largely derived from fwprog.c by Andre Albsmeier.
Submitted by: Nima Misaghian
Sponsored by: Sandvine Incorporated
MFC after: 3 months
|
|
|
|
|
| |
PR: kern/162739
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
Correct GUID to GPT in RECOVERING section.
Reviewed by: ae
Approved by: gjb (mentor)
MFC after: 1 week
|
|
|
|
|
| |
Approved by: gjb (mentor)
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
existing sections to refer to the new one. Rearrange partitioning scheme
list so MBR and EBR types are together. Also add several corrections for
grammar, clarity, and consistency.
Approved by: gjb (mentor)
MFC after: 1 week
|
|
|
|
|
|
|
| |
set properly for the mask argument.
Since I'd like to improve argument sanity checking in kernel
side, in in_control(), fix this.
|
|
|
|
|
| |
Reviewed by: rmacklem
MFC after: 1 week
|
|
|
|
|
|
| |
PR: bin/146541
Submitted by: bjk
Approved by: bjk
|
|
|
|
|
|
| |
Submitted by: eadler
Approved by: simon
MFC after: 3 days
|
|
|
|
|
|
|
|
|
| |
PR: bin/146541
Submitted by: eadler
Reviewed by: jhell@dataix.net
Approved by: secteam (cperciva)
Approved by: cperciva
MFC after: 3 weeks
|
| |
|
|
|
|
|
| |
Submitted by: Himali Patel <himali.patel@sibridgetech.com>
Sponsored by: Sibridge Technologies
|
| |
|