]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoIf daily_status_security_inline is set, the rc value needs to be
jhb [Tue, 25 Jun 2013 15:45:31 +0000 (15:45 +0000)]
If daily_status_security_inline is set, the rc value needs to be
forced to 3 so that the output of this script is always displayed.
In fact, setting this flag is identical to setting
daily_status_security_output to an empty string.  To make the logic
less confusing, change the behavior of daily_status_security_inline
such that it just forces daily_status_security_output to an empty
string and then applies the normal logic.

PR: conf/178611
Submitted by: Jason Unovitch <jason.unovitch@gmail.com>
MFC after: 3 days

11 years agoAdd bunch of names for Seagate and HGST vennor-specififc ASC/ASCQ codes.
mav [Tue, 25 Jun 2013 10:50:17 +0000 (10:50 +0000)]
Add bunch of names for Seagate and HGST vennor-specififc ASC/ASCQ codes.

11 years agoAdd test for SATA registers writability and skip using them if it failed.
mav [Tue, 25 Jun 2013 09:15:49 +0000 (09:15 +0000)]
Add test for SATA registers writability and skip using them if it failed.

There are some systems reported, where PCI BAR(5), used for SATA registers
access, is present, but not functional.  Attempt to use it brakes devices
detection logic.  Try to detect those cases on attach by setting and testing
some bits in SControl register.  If bits are unsettable, fallback to legacy
ATA without hot-plug detection, speed control/reporting, etc.

MFC after: 2 weeks

11 years agoRegenerate usb.conf after r252196.
kevlo [Tue, 25 Jun 2013 07:17:30 +0000 (07:17 +0000)]
Regenerate usb.conf after r252196.

Spotted by: rpaulo

11 years agoAdd support for D-Link DWA-131.
kevlo [Tue, 25 Jun 2013 06:43:04 +0000 (06:43 +0000)]
Add support for D-Link DWA-131.

11 years agoAdd Lenovo USB 2.0 Ethernet adapter to the list of supported
yongari [Tue, 25 Jun 2013 00:29:13 +0000 (00:29 +0000)]
Add Lenovo USB 2.0 Ethernet adapter to the list of supported
devices.

11 years agoAdd Lenovo USB 2.0 Ethernet adapter.
yongari [Tue, 25 Jun 2013 00:26:30 +0000 (00:26 +0000)]
Add Lenovo USB 2.0 Ethernet adapter.

PR: usb/179920
MFC After: 1 week

11 years agoDue to the routing related networking kernel redesign work
qingli [Tue, 25 Jun 2013 00:10:49 +0000 (00:10 +0000)]
Due to the routing related networking kernel redesign work
in FBSD 8.0, interface routes have been returened to the
applications without the RTF_GATEWAY bit. This incompatibility
has caused some issues with Zebra, Qugga and the like.
This patch provides the RTF_GATEWAY flag bit in returned interface
routes so to behave similarly to pre 8.0 systems.

Reviewed by:     hrs
Verified by:     mackn at opendns dot com

11 years agoFlag mpt(4) as supporting unmapped I/O; all necessary conversion actually
marius [Mon, 24 Jun 2013 21:27:15 +0000 (21:27 +0000)]
Flag mpt(4) as supporting unmapped I/O; all necessary conversion actually
already has been done as part of r246713 except for a comment update.

MFC after: 3 days

11 years agogcc: configuration fix.
pfg [Mon, 24 Jun 2013 21:13:58 +0000 (21:13 +0000)]
gcc:  configuration fix.

-Fix configuration support for FreeBSD 10 and 11.

Note this change is based on GCC-SVN-131197 with permission
by gerald@ .

Reported by: jmallet

11 years agoMore whitespace.
dteske [Mon, 24 Jun 2013 20:58:54 +0000 (20:58 +0000)]
More whitespace.

11 years agoWhitespace.
dteske [Mon, 24 Jun 2013 20:39:07 +0000 (20:39 +0000)]
Whitespace.

11 years agogcc: add some configuration and references.
pfg [Mon, 24 Jun 2013 20:38:27 +0000 (20:38 +0000)]
gcc: add some configuration and references.

-Add configure support for FreeBSD 10 and 11.
-Adapt a threading fix to gnu POSIX95 (which we don't use).
-Refer to a bug fix for the disabled vrptree support.

This is all useless in our current build but it is included
for convenience in case someone may want to re-package our
older gcc.

Reviewed by: gerald (long ago)

11 years agoAdd missing Obsolete Files
eadler [Mon, 24 Jun 2013 20:36:12 +0000 (20:36 +0000)]
Add missing Obsolete Files

Submitted by: Kurt Lidl <lidl@pi-coral.com>

11 years agoRemove request to email suggestions and fixes to the author.
eadler [Mon, 24 Jun 2013 19:57:25 +0000 (19:57 +0000)]
Remove request to email suggestions and fixes to the author.
He is no longer involved with the FreeBSD project.

While here: remove "no known bugs" and related.  This isn't present in other manual pages.

PR: docs/179914

11 years agoMake the order of operations for lib/msun more clear.
eadler [Mon, 24 Jun 2013 19:12:17 +0000 (19:12 +0000)]
Make the order of operations for lib/msun more clear.

Tested with md5 sum of object code

Reported by: swildner@DragonFlyBSD.org
Submitted by: bde

11 years agoDisable hw.pci.realloc_bars by default. It wasn't needed for the original
jhb [Mon, 24 Jun 2013 18:30:44 +0000 (18:30 +0000)]
Disable hw.pci.realloc_bars by default.  It wasn't needed for the original
tester of this fix, and realloc_bars breaks some other cases as a small
BAR that is reallocated can end up grabbing space needed by a much larger
BAR in the existing window of a PCI-PCI bridge.

MFC after: 3 days

11 years agoTypo in comment.
glebius [Mon, 24 Jun 2013 13:36:16 +0000 (13:36 +0000)]
Typo in comment.

11 years agoRevert r252126, r252124, r252121.
gjb [Mon, 24 Jun 2013 09:18:41 +0000 (09:18 +0000)]
Revert r252126, r252124, r252121.

Submitted by: hrs

11 years agoWhen RX checksum offloading is active, AX88772B will prepend a
yongari [Mon, 24 Jun 2013 05:18:31 +0000 (05:18 +0000)]
When RX checksum offloading is active, AX88772B will prepend a
checksum header.  The header contains a received frame length but
the defined length for AX88772B is different with other ASIX
controllers.  When the RX checksum is off, AX88772B controller does
not prepend a checksum header so driver has to use normal header
length mask.
This change should fix RX errors when RX checksum offloading is
off.

Tested by: kevlo
MFC After: 1 week

11 years agoDelete the nd6 entries associated with an off-link prefix
qingli [Mon, 24 Jun 2013 05:01:13 +0000 (05:01 +0000)]
Delete the nd6 entries associated with an off-link prefix
if the same prefix cannot be found on an alternative
interface.

Reviewed by: hrs
MFC after: 1 week

11 years agoDocument the "-o" option added by r252138.
rmacklem [Mon, 24 Jun 2013 02:24:22 +0000 (02:24 +0000)]
Document the "-o" option added by r252138.

MFC after: 10 days

11 years agoAdd a new "-o" option to the gssd which forces gss_init_sec_context()
rmacklem [Mon, 24 Jun 2013 02:19:23 +0000 (02:19 +0000)]
Add a new "-o" option to the gssd which forces gss_init_sec_context()
to use DES and the associated old style GSS initialization token.
This appears to be required for some non-FreeBSD servers to
get a kerberized NFS mount to work. Also, ignore some signals when daemonized,
which might fix the gssd from "disappearing" without leaving a core dump.
Given the tight timeframe for the FreeBSD9.2 release, I have
committed this while waiting for code review. I will commit
changes recommended by the review in a separate commit.

Reviewed by: dfr (pending)
MFC after: 10 days

11 years agoBump shlib for dialog because ABI has changed when version 1.2 was imported
bapt [Sun, 23 Jun 2013 21:59:52 +0000 (21:59 +0000)]
Bump shlib for dialog because ABI has changed when version 1.2 was imported

Reviewed by: kib

11 years agoRemove variable added by ru@ in r94940 that is no longer used by source or ports...
eadler [Sun, 23 Jun 2013 20:34:54 +0000 (20:34 +0000)]
Remove variable added by ru@ in r94940 that is no longer used by source or ports in share/mk/sys.mk

PR: conf/155737
Reviewed by: ed (two years ago!)
Exp-Run by: bdrewery

11 years agoTrim copyright years, and add the current year.
gjb [Sun, 23 Jun 2013 20:24:43 +0000 (20:24 +0000)]
Trim copyright years, and add the current year.

11 years agoRevert previous change to uark.c (restore previous rev), which was
thomas [Sun, 23 Jun 2013 20:22:49 +0000 (20:22 +0000)]
Revert previous change to uark.c (restore previous rev), which was
committed by mistake.

11 years agoRewrap after previous commit.
gjb [Sun, 23 Jun 2013 20:20:34 +0000 (20:20 +0000)]
Rewrap after previous commit.

11 years agoFix minor typo in comment
thomas [Sun, 23 Jun 2013 20:19:51 +0000 (20:19 +0000)]
Fix minor typo in comment

11 years agoAdd a new macro, release.current.release, to denote the head/ branch
gjb [Sun, 23 Jun 2013 20:19:00 +0000 (20:19 +0000)]
Add a new macro, release.current.release, to denote the head/ branch
with the -RELEASE suffix.  This fixes the incorrect text on the -CURRENT
errata page from showing '10.0-CURRENT' followed by 'until 9.1-RELEASE is
released.'

11 years agoAdd missing copyright years.
gjb [Sun, 23 Jun 2013 19:47:59 +0000 (19:47 +0000)]
Add missing copyright years.

11 years agoCache the Open Firmware CPU properties at attach time, so we don't always
jhibbits [Sun, 23 Jun 2013 14:20:54 +0000 (14:20 +0000)]
Cache the Open Firmware CPU properties at attach time, so we don't always
enter it at runtime to get static data.

11 years agoAdd a newline character to the end of the "Check URL again" error message
dteske [Sun, 23 Jun 2013 10:51:26 +0000 (10:51 +0000)]
Add a newline character to the end of the "Check URL again" error message
because long URLs do not induce extra height despite wrapping by dialog(1).
NOTE: For even longer lines, the cursor up/down keys work to scroll through

11 years agoMerge r248313 from stable/9 sysinstall(8) to head bsdconfig(8):
dteske [Sun, 23 Jun 2013 10:48:26 +0000 (10:48 +0000)]
Merge r248313 from stable/9 sysinstall(8) to head bsdconfig(8):
Add support for installation directly via HTTP.

While we're here, remove the menu-item for Passive FTP (since moving to
ftp(1) and switching FTPMODE to `auto' by default -- see r251613 -- the
single remaining FTP menu-item works for both ftp.f.o and ftp-archive.f.o;
previously each requiring separately active versus passive both work with
the `auto' setting). In scripting you still have mediaSetFTPActive and
mediaSetFTPPassive but the remaining FTP menu-item uses mediaSetFTP which
defaults to `auto' (aforementioned SVN r251613).

11 years agoImplement the $probe_only parameter (previously unimplemented).
dteske [Sun, 23 Jun 2013 10:04:23 +0000 (10:04 +0000)]
Implement the $probe_only parameter (previously unimplemented).

11 years agoFine-tune the parsing of the URL. Re-order, comment, and add debugging to
dteske [Sun, 23 Jun 2013 09:41:47 +0000 (09:41 +0000)]
Fine-tune the parsing of the URL. Re-order, comment, and add debugging to
each case of unique URL format.

11 years agoDefine and use e2fs_lbn_t in ext2fs.
pfg [Sun, 23 Jun 2013 02:44:42 +0000 (02:44 +0000)]
Define and use e2fs_lbn_t in ext2fs.

In line to what is done in UFS, define an internal type
e2fs_lbn_t for the logical block numbers.

This change is basically a no-op as the new type is unchanged
(int32_t) but it may be useful as bumping this may be required
for ext4fs.

Also, as pointed out by Bruce Evans:

-Use daddr_t for daddr in ext2_bmaparray(). This seems to
improve reliability with the reallocblks option.
- Add a cast to the fsbtodb() macro as in UFS.

Reviewed by: bde
MFC after: 3 days

11 years agoIf MAKE_CONF and/or SRC_CONF are set and not character devices,
gjb [Sat, 22 Jun 2013 22:12:24 +0000 (22:12 +0000)]
If MAKE_CONF and/or SRC_CONF are set and not character devices,
copy to chroot to use with release build.

Submitted by: Garrett Cooper (original version)
Approved by: kib (mentor)
MFC after: 1 week

11 years agoFix r252074 so that it builds on 64bit arches.
rmacklem [Sat, 22 Jun 2013 21:58:21 +0000 (21:58 +0000)]
Fix r252074 so that it builds on 64bit arches.

11 years agoFix a code typo that prevented the probing of the current defaultrouter
dteske [Sat, 22 Jun 2013 03:54:17 +0000 (03:54 +0000)]
Fix a code typo that prevented the probing of the current defaultrouter
in-order to pre-populate the editor.

11 years agoOops, previous revision (r252084) broke non-full-path resolution (e.g.,
dteske [Sat, 22 Jun 2013 03:50:14 +0000 (03:50 +0000)]
Oops, previous revision (r252084) broke non-full-path resolution (e.g.,
ftp://ftp.freebsd.org or ftp://ftp.freebsd.org/). Now both full-path and
non-full resolution is working regardless of trailing-slash.

11 years agoTrim the trailing `/' from the ftp_dir when validating that the directory
dteske [Sat, 22 Jun 2013 03:44:49 +0000 (03:44 +0000)]
Trim the trailing `/' from the ftp_dir when validating that the directory
exists on the FTP server. This now means that when you specify a full-path
to the repository on the FTP server that it doesn't matter whether you have
a trailing `/' or not.

11 years agoTake advantage of the fact that f_getvar evaluates the $var_to_get parameter
dteske [Sat, 22 Jun 2013 02:57:52 +0000 (02:57 +0000)]
Take advantage of the fact that f_getvar evaluates the $var_to_get parameter
within braces, allowing all manner of parameter expansions (properly quoted
or escaped, of course).

11 years agoFix a regression introduced by r251967, resulting in:
dteske [Sat, 22 Jun 2013 02:51:22 +0000 (02:51 +0000)]
Fix a regression introduced by r251967, resulting in:

/usr/libexec/bsdconfig/110.mouse/mouse: 134:
Syntax error: ";;" unexpected (expecting "fi")

11 years agoFix a regression introduced by r251967, resulting in:
dteske [Sat, 22 Jun 2013 02:47:54 +0000 (02:47 +0000)]
Fix a regression introduced by r251967, resulting in:

/usr/libexec/bsdconfig/080.console/console: 136:
Syntax error: ";;" unexpected (expecting "fi")

11 years agoAdd missing local declaration.
dteske [Fri, 21 Jun 2013 23:21:16 +0000 (23:21 +0000)]
Add missing local declaration.

11 years agoRemove unused library include.
dteske [Fri, 21 Jun 2013 23:18:29 +0000 (23:18 +0000)]
Remove unused library include.

11 years agoAlphabetize library includes.
dteske [Fri, 21 Jun 2013 23:13:55 +0000 (23:13 +0000)]
Alphabetize library includes.

11 years agoStyle.
dteske [Fri, 21 Jun 2013 22:53:51 +0000 (22:53 +0000)]
Style.

11 years agoTypo and grammar fixes to comments.
dteske [Fri, 21 Jun 2013 22:47:31 +0000 (22:47 +0000)]
Typo and grammar fixes to comments.

11 years agoThe NFSv4.1 LayoutCommit operation requires a valid offset and length.
rmacklem [Fri, 21 Jun 2013 22:46:16 +0000 (22:46 +0000)]
The NFSv4.1 LayoutCommit operation requires a valid offset and length.
(0, 0 is not sufficient) This patch a loop for each file layout, using
the offset, length of each file layout in a separate LayoutCommit.

11 years agoWhen the NFSv4.1 client is writing to a pNFS Data Server (DS), the
rmacklem [Fri, 21 Jun 2013 22:26:18 +0000 (22:26 +0000)]
When the NFSv4.1 client is writing to a pNFS Data Server (DS), the
file's size attribute does not get updated. As such, it is necessary
to invalidate the attribute cache before clearing NMODIFIED for pNFS.

MFC after: 2 weeks

11 years agoSince some NFSv4 servers enforce the requirement for a reserved port#,
rmacklem [Fri, 21 Jun 2013 19:41:30 +0000 (19:41 +0000)]
Since some NFSv4 servers enforce the requirement for a reserved port#,
enable use of the (no)resvport mount option for NFSv4. I had thought
that the RFC required that non-reserved port #s be allowed, but I couldn't
find it in the RFC.

MFC after: 2 weeks

11 years agoRename run(4) firmware file from runfw to run.fw. Previous name was the
gonzo [Fri, 21 Jun 2013 18:16:54 +0000 (18:16 +0000)]
Rename run(4) firmware file from runfw to run.fw. Previous name was the
same as top-level target name for "device runfw" kernel option and
caused cyclic dependancy that lead to kernel build breakage

Module change is not strictly required and done for name unification sake

PR: conf/175751
Submitted by:     Issei <i10a at herbmint.jp>

11 years agoCall sshd_precmd instead of sshd_configtest when the operator
delphij [Fri, 21 Jun 2013 17:23:19 +0000 (17:23 +0000)]
Call sshd_precmd instead of sshd_configtest when the operator
requests reload or restart, which, in addition of testing the
configuration, will also generate host keys when they are not
present (previous behavior).

Obtained from: FreeNAS
Ok'ed by: bdrewery, des
MFC after: 1 week

11 years agoSwitch ZFS mutex_owner macro to use sx_xholder as its now exported via sx.h
smh [Fri, 21 Jun 2013 15:55:03 +0000 (15:55 +0000)]
Switch ZFS mutex_owner macro to use sx_xholder as its now exported via sx.h

MFC after: 1 week

11 years agoFix intermittent ZFS lock panic when kernel is compiled with debugging caused
smh [Fri, 21 Jun 2013 15:47:10 +0000 (15:47 +0000)]
Fix intermittent ZFS lock panic when kernel is compiled with debugging caused
by access of uninitialized smlock in mmutex_init.

MFC after: 1 week

11 years agoFixed ZFS zpool freeze (debug command) not processing due to invalid ioctl call syntax.
smh [Fri, 21 Jun 2013 15:30:46 +0000 (15:30 +0000)]
Fixed ZFS zpool freeze (debug command) not processing due to invalid ioctl call syntax.

MFC after: 1 week

11 years agoFixed import of destroyed ZFS pools failing due to vdev_geom incorrectly
smh [Fri, 21 Jun 2013 12:02:09 +0000 (12:02 +0000)]
Fixed import of destroyed ZFS pools failing due to vdev_geom incorrectly
preventing config loads from devices associated with destroyed pools.

Reviewed by: avg
MFC after: 1 week

11 years agoFix kmod_*stat_inc() after r249276. The incorrect code actually
glebius [Fri, 21 Jun 2013 06:36:26 +0000 (06:36 +0000)]
Fix kmod_*stat_inc() after r249276. The incorrect code actually
increased the pointer, not the memory it points to.

In collaboration with: kib
Reported & tested by: Ian FREISLICH <ianf clue.co.za>
Sponsored by: Nginx, Inc.

11 years agoNon-virtualised hhook points are supported as of r251732.
lstewart [Fri, 21 Jun 2013 03:37:35 +0000 (03:37 +0000)]
Non-virtualised hhook points are supported as of r251732.

MFC after: 1 week
X-MFC with: 251732

11 years ago- Use length of _PATH_DEV instead of a hardcoded value[*].
hrs [Fri, 21 Jun 2013 01:47:22 +0000 (01:47 +0000)]
- Use length of _PATH_DEV instead of a hardcoded value[*].
- Use MD_NAME for "md".

Pointed out by: trasz [*]
MFC after: 1 week

11 years agoCorrected ATA Passthrough defines from decimal to hex
smh [Thu, 20 Jun 2013 21:38:08 +0000 (21:38 +0000)]
Corrected ATA Passthrough defines from decimal to hex

Reviewed by: scottl
MFC after: 1 week

11 years agoPorts switched from dialog to dialog4ports some time ago.
eadler [Thu, 20 Jun 2013 21:16:46 +0000 (21:16 +0000)]
Ports switched from dialog to dialog4ports some time ago.

PR: docs/179785
Repored by: Kevin Oberman <rkoberman@gmail.com>
Submitted by: "Ilya A. Arkhipov" <rum1cro@yandex.ru>
MFC After: 3 days

11 years ago - Add a per-zone lock for zones without kegs.
jeff [Thu, 20 Jun 2013 19:08:12 +0000 (19:08 +0000)]
 - Add a per-zone lock for zones without kegs.
 - Be more explicit about zone vs keg locking.  This functionally changes
   almost nothing.
 - Add a size parameter to uma_zcache_create() so we can size the buckets.
 - Pass the zone to bucket_alloc() so it can modify allocation flags
   as appropriate.
 - Fix a bug in zone_alloc_bucket() where I missed an address of operator
   in a failure case.  (Found by pho)

Sponsored by: EMC / Isilon Storage Division

11 years agoPull in r183984 from llvm trunk:
dim [Thu, 20 Jun 2013 18:25:10 +0000 (18:25 +0000)]
Pull in r183984 from llvm trunk:

  Make PrologEpilogInserter save/restore all callee saved registers in
  functions which call __builtin_unwind_init()

  __builtin_unwind_init() is an undocumented gcc intrinsic which has
  this effect, and is used in libgcc_eh.

  Goes part of the way toward fixing PR8541.

This obsoletes the ugly hack to libgcc's unwind code from r245272, and
should also work for other arches, so revert the hack too.

11 years agoDocument RA_RECURSED and RA_NOTRECURSED.
jhb [Thu, 20 Jun 2013 17:26:25 +0000 (17:26 +0000)]
Document RA_RECURSED and RA_NOTRECURSED.

MFC after: 3 days

11 years agoeturn -1 when the specified backing store file is not found in the md
hrs [Thu, 20 Jun 2013 17:01:02 +0000 (17:01 +0000)]
eturn -1 when the specified backing store file is not found in the md
device list.

MFC after: 1 week

11 years ago- Add "-f file" support to listing mode (-l). When a -f option is
hrs [Thu, 20 Jun 2013 14:30:16 +0000 (14:30 +0000)]
- Add "-f file" support to listing mode (-l).  When a -f option is
  specified, only md(4) devices which have the specified file as backing
  store are displayed.
- Use MD_NAME instead of "md".
- Use _PATH_DEV instead of "/dev/".

MFC after: 1 week

11 years agoAllow immediate operand.
kib [Thu, 20 Jun 2013 14:30:04 +0000 (14:30 +0000)]
Allow immediate operand.

Sponsored by: The FreeBSD Foundation

11 years agoUse corresponding macros to update statistics for AH, ESP, IPIP, IPCOMP,
ae [Thu, 20 Jun 2013 11:44:16 +0000 (11:44 +0000)]
Use corresponding macros to update statistics for AH, ESP, IPIP, IPCOMP,
PFKEY.

MFC after: 2 weeks

11 years agoUse IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics
ae [Thu, 20 Jun 2013 09:55:53 +0000 (09:55 +0000)]
Use IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics
accounting.

MFC after: 2 weeks

11 years agoFix a code typo in a case-statement match expression that prevented IPv6
dteske [Thu, 20 Jun 2013 07:29:42 +0000 (07:29 +0000)]
Fix a code typo in a case-statement match expression that prevented IPv6
URLs with port designator from working properly (e.g. http://[::1]:80/).

11 years agoWhen the fall-back of a case-statement is the last thing executed in a
dteske [Thu, 20 Jun 2013 05:51:44 +0000 (05:51 +0000)]
When the fall-back of a case-statement is the last thing executed in a
while-loop _and_ all prior matches in the same case-statement either break
or continue, we can safely break the fall-back out of the case-statement.
This should improve readability and allow for longer-lines by reducing the
level of indentation by-one for the fall-back case.
(a continuation of SVN r252019)

11 years agoWhen the fall-back of a case-statement is the last thing executed in a
dteske [Thu, 20 Jun 2013 05:48:08 +0000 (05:48 +0000)]
When the fall-back of a case-statement is the last thing executed in a
while-loop _and_ all prior matches in the same case-statement either break
or continue, we can safely break the fall-back out of the case-statement.
This should improve readability and allow for longer-lines by reducing the
level of indentation by-one for the fall-back case.

11 years agoRemove pedanticism and consolidate some logic.
dteske [Thu, 20 Jun 2013 05:42:21 +0000 (05:42 +0000)]
Remove pedanticism and consolidate some logic.

11 years agoAdd debugging (for a case that shouldn't arise, but makes it more obvious
dteske [Thu, 20 Jun 2013 05:40:11 +0000 (05:40 +0000)]
Add debugging (for a case that shouldn't arise, but makes it more obvious
if a menu addition is made in one plce but forgotten in another).

11 years ago- Add CIDR notation support like 192.168.1-2.10-16/24 to $ifconfig_IF_aliasN.
hrs [Thu, 20 Jun 2013 02:29:49 +0000 (02:29 +0000)]
- Add CIDR notation support like 192.168.1-2.10-16/24 to $ifconfig_IF_aliasN.
  This is an extended version of ipv4_addr_IF which supports both IPv4 and
  IPv6, and multiple range specifications.  To avoid to generate too many
  addresses, the maximum number of the generated addresses is currently
  limited to 31.

- Add $ifconfig_IF_aliases, which accepts multiple IP aliases in a variable.

- ipv6_prefix_IF now supports !/64 prefix length.  In addition to the old
  64-bit format (2001:db8:1:1), a full 128-bit format like 2001:db8:1:1::/64
  is supported.

- Replace ifconfig command with $IFCONFIG_CMD variable to support
  a dry-run mode in the future.

- Remove IP aliases before removing all of IPv4 addresses when doing
  "rc.d/netif down".

- Add a DAD wait to network6_getladdr() because it is possible to fail to
  configure an EUI64 address when ipv6_prefix_IF is specified.

A summary of the supported ifconfig_* variables is as follows:

 # IPv4 configuration.
 ifconfig_em0="inet 192.168.0.1"
 # IPv6 configuration.
 ifconfig_em0_ipv6="inet6 2001:db8::1/64"
 # IPv4 address range spec.  Now deprecated.
 ipv4_addr_em0="10.2.1.1-10"
 # IPv6 alias.
 ifconfig_em0_alias0="inet6 2001:db8:5::1 prefixlen 70"
 # IPv4 alias.
 ifconfig_em0_alias1="inet 10.2.2.1/24"
 # IPv4 alias with range spec w/o AF keyword (backward compat).
 ifconfig_em0_alias2="10.3.1.1-10/32"
 # IPv6 alias with range spec.
 ifconfig_em0_alias3="inet6 2001:db8:20-2f::1/64"
 # ifconfig_IF_aliases is just like ifconfig_IF_aliasN.
 ifconfig_em0_aliases="inet 10.3.3.201-204/24 inet6 2001:db8:210-213::1/64 inet 10.1.1.1/24"
 # IPv6 alias (backward compat)
 ipv6_ifconfig_em0_alias0="inet6 2001:db8:f::1/64"
 # IPv6 alias w/o AF keyword (backward compat)
 ipv6_ifconfig_em0_alias1="2001:db8:f:1::1/64"
 # IPv6 prefix.
 ipv6_prefix_em0="2001:db8::/64"

Tested by: Kimmo Paasiala

11 years agoOnly enable svn on amd64/ia64/sparc64/i386.
peter [Thu, 20 Jun 2013 02:26:32 +0000 (02:26 +0000)]
Only enable svn on amd64/ia64/sparc64/i386.

11 years agoTry to fix build of apr on FreeBSD/arm.
kientzle [Thu, 20 Jun 2013 02:04:03 +0000 (02:04 +0000)]
Try to fix build of apr on FreeBSD/arm.

11 years agoRename some prefixes in the Block Group Descriptor fields to ext4bgd_
pfg [Thu, 20 Jun 2013 00:00:33 +0000 (00:00 +0000)]
Rename some prefixes in the Block Group Descriptor fields to ext4bgd_

Change prefix to avoid confusion and denote that these fields
are generally only available starting with ext4.

MFC after: 3 days

11 years agoFix a mystery cut-n-paste corruption from the previous commit.
scottl [Wed, 19 Jun 2013 23:09:10 +0000 (23:09 +0000)]
Fix a mystery cut-n-paste corruption from the previous commit.

Submitted by: Brenden Fabeny

11 years agoMark geom_mirror as capable of unmapped i/o
scottl [Wed, 19 Jun 2013 21:52:32 +0000 (21:52 +0000)]
Mark geom_mirror as capable of unmapped i/o

Obtained from: Netflix
MFC after: 3 days

11 years agoUse PIM6STAT_INC() and MRT6STAT_INC() macros for IPv6 multicast
ae [Wed, 19 Jun 2013 21:50:17 +0000 (21:50 +0000)]
Use PIM6STAT_INC() and MRT6STAT_INC() macros for IPv6 multicast
statistics accounting.

MFC after: 2 weeks

11 years agoUse RIP6STAT_INC() macro for raw ip6 statistics accounting.
ae [Wed, 19 Jun 2013 20:48:34 +0000 (20:48 +0000)]
Use RIP6STAT_INC() macro for raw ip6 statistics accounting.

MFC after: 2 weeks

11 years agoFix a couple of typos that broke buildworld for me.
truckman [Wed, 19 Jun 2013 19:44:57 +0000 (19:44 +0000)]
Fix a couple of typos that broke buildworld for me.

Reviewed by: peter

11 years agoStyle -- no ;; needed on fallback clause within case-statement.
dteske [Wed, 19 Jun 2013 18:44:55 +0000 (18:44 +0000)]
Style -- no ;; needed on fallback clause within case-statement.

11 years agoWhitespace.
dteske [Wed, 19 Jun 2013 18:32:18 +0000 (18:32 +0000)]
Whitespace.

11 years agoWhitespace and comments.
dteske [Wed, 19 Jun 2013 18:13:58 +0000 (18:13 +0000)]
Whitespace and comments.

11 years agoAlphabetize reserved-word (resword) registration.
dteske [Wed, 19 Jun 2013 17:14:59 +0000 (17:14 +0000)]
Alphabetize reserved-word (resword) registration.

11 years agoAlphabetize includes.
dteske [Wed, 19 Jun 2013 17:13:16 +0000 (17:13 +0000)]
Alphabetize includes.

11 years agoUse ICMP6STAT_INC() macro for ICMPv6 errors accounting.
ae [Wed, 19 Jun 2013 15:59:21 +0000 (15:59 +0000)]
Use ICMP6STAT_INC() macro for ICMPv6 errors accounting.

MFC after: 2 weeks

11 years agoFix an unfortunate typo with the compat shims
scottl [Wed, 19 Jun 2013 05:11:30 +0000 (05:11 +0000)]
Fix an unfortunate typo with the compat shims

Obtained from: Netflix
MFC after: now

11 years agoSome clarifications and updates for the comments, mostly retrieved
kib [Wed, 19 Jun 2013 05:05:16 +0000 (05:05 +0000)]
Some clarifications and updates for the comments, mostly retrieved
from Bruce Evans.  Trim the trailing spaces.

MFC after: 1 week

11 years agoThe SUSv4tc1 requires that pthread_setcancelstate() shall be not a
kib [Wed, 19 Jun 2013 04:47:41 +0000 (04:47 +0000)]
The SUSv4tc1 requires that pthread_setcancelstate() shall be not a
cancellation point.  When enabling the cancellation, only process the
pending cancellation for asynchronous mode.

Reported and reviewed by: Kohji Okuno <okuno.kohji@jp.panasonic.com>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

11 years agoWhen a previous call to sbsndptr() leaves sb->sb_sndptroff at the start of an
lstewart [Wed, 19 Jun 2013 03:08:01 +0000 (03:08 +0000)]
When a previous call to sbsndptr() leaves sb->sb_sndptroff at the start of an
mbuf that was fully consumed by the previous call, the mbuf ptr returned by the
current call ends up being the previous mbuf in the sb chain to the one that
contains the data we want.

This does not cause any observable issues because the mbuf copy routines happily
walk the mbuf chain to get to the data at the moff offset, which in this case
means they effectively skip over the mbuf returned by sbsndptr().

We can't adjust sb->sb_sndptr during the previous call for this case because the
next mbuf in the chain may not exist yet. We therefore need to detect the
condition and make the adjustment during the current call.

Fix by detecting the special case of moff being at the start of the next mbuf in
the chain and adjust the required accounting variables accordingly.

Reviewed by: andre
MFC after: 2 weeks

11 years ago - Persist the caller's flags in the bucket allocation flags so we don't
jeff [Wed, 19 Jun 2013 02:30:32 +0000 (02:30 +0000)]
 - Persist the caller's flags in the bucket allocation flags so we don't
   lose a M_NOVM when we recurse into a bucket allocation.

Sponsored by: EMC / Isilon Storage Division

11 years agoBandaid: mips doesn't seem to have the full set of atomics builtins. I
peter [Wed, 19 Jun 2013 02:16:04 +0000 (02:16 +0000)]
Bandaid: mips doesn't seem to have the full set of atomics builtins.  I
will investigate more.

11 years agoRemove extra whitespace lines.
dteske [Wed, 19 Jun 2013 00:24:08 +0000 (00:24 +0000)]
Remove extra whitespace lines.

11 years agoChange a humongous if-statement at the end of f_install_zoneinfo_file() into
dteske [Wed, 19 Jun 2013 00:13:54 +0000 (00:13 +0000)]
Change a humongous if-statement at the end of f_install_zoneinfo_file() into
an early return, allowing a huge chunk of code to be indented one-level less