118785 Commits

Author SHA1 Message Date
brueffer
77c6b96aa5 MFC: rev. 1.285
Correct references to ipnat(8).

Approved by:	re (murray)
2006-02-17 20:18:19 +00:00
ru
5787b49b31 MFC: Fix a bug that prevented passing IP fragments through a dummynet.
Approved by:	re (scottl)
2006-02-17 16:46:47 +00:00
andre
24e16bb156 MFC ip_icmp.c rev. 1.103-1.106+1.108:
Rework icmp_error() and always quote the entire TCP header, fixes
  issues in draft-gont-icmp-payload-00.txt.
 New net.inet.icmp.reply_from_interface and net.inet.icmp.quotelen.

Sponsored by:	TCP/IP Optimization Fundraise 2005
Approved by:	re (scottl)
2006-02-16 17:50:57 +00:00
sam
6ce8ffbd75 MFC: s/w beacon miss facility
Approved by:	re (scottl)
2006-02-16 16:57:24 +00:00
glebius
2656c27599 MFC 1.107:
Fix two important typos in watchdog handling:
  - Restart watchdog if we *did* processed any descriptors. [1]
  - Log the watchdog event if the link is *up*. [2]

  PR:		kern/92948 [1]
  Submitted by:	Mihail Balikov <mihail.balikov interbgc.com> [1]
  PR:		kern/92895 [2]
  Submitted by:	Vladimir Ivanov <wawa yandex-team.ru> [2]

Approved by:	re (kensmith)
2006-02-16 12:45:12 +00:00
glebius
7fb01282ec MFC 1.62:
Refuse to install invalid ARP entries.

  Submitted by:		Vitaliy Ovsyannikov <V.Ovsyannikov kr.ru>

Approved by:	re (kensmith)
2006-02-16 12:41:18 +00:00
glebius
719a451400 MFC 1.9:
- Increase maximum number of interfaces to 2048.
  - Regroup softc so that frequently used elements are
    grouped in the beginning, while the interfaces
    array is at the end.

Approved by:	re (kensmith)
2006-02-16 12:37:14 +00:00
avatar
4050fc52fd MFC: (1.27) s/bin/sbin/ for mount_nwfs, mount_portalfs and mount_smbfs.
Also document the removal time of these utilities.

Approved by:	re (scottl)
2006-02-16 07:25:23 +00:00
davidxu
7c169c36fc Partially MFC revision 1.14:
> Eliminate compile warnings.

This allows me to debug threaded program on Pentium-D machine.

Approved by:	re (scottl)
2006-02-16 02:40:56 +00:00
rees
24c9cc5118 MFC rev 1.135:
Don't log an error on tcp connection reset, even if we don't get ECONNRESET.

Submitted by:	cel@citi.umich.edu
Approved by:	re (scottl)
2006-02-16 02:39:52 +00:00
qingli
e776a57c39 MFC: rev 1.38
Approved by:	re (scottl)
2006-02-16 01:10:44 +00:00
qingli
0e3ee9900c MFC: rev 1.40
Approved by:	re (scottl)
2006-02-16 01:08:40 +00:00
qingli
eb0d200a92 MFC: rev 1.84
Approved by:	re (scottl)
2006-02-16 01:06:22 +00:00
iedowse
fa1b09ae80 MFC: don't perform an endpoint stall clear every time a pipe is
opened.  This should not be necessary, and it is known to confuse
certain devices.

Remove the UQ_NO_OPEN_CLEARSTALL quirk, as this is now the default
behaviour for all devices.

Approved by:	re (scottl)
2006-02-15 22:51:08 +00:00
sam
fc95fea574 sync with HEAD:
o mcast rate addition
o malloc size off-by-one fixes
o long ssid handling

Approved by:	re (scottl)
2006-02-15 17:44:18 +00:00
ru
4d6c4a9f13 MFC: 1.58: -mdoc sweep.
Approved by:	re (scottl)
2006-02-15 15:10:55 +00:00
ru
12bea99eb3 MFC: 1.15: Only install boot_i386.8 on i386 and amd64.
Approved by:	re (scottl)
2006-02-15 15:10:07 +00:00
ru
832a964b08 MFC: -S option for boot2, already documented to work in boot(8).
Approved by:	re (scottl)
2006-02-15 15:08:51 +00:00
jcamou
314981dbdd MFC: rev.1.113.
Approved by:	re (scottl)
2006-02-15 15:03:04 +00:00
jcamou
675ebf74a9 MFC: rev.1.3
Approved by:	re (hrs)
2006-02-15 14:58:59 +00:00
nyan
09ec09e90b MFi386: revision 1.31.2.1
Approved by:	re (kensmith)
2006-02-15 13:55:13 +00:00
nyan
ed8f6e5151 MFC: revision 1.371
> Clear carry flag in get_mcontext so that setcontext does not
> return a bogus error.

Approved by:	re (kensmith)
2006-02-15 13:54:06 +00:00
marius
e1b43165f7 MFC: 1.12
Enable getty(8) on ttyu2 by default in order to get machines that use a
RSC (Remote System Control) connected via uart2 as console working out
of the box.

Approved by:	re (scottl)
2006-02-15 09:17:03 +00:00
marius
d340da2e99 MFC: src/sys/dev/puc/puc_ebus.c 1.6, sys/dev/uart/uart_bus_ebus.c 1.9,
sys/dev/uart/uart_cpu_sparc64.c 1.20, 1.22

- Add support for using LOM (Lights Out Management) and RSC (Remote System
  Control) devices as console.
- Add my copyright to uart_cpu_sparc64.c.
- Recognize the SAB82532 in USIII machines. This is MFC'ed for consistency
  as one part of the original commit, sys/dev/uart/uart_bus_ebus.c rev. 1.7,
  was already MFC'ed to RELENG_6 (in rev. 1.6.2.2).

Approved by:	re (scottl)
2006-02-15 09:16:01 +00:00
ps
f2d6dfc1f8 MFC:
Implement SIOCGIFCONF for 32bit binaries.

Approved by:	re
2006-02-15 03:37:15 +00:00
sam
9864643933 MFC 1.38: set the mgt frame tx timer before dispatching the frame to the driver
Approved by:	re (scottl)
2006-02-15 03:21:15 +00:00
flz
fd4449bc91 MFC:
Don't include geli devices in list when noauto is specified in the options field.

      src/etc/rc.subr: rev 1.47 -> 1.48

Approved by:	re (hrs)
2006-02-15 00:56:06 +00:00
jhb
c0067121bc MFC: Correctly set the MPSAFE flag based on the lower vnode's mount.
Approved by:	re (scottl)
2006-02-14 23:15:16 +00:00
jhb
35b2a57ba2 MFC: Sync up to rev 1.80 from HEAD:
- Use a dedicated kthread to call acctwatch() periodically rather than
  a callout from softclock().
- Validate new values for the kern.acct_chkfreq sysctl.
- Whitespace and include sorting.

Approved by:	re (scottl)
2006-02-14 23:13:17 +00:00
jhb
cfc4a82e66 MFC: Use the correct BAR for the UPCI 32 adapter.
Approved by:	re (scottl)
2006-02-14 23:09:10 +00:00
rwatson
6a4c2a60ce Merge in_pcb.c:1.167 from HEAD to RELENG_6:
Convert remaining functions to ANSI C function declarations; remove
  'register' where present.

Approved by:	re (scottl)
2006-02-14 22:09:27 +00:00
rwatson
1a3392858b Merge coda_vnops.c:1.67 from HEAD to RELENG_6:
Convert last four functions in coda_vnops.c to ANSI C function
  declarations.  I knew I would get to fix something in Coda
  eventually.

Approved by:	re (scottl)
2006-02-14 21:59:07 +00:00
rwatson
4b2bdfb9e4 Merge vfs_mount.c:1.213 from HEAD to RELENG_6:
Cast VFS_STATFS() in vfs_domount() to (void) to indicate that ignoring the
  return value is intentional: this is simply an attempt to pre-cache the
  statfs state.

  Found with:     Coverity Prevent (tm)

Approved by:	re (scottl)
2006-02-14 21:57:09 +00:00
rwatson
88e317a7ac Merge ncp_conn.c:1.28 from HEAD to RELENG_6:
In ncp_sysctl_connstat(), the SLIST_FOREACH() logic to check 'error'
  resulted in deadcode, as 'error' could never be 0.  What this logic
  was originally meant to handle is not clear -- it's been this way
  (broken) since at least RELENG_4.

  Found with:     Coverity Prevent(tm)

Approved by:	re (scottl)
2006-02-14 21:55:15 +00:00
rwatson
1a12c93e91 Merge udp_usrreq.c:1.181 from HEAD to RELENG_6:
Remove dead code: 'opts' is not used in udp_append(), only in udp_input(),
  so no need to assign it to NULL or conditionally free it.

  Found with:     Coverity Prevent(tm)

Approved by:	re (scottl)
2006-02-14 21:40:21 +00:00
rwatson
25626e8a72 Merge ip6_output.c:1.101 from HEAD to RELENG_6:
When storing the results of malloc() in a pointer to a pointer, check
  the pointer to a pointer for NULL, not the pointer for NULL.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:38:46 +00:00
rwatson
0f1480e03b Merge ipcomp_input.c:1.9 from HEAD to RELENG_6:
In ipcomp6_input(), check 'md' not 'm' after a call to m_pulldown(): 'm'
  may be a stale pointer at this point, and we're interested in whether or
  not m_pulldown() failed.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:36:23 +00:00
rwatson
4b660c6658 Merge ipx_input.c:1.52 from HEAD to RELENG_6:
Remove dead code associated with 'mcopy' in ipx_forward(): at no point
  are the contents of the forwarded mbuf ever copied into mcopy, so there's
  no need to have mcopy, conditionally look at mcopy, or conditionally free
  it.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:35:07 +00:00
rwatson
f6557302f2 Merge if_ef.c:1.38 from HEAD to RELENG_6:
Check the right ifnet pointer to see if if_alloc() failed or not in
  ef_clone(); we were testing the original ifnet, not the one allocated.

  When aborting ef_clone() due to if_alloc() failing, free the allocated
  efnet structure rather than leaking it.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:11:19 +00:00
rwatson
bcc6ac0035 Merge if_ef.c:1.37 from HEAD to RELENG_6:
When freeing the chain of if_ef devices on an aborted load, use
  SLIST_FOREACH_SAFE() rather than SLIST_FOREACH(), as elements are
  freed on each iteration of the loop.  This prevents use-after-free.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:09:46 +00:00
luigi
e6419f405e MFC: manpage for the updated picobsd script
Approved by: re
2006-02-14 16:59:17 +00:00
brooks
577b28fda2 MFC syscons.c rev 1.441 and documentation:
When SC_DISABLE_KDBKEY or SC_DISABLE_REBOOT are not defined allow the
same behavior to be controlled by the sysctls, hw.syscons.kbd_kbdkey
and hw.syscons.kbd_reboot respectively.

PR:		kern/72728
Submitted by:	Luca Morettoni <morettoni at libero dot it>
Approved by:	re (scottl)
2006-02-14 16:41:27 +00:00
ume
6e7d681477 MFC 1.63: avoided the use of purged address structure when an
address became invalid in nd6_timer().

Approved by:	re (hrs)
2006-02-14 16:29:22 +00:00
cperciva
08fb917f1d MFC gbde.8 rev. 1.14, gbde.c rev. 1.31:
Teach gbde(8) to use a key file in addition to a passphrase.  This
  makes it practical to use GBDE for "something you have plus something
  you know" security together with a USB flash drive.

Approved by:	re (scottl)
2006-02-14 16:15:48 +00:00
luigi
d28ecc55de MFC: produce a buildable 'bridge' image
Approved by: re
2006-02-14 14:47:12 +00:00
luigi
31eed14fe7 MFC: make sure the start and end markers are contiguous and
not suppressed by the optimizer.

Approved by: re
2006-02-14 14:46:22 +00:00
luigi
361f4aae68 MFC: fixed picobsd script.
upcoming, tweaks for other config files and sys/dev/md/md.c

Approved by: re
2006-02-14 13:16:13 +00:00
ps
0f5fcc3599 MFC: rev 1.33
Enable 64bit SGL's on PERC 4/DC

Approved by:	re
2006-02-14 08:05:29 +00:00
ps
6875ea6a2c MFC: amr.c 1.75, amrvar.h 1.30
- Move the command setup from amr_start1 into the card specific submit
  routines.
- Add or replace cpu_spinwait() with DELAY(1) to a few of the busy
  loops when reading from the controller to work around firmware bugs
  which can crash the controller.

Approved by:	re
2006-02-14 08:04:39 +00:00
ru
7b02bd77cd MFC: 1.36: Fix output byte and error counting.
Approved by:	re (scottl)
2006-02-14 06:21:47 +00:00