]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoImplement ratelimiting for debug messages. For now, allow at most
emax [Fri, 1 Aug 2008 00:36:43 +0000 (00:36 +0000)]
Implement ratelimiting for debug messages. For now, allow at most
one message per second. In the future might add a sysctl knob for
each socket family to fine tune this.

MFC after: 1 week

16 years agoUgh. Set svn:mergeinfo correctly.
des [Fri, 1 Aug 2008 00:34:37 +0000 (00:34 +0000)]
Ugh.  Set svn:mergeinfo correctly.

16 years agoCatch up with reality.
des [Fri, 1 Aug 2008 00:28:50 +0000 (00:28 +0000)]
Catch up with reality.

16 years agoRevert an old hack I put in to replace S/Key with OPIE. We haven't used
des [Fri, 1 Aug 2008 00:27:48 +0000 (00:27 +0000)]
Revert an old hack I put in to replace S/Key with OPIE.  We haven't used
that code in ages - we use pam_opie(8) instead - so this is a NOP.

16 years agoIncrease maximum input queue size limit for raw Bluetooth HCI sockets.
emax [Fri, 1 Aug 2008 00:16:40 +0000 (00:16 +0000)]
Increase maximum input queue size limit for raw Bluetooth HCI sockets.

MFC after: 3 days

16 years agoFix locking bug, i.e. lock "wildcard" matched pcb before return.
emax [Fri, 1 Aug 2008 00:13:32 +0000 (00:13 +0000)]
Fix locking bug, i.e. lock "wildcard" matched pcb before return.

16 years agoAdd missing #include for strlen()
des [Thu, 31 Jul 2008 23:33:26 +0000 (23:33 +0000)]
Add missing #include for strlen()

16 years agounset TARGET_CPUTYPE and TARGET_BIG_ENDIAN when building the kernel
sam [Thu, 31 Jul 2008 23:04:00 +0000 (23:04 +0000)]
unset TARGET_CPUTYPE and TARGET_BIG_ENDIAN when building the kernel
to silence compiler complaints when cross-building

Reviewed by: phk
MFC after: 2 weeks

16 years agoEnhance pmap_change_attr(). Specifically, avoid 2MB page demotions, cache
alc [Thu, 31 Jul 2008 22:45:28 +0000 (22:45 +0000)]
Enhance pmap_change_attr().  Specifically, avoid 2MB page demotions, cache
mode changes, and cache and TLB invalidation when some or all of the
specified range is already mapped with the specified cache mode.

Submitted by: Magesh Dhasayyan

16 years agoAdd some tests for acos*(), asin*(), atan*(), and atan2*().
das [Thu, 31 Jul 2008 22:43:38 +0000 (22:43 +0000)]
Add some tests for acos*(), asin*(), atan*(), and atan2*().

16 years agoAdd implementations of acosl(), asinl(), atanl(), atan2l(),
das [Thu, 31 Jul 2008 22:41:26 +0000 (22:41 +0000)]
Add implementations of acosl(), asinl(), atanl(), atan2l(),
and cargl().

Reviewed by: bde
sparc64 testing resources from: remko

16 years agoOops, restore the recent changes to make startup messages quieter.
jhb [Thu, 31 Jul 2008 22:13:14 +0000 (22:13 +0000)]
Oops, restore the recent changes to make startup messages quieter.

16 years agoParse sysctl settings from /etc/sysctl.conf.local after /etc/sysctl.conf
jhb [Thu, 31 Jul 2008 21:57:35 +0000 (21:57 +0000)]
Parse sysctl settings from /etc/sysctl.conf.local after /etc/sysctl.conf
if it exists.  This mirrors similar behavior for /boot/loader.conf and
/etc/rc.conf.

Obtained from: Yahoo!
MFC after: 1 week

16 years agoIn mac_bsdextended's auditctl and acct policy access control checks,
rwatson [Thu, 31 Jul 2008 20:49:12 +0000 (20:49 +0000)]
In mac_bsdextended's auditctl and acct policy access control checks,
return success if the passed vnode pointer is NULL (rather than
panicking).  This can occur if either audit or accounting are
disabled while the policy is running.

Since the swapoff control has no real relevance to this policy,
which is concerned about intent to write rather than water under the
bridge, remove it.

PR:             kern/126100
Reported by:    Alan Amesbury <amesbury at umn dot edu>
MFC after:      3 days

16 years agoremove socketvar.h, add more selective includes
kmacy [Thu, 31 Jul 2008 20:28:58 +0000 (20:28 +0000)]
remove socketvar.h, add more selective includes

16 years agomove sockbuf locking macros in to sockbuf.h
kmacy [Thu, 31 Jul 2008 20:27:50 +0000 (20:27 +0000)]
move sockbuf locking macros in to sockbuf.h

16 years agoAdd thr_pread_{int,long,ptr} and thr_pwrite_{int,long,ptr} to
marcel [Thu, 31 Jul 2008 20:25:52 +0000 (20:25 +0000)]
Add thr_pread_{int,long,ptr} and thr_pwrite_{int,long,ptr} to
help abstract the sizes and endianness of the primary types of
the target.  These currently use the native characteristics.

16 years agoSet WARNS=1.
das [Thu, 31 Jul 2008 20:11:37 +0000 (20:11 +0000)]
Set WARNS=1.

I believe I've committed all the bits necessary to make this compile
on all supported architectures. :crosses fingers:

16 years agoThe high part of the mantissa is 64 bits on sparc64.
das [Thu, 31 Jul 2008 20:09:47 +0000 (20:09 +0000)]
The high part of the mantissa is 64 bits on sparc64.

16 years agoAs in other parts of libm, mark a few constants as volatile to prevent
das [Thu, 31 Jul 2008 19:57:50 +0000 (19:57 +0000)]
As in other parts of libm, mark a few constants as volatile to prevent
spurious optimizations. gcc doesn't support FENV_ACCESS, so when it
folds constants, it assumes that the rounding mode is always the
default and floating point exceptions never matter.

16 years agoTry to make this code slightly less painful to read.
des [Thu, 31 Jul 2008 17:15:21 +0000 (17:15 +0000)]
Try to make this code slightly less painful to read.

16 years agoCurrently, BSM audit pathname token generation for chrooted or jailed
csjp [Thu, 31 Jul 2008 16:57:41 +0000 (16:57 +0000)]
Currently, BSM audit pathname token generation for chrooted or jailed
processes are not producing absolute pathname tokens.  It is required
that audited pathnames are generated relative to the global root mount
point.  This modification changes our implementation of audit_canon_path(9)
and introduces a new function: vn_fullpath_global(9) which performs a
vnode -> pathname translation relative to the global mount point based
on the contents of the name cache.  Much like vn_fullpath,
vn_fullpath_global is a wrapper function which called vn_fullpath1.

Further, the string parsing routines have been converted to use the
sbuf(9) framework.  This change also removes the conditional acquisition
of Giant, since the vn_fullpath1 method will not dip into file system
dependent code.

The vnode locking was modified to use vhold()/vdrop() instead the vref()
and vrele().  This will modify the hold count instead of modifying the
user count.  This makes more sense since it's the kernel that requires
the reference to the vnode.  This also makes sure that the vnode does not
get recycled we hold the reference to it. [1]

Discussed with: rwatson
Reviewed by: kib [1]
MFC after: 2 weeks

16 years agoCleanup for WARNS 3.
marcel [Thu, 31 Jul 2008 16:26:58 +0000 (16:26 +0000)]
Cleanup for WARNS 3.

16 years agoMFp4 (//depot/projects/tcpecn/):
rpaulo [Thu, 31 Jul 2008 15:10:09 +0000 (15:10 +0000)]
MFp4 (//depot/projects/tcpecn/):

  TCP ECN support. Merge of my GSoC 2006 work for NetBSD.
  TCP ECN is defined in RFC 3168.

Partly reviewed by: dwmalone, silby
Obtained from: NetBSD

16 years agoAdds support for the SCTP_PORT_REUSE option
rrs [Thu, 31 Jul 2008 11:08:30 +0000 (11:08 +0000)]
Adds support for the SCTP_PORT_REUSE option
Fixes a refcount bug found in the process

Obtained from: With the help of Michael Tuexen

16 years agoFurther synchronization of copyrights, licenses, white space, etc from
rwatson [Thu, 31 Jul 2008 09:54:35 +0000 (09:54 +0000)]
Further synchronization of copyrights, licenses, white space, etc from
Apple and from the OpenBSM vendor tree.

Obtained from: Apple Inc., TrustedBSD Project
MFC after: 3 days

16 years agoCleanup for WARNS 2.
marcel [Thu, 31 Jul 2008 05:25:52 +0000 (05:25 +0000)]
Cleanup for WARNS 2.

16 years agoEliminate recomputation of the PDE by pmap_pde_attr().
alc [Thu, 31 Jul 2008 04:42:42 +0000 (04:42 +0000)]
Eliminate recomputation of the PDE by pmap_pde_attr().

16 years agoFix LINT
emax [Thu, 31 Jul 2008 03:51:53 +0000 (03:51 +0000)]
Fix LINT

MFC after: 3 months

16 years agoData type fix
jfv [Thu, 31 Jul 2008 02:22:53 +0000 (02:22 +0000)]
Data type fix

16 years agoUnbreak the build by creating opt_nfs.h
ps [Thu, 31 Jul 2008 02:13:36 +0000 (02:13 +0000)]
Unbreak the build by creating opt_nfs.h

16 years agoUnbreak the build by including sys/socketvar.h
ps [Thu, 31 Jul 2008 01:52:04 +0000 (01:52 +0000)]
Unbreak the build by including sys/socketvar.h

16 years agoAdd a -q[uiet] flag for scripts.
obrien [Thu, 31 Jul 2008 00:55:29 +0000 (00:55 +0000)]
Add a -q[uiet] flag for scripts.

16 years agoInclude netinet/tcp_lro.h, unbreak the build
ps [Wed, 30 Jul 2008 23:54:23 +0000 (23:54 +0000)]
Include netinet/tcp_lro.h, unbreak the build

16 years agoHook up Bluetooth SCO sockets code to the build
emax [Wed, 30 Jul 2008 22:42:17 +0000 (22:42 +0000)]
Hook up Bluetooth SCO sockets code to the build

MFC after: 3 months

16 years agoIntroduce support for Bluetooth SCO sockets. This is based on older
emax [Wed, 30 Jul 2008 22:41:23 +0000 (22:41 +0000)]
Introduce support for Bluetooth SCO sockets. This is based on older
code that was revisted.

MFC after: 3 months

16 years agoAdd igb driver to the default kernel
jfv [Wed, 30 Jul 2008 22:30:49 +0000 (22:30 +0000)]
Add igb driver to the default kernel

16 years agoAdd igb to the default kernel
jfv [Wed, 30 Jul 2008 22:27:38 +0000 (22:27 +0000)]
Add igb to the default kernel

MFC after:ASAP

16 years agoChange Makefile to reflect new directory structure
jfv [Wed, 30 Jul 2008 22:06:38 +0000 (22:06 +0000)]
Change Makefile to reflect new directory structure

MFC after:ASAP

16 years agoChange to build module with new directory tree
jfv [Wed, 30 Jul 2008 22:05:06 +0000 (22:05 +0000)]
Change to build module with new directory tree

MFC after:ASAP

16 years agoAlter kernel build to work with new dev/e1000 structure.
jfv [Wed, 30 Jul 2008 22:01:32 +0000 (22:01 +0000)]
Alter kernel build to work with new dev/e1000 structure.
This makes both em and igb, or either alone build and
work in the static kernel.

MFC after:ASAP

16 years agoMerge of the source for igb and em into dev/e1000, this
jfv [Wed, 30 Jul 2008 21:56:53 +0000 (21:56 +0000)]
Merge of the source for igb and em into dev/e1000, this
proved to be necessary to make the static drivers work
in EITHER/OR or BOTH configurations. Modules will still
build in sys/modules/igb or em as before.

This also updates the igb driver for support for the 82576
adapter, adds shared code fixes, and etc....

MFC after: ASAP

16 years agoOne more whitespace nit.
jhb [Wed, 30 Jul 2008 21:23:32 +0000 (21:23 +0000)]
One more whitespace nit.

16 years agoAdd a regression test for r181017.
stefanf [Wed, 30 Jul 2008 21:18:52 +0000 (21:18 +0000)]
Add a regression test for r181017.

Submitted by: simon

16 years agoAdd POSIX -p flag to make(1).
ed [Wed, 30 Jul 2008 21:18:38 +0000 (21:18 +0000)]
Add POSIX -p flag to make(1).

This article [1] describes the -p flag for make(1):

Write to standard output the complete set of macro definitions and
target descriptions. The output format is unspecified.

We already support a similar flag (-d g1), but unlike -p, it still
executes commands. Our implementation just turns it into -d g1, but also
sets flag `printGraphOnly', which will cause make(1) to skip execution.

[1] http://www.opengroup.org/onlinepubs/009695399/utilities/make.html

Reviewed by: imp
PR: standards/99960

16 years agoA few more whitespace fixes.
jhb [Wed, 30 Jul 2008 21:18:08 +0000 (21:18 +0000)]
A few more whitespace fixes.

16 years agoIf the kernel has run out of metadata for swap, then explicitly panic()
jhb [Wed, 30 Jul 2008 21:12:15 +0000 (21:12 +0000)]
If the kernel has run out of metadata for swap, then explicitly panic()
instead of emitting a warning before deadlocking.

MFC after: 1 month

16 years agoWhitespace tweak.
jhb [Wed, 30 Jul 2008 21:07:56 +0000 (21:07 +0000)]
Whitespace tweak.

16 years agoPass the correct flags to expandarg() for NFROMFD and NTOFD. This fixes a
stefanf [Wed, 30 Jul 2008 21:07:04 +0000 (21:07 +0000)]
Pass the correct flags to expandarg() for NFROMFD and NTOFD.  This fixes a
segmentation fault when the argument expands to an empty string.

Reported by: simon
MFC after: 3 weeks

16 years agoTrim some noise from some #ifdef's. This had leaked into the compat32
jhb [Wed, 30 Jul 2008 21:01:51 +0000 (21:01 +0000)]
Trim some noise from some #ifdef's.  This had leaked into the compat32
support for bpf(4) due to hacks in the Y! tree for a truss32 binary
(since superseded by native support for 32-bit binaries in truss itself).

MFC after: 1 week

16 years agofix includes for post sockbuf re-factor
kmacy [Wed, 30 Jul 2008 20:08:34 +0000 (20:08 +0000)]
fix includes for post sockbuf re-factor

16 years agoUse single byte read and write operations to toggle the BIOS and OS
jhb [Wed, 30 Jul 2008 19:16:53 +0000 (19:16 +0000)]
Use single byte read and write operations to toggle the BIOS and OS
semaphores rather than 4 byte operations.

MFC after: 1 month

16 years agoThe original adduser/rmuser scripts in Perl used to modify the PATH
jhb [Wed, 30 Jul 2008 18:37:21 +0000 (18:37 +0000)]
The original adduser/rmuser scripts in Perl used to modify the PATH
setting.  When the scripts were converted to Bourne shell, this was
removed.  The adduser script was changed to use an explicit path for
the pw(8) command so that /usr/sbin did not have to be in the user's
PATH.  The rmuser script continued to assume that /usr/sbin was in the
user's path, however.  This fixes the rmuser script to use an explicit
path for pw(8) similar to adduser.

MFC after: 2 weeks

16 years agoThe behaviour of the lockmgr going back at least to the 4.4BSD-Lite2 was
kib [Wed, 30 Jul 2008 18:16:06 +0000 (18:16 +0000)]
The behaviour of the lockmgr going back at least to the 4.4BSD-Lite2 was
to downgrade the exclusive lock to shared one when exclusive lock owner
requested shared lock. New lockmgr panics instead.

The vnode_pager_lock function requests shared lock on the vnode backing
the OBJT_VNODE, and can be called when the current thread already holds
an exlcusive lock on the vnode. For instance, it happens when handling
page fault from the VOP_WRITE() uiomove that writes to the file, with
the faulted in page fetched from the vm object backed by the same file.
We then get the situation described above.

Verify whether the vnode is already exclusively locked by the curthread
and request recursed exclusive vnode lock instead of shared, if true.

Reported by: gallatin
Discussed with: attilio

16 years agoThis updates the ixgbe driver to Intel internal version 1.4.7
jfv [Wed, 30 Jul 2008 18:15:18 +0000 (18:15 +0000)]
This updates the ixgbe driver to Intel internal version 1.4.7
Shared code changes, core driver fixes, vlan event/filter support

Also Kip Macy's fix to allow any number of queues, thanks Kip!

16 years agoSet all of the "optimum performance" PHY registers for the 15D parts as
jhb [Wed, 30 Jul 2008 17:28:49 +0000 (17:28 +0000)]
Set all of the "optimum performance" PHY registers for the 15D parts as
well as the 15C since it seems to be required in practice.  The Linux
natsemi.c driver mostly does this as well.

PR: kern/112179
Submitted by: Mark Willson  mark - hydrus org uk
MFC after: 1 week

16 years agoSIS_SETBIT() already does a read/modify/write operation, so there isn't
jhb [Wed, 30 Jul 2008 17:21:32 +0000 (17:21 +0000)]
SIS_SETBIT() already does a read/modify/write operation, so there isn't
a reason to read the register twice.

MFC after: 1 week

16 years agocorrect description of how to clear a desired channel
sam [Wed, 30 Jul 2008 16:22:52 +0000 (16:22 +0000)]
correct description of how to clear a desired channel

Pointed out by: Chris Buechler
MFC after: 1 week

16 years agoAccording to a proposed Norwegian standard for alphabetization of which
des [Wed, 30 Jul 2008 15:37:13 +0000 (15:37 +0000)]
According to a proposed Norwegian standard for alphabetization of which
I've obtained a draft, <u:> is indeed equivalent to u (to my surprise),
and <th> sorts immediately after z.

The correct ordering is algorithmic (based on the EOR) and can not be
accurately represented as a table.

16 years agoRemove the use of lbolt from the VFS syncer.
ed [Wed, 30 Jul 2008 12:39:18 +0000 (12:39 +0000)]
Remove the use of lbolt from the VFS syncer.

It seems we only use `lbolt' inside the VFS syncer and the TTY layer
now.  Because I'm planning to replace the TTY layer next month, there's
no reason to keep `lbolt' if it's only used in a single thread inside
the kernel.

Because the syncer code wanted to wake up the syncer thread before the
timeout, it called sleepq_remove(). Because we now just use a condvar(9)
with a timeout value of `hz', we can wake it up using cv_broadcast()
without waking up any unrelated threads.

Reviewed by: phk

16 years agoDon't make subr_clist.c depend on the TTY layer.
ed [Wed, 30 Jul 2008 12:32:42 +0000 (12:32 +0000)]
Don't make subr_clist.c depend on the TTY layer.

After the import of the new TTY layer, the TTY_QUOTE definition will not
be present anymore. To make sure clists will still work as expected,
introduce an internal definition called QUOTEMASK.

Maybe we can decide to remove the quote bits entirely, but we still have
to look into this. There may be drivers that still use the quote bits.

Obtained from: //depot/projects/mpsafetty

16 years agoUpdate routed to use the RFC 3678 protocol-independent multicast API. Use
phk [Wed, 30 Jul 2008 11:56:15 +0000 (11:56 +0000)]
Update routed to use the RFC 3678 protocol-independent multicast API. Use
IP_MULTICAST_IF with struct ip_mreqn (obtained from Linux) to tell the
stack which interface index to use for sending IPv4 datagrams.

Submitted by: bms
Tested by: phk

16 years agoBring back the save/restore of the %ds, %es, %fs and %gs registers for
kib [Wed, 30 Jul 2008 11:30:55 +0000 (11:30 +0000)]
Bring back the save/restore of the %ds, %es, %fs and %gs registers for
the 32bit images on amd64.

Change the semantic of the PCB_32BIT pcb flag to request the context
switch code to operate on the segment registers. Its previous meaning
of saving or restoring the %gs base offset is assigned to the new
PCB_GS32BIT flag.

FreeBSD 32bit image activator sets the PCB_32BIT flag, while Linux 32bit
emulation sets PCB_32BIT | PCB_GS32BIT.

Reviewed by: peter
MFC after: 2 weeks

16 years agoAdopt the slightly weaker consistency locking approach used in IPv4 raw
rwatson [Wed, 30 Jul 2008 09:26:27 +0000 (09:26 +0000)]
Adopt the slightly weaker consistency locking approach used in IPv4 raw
sockets for IPv6 raw sockets: separately lock the inpcb for determining
the destination address for a connect()'d raw socket at the rip6_send()
layer, and then re-acquire the inpcb lock in the rip6_output() layer to
query other options on the socket.  Previously, the global raw IP socket
lock was used, which while correct and marginally more consistent, could
add significantly to global raw IP socket lock contention.

MFC after: 1 week

16 years agoFix alignment of the cmsg buffer by placing it in a union with a struct
des [Wed, 30 Jul 2008 09:16:46 +0000 (09:16 +0000)]
Fix alignment of the cmsg buffer by placing it in a union with a struct
cmsghdr.  Derived from upstream patch.

Submitted by: cognet
MFC after: 2 weeks

16 years agoMfP4: Preserve permissions by default.
kientzle [Wed, 30 Jul 2008 03:35:45 +0000 (03:35 +0000)]
MfP4: Preserve permissions by default.

In particular, this fixes the oddity that -dumpl would apply
umask to copied dirs (which are created in the target tree)
but not to "copied" files (which are only linked).  After
this change:

$ ls -ld a a/b a/b/c
d--x-w-r--  3 tim  tim  512 Jul 29 20:08 a
drwxr----x  3 tim  tim  512 Jul 29 20:09 a/b
dr----x-w-  2 tim  tim  512 Jul 29 20:09 a/b/c
$ (echo a; echo a/b; echo a/b/c) | cpio -dumpl o
$ cd o
$ ls -ld a a/b a/b/c
d--x-w-r--  3 tim  tim  512 Jul 29 20:08 a
drwxr----x  3 tim  tim  512 Jul 29 20:09 a/b
dr----x-w-  2 tim  tim  512 Jul 29 20:09 a/b/c

16 years agostyle(9) specifies that case statements are not indented.
scf [Wed, 30 Jul 2008 03:34:23 +0000 (03:34 +0000)]
style(9) specifies that case statements are not indented.

16 years agoAdd my entry with a pointer to garga (mentor)
rnoland [Wed, 30 Jul 2008 01:05:13 +0000 (01:05 +0000)]
Add my entry with a pointer to garga (mentor)

Approved by: garga (mentor)

16 years agoChange the type of psaddr_t from void* to uintptr_t. A pointer
marcel [Wed, 30 Jul 2008 00:59:19 +0000 (00:59 +0000)]
Change the type of psaddr_t from void* to uintptr_t. A pointer
type cannot be made wider to allow ILP32 platforms to target
LP64 platforms.

16 years agoUnbreak build.
yongari [Wed, 30 Jul 2008 00:39:25 +0000 (00:39 +0000)]
Unbreak build.
Remove nfe(4). The driver applies to i386/amd64 only.

16 years agoFree the correct buffer list on failure.
thompsa [Wed, 30 Jul 2008 00:38:10 +0000 (00:38 +0000)]
Free the correct buffer list on failure.

16 years agoClarify which route property routed(8) looks at.
phk [Tue, 29 Jul 2008 23:22:06 +0000 (23:22 +0000)]
Clarify which route property routed(8) looks at.

16 years ago remove redundant ifdef ... lol
kmacy [Tue, 29 Jul 2008 23:00:54 +0000 (23:00 +0000)]
 remove redundant ifdef ... lol

16 years agofix build by forward declaring thread and hiding socket buffer definitions from user...
kmacy [Tue, 29 Jul 2008 23:00:00 +0000 (23:00 +0000)]
fix build by forward declaring thread and hiding socket buffer definitions from user code

16 years agoUnbreak the build by protecting kernel-only functions with #ifdef _KERNEL.
cognet [Tue, 29 Jul 2008 21:48:01 +0000 (21:48 +0000)]
Unbreak the build by protecting kernel-only functions with #ifdef _KERNEL.

16 years agoFix build
emax [Tue, 29 Jul 2008 21:20:03 +0000 (21:20 +0000)]
Fix build

16 years agoWhen copying in and out current ICMPv6 filters on a raw IPv6 socket,
rwatson [Tue, 29 Jul 2008 19:37:16 +0000 (19:37 +0000)]
When copying in and out current ICMPv6 filters on a raw IPv6 socket,
lock the inpcb and use a local stack variable to copy to/from userspace
so that sooptcopyin()/sooptcopyout() aren't called while holding an
rwlock.

While here, fix a bug in which a failed sooptcopyin() might lead to
partially consistent ICMPv6 filters on the socket by not ignoring the
error returned by sooptcopyin().

MFC after: 2 weeks

16 years agoRemove extra comment that snuck in in last commit.
rwatson [Tue, 29 Jul 2008 18:38:37 +0000 (18:38 +0000)]
Remove extra comment that snuck in in last commit.

16 years agoAdd a simple ICMPv6 filter test for IPv6 raw sockets: determine that
rwatson [Tue, 29 Jul 2008 18:33:56 +0000 (18:33 +0000)]
Add a simple ICMPv6 filter test for IPv6 raw sockets: determine that
the default ICMPv6 filter is pass all, test that we can set it to block
all and restore to pass all.  No attempt is made to test that the
filtering works, just that we can get and set it.

16 years agoSince we fail IPv6 raw socket allocation if inp->in6p_icmp6filt can't
rwatson [Tue, 29 Jul 2008 18:09:46 +0000 (18:09 +0000)]
Since we fail IPv6 raw socket allocation if inp->in6p_icmp6filt can't
be allocated, there's no need to conditionize use and freeing of it
later.

MFC after: 1 week

16 years agoFix build
emax [Tue, 29 Jul 2008 17:02:00 +0000 (17:02 +0000)]
Fix build

16 years agoConvert popen()'s `pidlist' to a SLIST, for consistency.
ed [Tue, 29 Jul 2008 16:29:59 +0000 (16:29 +0000)]
Convert popen()'s `pidlist' to a SLIST, for consistency.

I guess the original author of the popen() code didn't want to use our
<sys/queue.h> macro's, because the single linked list macro's didn't
offer O(1) deletion. Because I introduced SLIST_REMOVE_NEXT() some time
ago, we can now use the macro's here.

By converting the code to an SLIST, it is more consistent with other
parts of the C library and the operating system.

Reviewed by: csjp
Approved by: philip (mentor, implicit)

16 years agoAdd --no-preserve-owner, which seems to be required by some ports.
kientzle [Tue, 29 Jul 2008 15:23:31 +0000 (15:23 +0000)]
Add --no-preserve-owner, which seems to be required by some ports.

Thanks to: Erwin Lansing

16 years agoIn the previous commit, no_NO should have been replaced with nb_NO in the
des [Tue, 29 Jul 2008 11:32:42 +0000 (11:32 +0000)]
In the previous commit, no_NO should have been replaced with nb_NO in the
LOCALES list.  Since no_NO was still in LOCALES, make tried to build the
corresponding .out files, but couldn't since the .src files were gone.  I
did not notice this because I still had the old .out files in my .OBJDIR.
Thanks to kib@ for the heads-up.

16 years agoMarginally decomplicate set/getsockopt code in ip6_output.c by simply
rwatson [Tue, 29 Jul 2008 09:31:03 +0000 (09:31 +0000)]
Marginally decomplicate set/getsockopt code in ip6_output.c by simply
using the passed arguments explicitly and unconditionally rather than
testing them and calling panic().  The result is the same but easier
to read.

MFC after: 3 days

16 years agoFix build breakage - kthread_exit() in 8 now has no arguments
rrs [Tue, 29 Jul 2008 09:30:50 +0000 (09:30 +0000)]
Fix build breakage - kthread_exit() in 8 now has no arguments
MFC after: 1 week

16 years ago- Out with some printfs.
rrs [Tue, 29 Jul 2008 09:06:35 +0000 (09:06 +0000)]
- Out with some printfs.
- Fix a initialization of last_tsn_used
- Fix handling of mapped IPv4 addresses
Obtained from: Michael Tuexen and I :-)
MFC after: 1 week

16 years agostyle(9) - space after keywords, don't indent case.
yongari [Tue, 29 Jul 2008 09:02:00 +0000 (09:02 +0000)]
style(9) - space after keywords, don't indent case.

16 years agoCache PCI vendor/device ids to avoid unnecessary PCI configuration
yongari [Tue, 29 Jul 2008 08:49:36 +0000 (08:49 +0000)]
Cache PCI vendor/device ids to avoid unnecessary PCI configuration
space access in device probe.
Also nuke referencing softc in device probe.

16 years agos/printf/device_printf/g
yongari [Tue, 29 Jul 2008 08:32:29 +0000 (08:32 +0000)]
s/printf/device_printf/g
Don't hard code function name in device_printf() and use __func__.
While I'm here nuke bfe_unit in softc as it's not needed anymore.

16 years agoMacbook [Pro] keyboards in AZERTY don't need shift to get to '~'.
roberto [Tue, 29 Jul 2008 08:07:27 +0000 (08:07 +0000)]
Macbook [Pro] keyboards in AZERTY don't need shift to get to '~'.

MFC after: 3 days

16 years agoFactor sockbuf, sockopt, and sockstate out of socketvar.h in to separate headers.
kmacy [Tue, 29 Jul 2008 07:45:05 +0000 (07:45 +0000)]
Factor sockbuf, sockopt, and sockstate out of socketvar.h in to separate headers.

Reviewed by: rwatson
MFC after: 3 days

16 years agoModified release notes: Add one more name to credits on KSE item.
bmah [Tue, 29 Jul 2008 04:23:18 +0000 (04:23 +0000)]
Modified release notes:  Add one more name to credits on KSE item.

Submitted by: jhb@
Reviewed by: brooks@

16 years agoAdd missing jme(4), msk(4), nfe(4), re(4) and stge(4) in NOTES and
yongari [Tue, 29 Jul 2008 01:15:11 +0000 (01:15 +0000)]
Add missing jme(4), msk(4), nfe(4), re(4) and stge(4) in NOTES and
ensure that LINT builds include these devices.

Reported by: Peter Jeremy

16 years agoSimplify ubt_isoc_in_complete2(). Also should fix off by 1 bug.
emax [Tue, 29 Jul 2008 00:17:53 +0000 (00:17 +0000)]
Simplify ubt_isoc_in_complete2(). Also should fix off by 1 bug.

MFC after: 3 months

16 years agoDon't use memcpy() to copy several bytes.
mav [Mon, 28 Jul 2008 22:22:38 +0000 (22:22 +0000)]
Don't use memcpy() to copy several bytes.
Store IDs is host order. It is not so important to bloat code for it.
Combine m_adj() and M_PREPEND() into single M_PREPEND().

16 years agoRe-enable em(4) and igb(4) in NOTES.
jhb [Mon, 28 Jul 2008 22:16:58 +0000 (22:16 +0000)]
Re-enable em(4) and igb(4) in NOTES.

PR: conf/112081

16 years agoIn some cases (such as LC_COLLATE), nb_NO and nn_NO are identical, and it
des [Mon, 28 Jul 2008 21:50:21 +0000 (21:50 +0000)]
In some cases (such as LC_COLLATE), nb_NO and nn_NO are identical, and it
makes sense to have them both link to no_NO.

In other cases (such as LC_TIME), they differ, and the correct solution
is to have no_NO link to nb_NO, rather than the other way around.o

MFC after: 2 weeks

16 years agoRemove a stale reference to sys/dev/ixgbe/tcp_lro.c.
jhb [Mon, 28 Jul 2008 21:47:04 +0000 (21:47 +0000)]
Remove a stale reference to sys/dev/ixgbe/tcp_lro.c.

16 years agoAdd collation sequence for no_NO. The same sequence applies to nb_NO
des [Mon, 28 Jul 2008 21:33:34 +0000 (21:33 +0000)]
Add collation sequence for no_NO.  The same sequence applies to nb_NO
and nn_NO, which are symlinked to no_NO.

The patch in the PR contained a number of errors apparently based on
(sometimes incorrect) pronunciation; for instance, v and w are
distinct letters and should be collated in that order, even if they
are pronounced the same, while <u:> should be collated with u, even
though it is often mispronounced as y.  For lack of a solid reference,
I have taken sv_SE and simply changed the last three letters of the
alphabet.

PR: conf/51920
MFC after: 2 weeks