]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC ng_base.c rev. 1.141-1.146:
mav [Wed, 6 Feb 2008 20:50:50 +0000 (20:50 +0000)]
MFC ng_base.c rev. 1.141-1.146:
Implement stack protection based on GET_STACK_USAGE() macro.
This fixes system panics possible with complicated netgraph setups
and allows to avoid unneded extra queueing for stack unwrapping.

16 years agoRevert rev. 1.128, we have a hard link generated from new
delphij [Wed, 6 Feb 2008 19:45:45 +0000 (19:45 +0000)]
Revert rev. 1.128, we have a hard link generated from new
hptrr(4) to rr232x.

Pointed out by: bruffer
Pointy hat to: delphij

16 years agoReflect rr232x(4) manpage removal
delphij [Wed, 6 Feb 2008 18:51:15 +0000 (18:51 +0000)]
Reflect rr232x(4) manpage removal

16 years agoMFC: rt2560.c 1.19
sephe [Wed, 6 Feb 2008 12:05:04 +0000 (12:05 +0000)]
MFC: rt2560.c 1.19
     rt2560var.h 1.4
     rt2560reg.h 1.3
Various bug fixes for 2560 parts of ral(4)

Approved by: sam (mentor)

16 years agoFix a symbol conflict between hptrr and hptmv
scottl [Wed, 6 Feb 2008 08:33:15 +0000 (08:33 +0000)]
Fix a symbol conflict between hptrr and hptmv

16 years agoAdd a note that the hptrr driver supersedes the rr232x driver.
scottl [Wed, 6 Feb 2008 03:35:55 +0000 (03:35 +0000)]
Add a note that the hptrr driver supersedes the rr232x driver.

16 years agoMFC revision: 1.83, 1.85, 1.86
iwasaki [Wed, 6 Feb 2008 01:44:44 +0000 (01:44 +0000)]
MFC revision: 1.83, 1.85, 1.86

Add NOP-message polling to ciss_periodic().
Disable adapter by detecting adapter is dead.

Reviewed by: scottl
Approved by: re (kensmith)

16 years agoMFC revistion: 1.244
iwasaki [Wed, 6 Feb 2008 01:38:04 +0000 (01:38 +0000)]
MFC revistion: 1.244

Enter the sleep state immediately without waiting for timeout if
devd(8) is not running such as the system in single user mode.

Approved by: re (kensmith)

16 years agoMFC revision: subr_bus.c:1.204, bus.h:1.79
iwasaki [Wed, 6 Feb 2008 01:34:18 +0000 (01:34 +0000)]
MFC revision: subr_bus.c:1.204,  bus.h:1.79

Add devctl_process_running() so that power management system driver
can check whether devd(8) is running.

Approved by: re (kensmith)

16 years agoUpdate the hptrr driver to version 1.2. This adds port multiplier support
scottl [Wed, 6 Feb 2008 01:02:20 +0000 (01:02 +0000)]
Update the hptrr driver to version 1.2.  This adds port multiplier support
for several cards.  See the Highpoint website for more information.  Again,
many thanks to Highpoint for their continued support of FreeBSD.

16 years agoDon't pollute the mbuf helper routine namespace
kmacy [Tue, 5 Feb 2008 22:20:16 +0000 (22:20 +0000)]
Don't pollute the mbuf helper routine namespace

16 years agoMFC rev. 1.23-1.24
mav [Tue, 5 Feb 2008 19:48:04 +0000 (19:48 +0000)]
MFC rev. 1.23-1.24
 - Avoid data copying when it is possible. bpf_filter() is able to work
directly on mbuf chain
 - Prepare hooks direct pointers on setup to avoid heavy ng_findhook() calls
during operarion.

16 years agoMFC rev. 1.34
mav [Tue, 5 Feb 2008 19:33:03 +0000 (19:33 +0000)]
MFC rev. 1.34
Move all possible node logic out of the rcvdata() function
to the newhook()/disconnect().
Unify function names with other nodes.

16 years agoMFC rev. 1.89-1.91
mav [Tue, 5 Feb 2008 19:24:09 +0000 (19:24 +0000)]
MFC rev. 1.89-1.91
Implement Session-ID hashing to improve receive performance scalability
for big number of concurrent sessions.

16 years agoMFC 1.115: fix use with altq
sam [Tue, 5 Feb 2008 18:27:54 +0000 (18:27 +0000)]
MFC 1.115: fix use with altq

Submitted by: sephe

16 years agoMFC 1.2:
simon [Tue, 5 Feb 2008 18:10:31 +0000 (18:10 +0000)]
MFC 1.2:
  Unbreak detection of cryptodev support for FreeBSD which was broken
  with OpenSSL 0.9.8 import.

  Note that this does not enable cryptodev by default, as it was the
  case with OpenSSL 0.9.7 in FreeBSD base, but this change makes it
  possible to enable cryptodev at all.

16 years agoMFC: 1.17 (style nit)
obrien [Tue, 5 Feb 2008 17:35:29 +0000 (17:35 +0000)]
MFC:  1.17 (style nit)

16 years agoMFC revision 1.24
csjp [Tue, 5 Feb 2008 15:09:24 +0000 (15:09 +0000)]
MFC revision 1.24
Whitespace fix

16 years agoMFC revision 1.23
csjp [Tue, 5 Feb 2008 14:34:37 +0000 (14:34 +0000)]
MFC revision 1.23
Make sure we handle listen() and eliminate console messages for unknown
event types.

16 years agoMFC changes from 1.14 for sys/lock.c and 1.127+1.128 for thread/thr_kern.c
julian [Mon, 4 Feb 2008 19:59:40 +0000 (19:59 +0000)]
MFC changes from 1.14 for sys/lock.c and 1.127+1.128 for thread/thr_kern.c
this copes with the fact that during a fork the child may get
really screwy state in the threading system due to the
sudden vaporisation of it's sibling threads.

16 years agoMFC 1.15: updates for additional chip support
sam [Mon, 4 Feb 2008 03:33:55 +0000 (03:33 +0000)]
MFC 1.15: updates for additional chip support

MFC after: 3 days

16 years agoMFC 1.8: correct typo that broke check when handling addba response
sam [Mon, 4 Feb 2008 03:32:56 +0000 (03:32 +0000)]
MFC 1.8: correct typo that broke check when handling addba response

MFC after: 3 days

16 years agoMFC 1.50: correct tx rate displayed by list sta
sam [Mon, 4 Feb 2008 03:31:28 +0000 (03:31 +0000)]
MFC 1.50: correct tx rate displayed by list sta

MFC after: 3 days

16 years agoMFC 1.49: fix list mac
sam [Mon, 4 Feb 2008 03:30:27 +0000 (03:30 +0000)]
MFC 1.49: fix list mac

MFC after: 3 days

16 years agoMFC: Fix some bugs in dealing with DCMD's without data. MegaCli was sending
ambrisko [Sun, 3 Feb 2008 22:32:52 +0000 (22:32 +0000)]
MFC: Fix some bugs in dealing with DCMD's without data.  MegaCli was sending
down some DCMD's without any data.  Thanks to Dell and LSI for helping
to provide clues to figure out this problem.  Now MegaCli can upgrade
the firmware and should work identical when run on Linux.

16 years agoMFC: rev. 1.406 + 1.407
brueffer [Sun, 3 Feb 2008 17:32:25 +0000 (17:32 +0000)]
MFC: rev. 1.406 + 1.407

MLINK hptrr(4) to rr232x(4).

16 years agoMFC:
brueffer [Sun, 3 Feb 2008 16:26:17 +0000 (16:26 +0000)]
MFC:

The rr232x driver has been removed, kill it here as well.

16 years agoUpdate the hptiop manual page for the new driver.
scottl [Sun, 3 Feb 2008 16:19:27 +0000 (16:19 +0000)]
Update the hptiop manual page for the new driver.

16 years agoUpdate the hptiop driver to version 1.3. This adds support for the 4xxx
scottl [Sun, 3 Feb 2008 16:18:55 +0000 (16:18 +0000)]
Update the hptiop driver to version 1.3.  This adds support for the 4xxx
series of SAS adapters.  Thanks again to Highpoint for their continued
support of FreeBSD.

16 years agoMFC: rev. 1.553
brueffer [Sun, 3 Feb 2008 12:13:02 +0000 (12:13 +0000)]
MFC: rev. 1.553

Don't build the rr232x module, it has been removed.

Approved by: rwatson (mentor)

16 years agoMFC rev 1.95,1.96 mountd.c
matteo [Sun, 3 Feb 2008 10:45:36 +0000 (10:45 +0000)]
MFC rev 1.95,1.96 mountd.c
MFC rev 1.30 mountd.8

16 years agoRevert previous commit.
mav [Sun, 3 Feb 2008 10:30:45 +0000 (10:30 +0000)]
Revert previous commit.
glebius@ noticed that it was not a bug, but undocumented feature.

16 years agoMFC if_msk.c rev 1.24 to RELENG_7.
yongari [Sun, 3 Feb 2008 08:12:58 +0000 (08:12 +0000)]
MFC if_msk.c rev 1.24 to RELENG_7.
  Add MSI support for 88E8058(Yukon EC Ultra). Unlike other Yukon II
  family 88E8058 supports only one MSI message. Teach msk(4) to handle
  that case.

16 years agoMFC msk.4 rev 1.5 to RELENG_7.
yongari [Sun, 3 Feb 2008 08:06:28 +0000 (08:06 +0000)]
MFC msk.4 rev 1.5 to RELENG_7.
  Add 88E8058 to the list of supported hardware.

16 years agoMFC if_msk.c rev 1.23, if_mskreg.h 1.10 to RELENG_7.
yongari [Sun, 3 Feb 2008 07:57:04 +0000 (07:57 +0000)]
MFC if_msk.c rev 1.23, if_mskreg.h 1.10 to RELENG_7.
  Add device id for 88E8058(Yukon EC Ultra) which is found on 3rd
  generation MacBooks.
  Unfortunately 88E8058 supports one MSI message so msk(4) needs more
  generic way to handle the MSI capability.

  PR:   118110

16 years agoMFC if_msk.c rev 1.22, if_mskreg.h 1.9 to RELENG_7.
yongari [Sun, 3 Feb 2008 07:48:13 +0000 (07:48 +0000)]
MFC if_msk.c rev 1.22, if_mskreg.h 1.9 to RELENG_7.
  Make phy respond only at address 0. This makes phy driver attached
  only at address 0 which is supposed to be the only valid phy address
  on Marvell PHY. The more correct solution would be masking PHY
  address ranges allowable in PHY probe routine. Unfortunately,
  FreeBSD has no way to retrict the PHY address ranges or to pass special
  flags to PHY driver.
  This change assumes that PHY hardwares attached to msk(4) would be
  Marvell made 88E11xx PHY.

  With this changes the phantom phys attached on 88E8036(Yukon FE)
  should disappear.

16 years agoMFC if_msk.c rev 1.21 to RELENG_7.
yongari [Sun, 3 Feb 2008 07:39:33 +0000 (07:39 +0000)]
MFC if_msk.c rev 1.21 to RELENG_7.
   o Don't hardcode that Yukon FE has 16KB SRAM. In fact, Yukon FE has
     only 4KB SRAM.
   o Rework setting Tx/Rx RAM buffer size. Give receiver 2/3 of memory
     and round it down to the multiple of 1024. The RAM buffer size of
     Yukon II should be multiple of 1024. This fixes bogus RAM buffer
     configuration used in Yukon FE.

16 years agoMFC if_msk.c rev 1.20, if_mskreg.h rev. 1.8 to RELENG_7
yongari [Sun, 3 Feb 2008 07:35:04 +0000 (07:35 +0000)]
MFC if_msk.c rev 1.20, if_mskreg.h rev. 1.8 to RELENG_7
  Drop maintaing hardware feature(bug) lists for Yukon II. We don't have
  publicly available datasheet for Yukon II and don't know what
  bug/workaround exist for the specific hardware revision. Also I don't
  think the vendor will release hardware errata in near future.
  The hardware feature lists were not used at all except setting water
  mark registers. Since msk(4) should know exact chip model/revision
  number to decide which hardware capability could be used the extra
  feature lists were redundant.

16 years agoRemove the rr232x manual page.
scottl [Sun, 3 Feb 2008 07:31:49 +0000 (07:31 +0000)]
Remove the rr232x manual page.

16 years agoRemove the rr232x driver. It has been superseced by the hptrr driver.
scottl [Sun, 3 Feb 2008 07:28:39 +0000 (07:28 +0000)]
Remove the rr232x driver.  It has been superseced by the hptrr driver.

16 years agoMFC if_msk.c rev 1.19, if_mskreg.h rev. 1.7 to RELENG_7
yongari [Sun, 3 Feb 2008 07:26:11 +0000 (07:26 +0000)]
MFC if_msk.c rev 1.19, if_mskreg.h rev. 1.7 to RELENG_7
  Various fixes for EC Ultra.
   o Enable jumbo frame support for EC Ultra and disable jumbo frame
     for FE.
   o Enable store and forward mode for standard MTU sized frame.
   o Enable TSO for EC Ultra. However TSO/checksum offload is disabled
     for jumbo frame case. Because EC Ultra can't use store and forward
     mode for jumbo frame TSO/checksum offload is not available.
   o Adjust Tx GMAC almost empty threshold value and add a jumbo frame
     water mark. The maic value was obtained from Marvell's sk98lin
     driver.
   o Fix EC Ultra chip revision number.

16 years agoMFC e1000phy.c, rev 1.20 to RELENG_7
yongari [Sun, 3 Feb 2008 05:32:55 +0000 (05:32 +0000)]
MFC e1000phy.c, rev 1.20 to RELENG_7
  Reset autonegotation timer if media option is not IFM_AUTO.
  Make mii_ticks advance, autonegiation is retried every
  mii_anegticks seconds.

16 years agoMFC if_re.c, rev 1.100 to RELENG_7
yongari [Sun, 3 Feb 2008 05:18:14 +0000 (05:18 +0000)]
MFC if_re.c, rev 1.100 to RELENG_7
  By definition promiscuous mode should see all unicast frames as well
  as multicast/broadcast frames. Previously re(4) ignored multicast
  frames in promiscuous mode. The RTL8169 datasheet was not clear
  how it handles multicast frames in promiscuous mode.

  PR: kern/118572

16 years agoMFC if_txp.c, rev 1.48 to RELENG_7.
yongari [Sun, 3 Feb 2008 04:16:26 +0000 (04:16 +0000)]
MFC if_txp.c, rev 1.48 to RELENG_7.
  Read MII_ANAR register and get common denominator ability.

  PR: 92599

16 years agoMFC fix for IEEE 802.3 compliance of auto-negotiation process.
yongari [Sun, 3 Feb 2008 04:12:06 +0000 (04:12 +0000)]
MFC fix for IEEE 802.3 compliance of auto-negotiation process.
  IEEE 802.3 Annex 28B.3 explicitly specifies the following relative
  priorities of the technologies supported by 802.3 Selector Field
  value.

  1000BASE-T full duplex
  1000BASE-T
  100BASE-T2 full duplex
  100BASE-TX full duplex
  100BASE-T2
  100BASE-T4
  100BASE-TX
  10BASE-T full duplex
  10BAST-T

  However PHY drivers didn't honor the order such that 100BASE-T4 had
  higher priority than 100BASE-TX full duplex. Fix that long standing
  bugs such that have PHY drivers choose the highest common denominator
  ability.
  Fix a bug in dcphy which inadvertently aceepts 100BASE-T4.

  PR: 92599

16 years agoMFV: remove files not part of version 4.23.
obrien [Sat, 2 Feb 2008 18:28:31 +0000 (18:28 +0000)]
MFV: remove files not part of version 4.23.

16 years agoMFC rev. 1.15
mav [Sat, 2 Feb 2008 15:48:05 +0000 (15:48 +0000)]
MFC rev. 1.15
Run expire even without export hook connected.

16 years agoMFC: rev 1.1.1.7 - fix -p.
obrien [Sat, 2 Feb 2008 07:48:06 +0000 (07:48 +0000)]
MFC: rev 1.1.1.7 - fix -p.

16 years agoMFC 1.7: use m_gethdr to populate the rx ring
sam [Sat, 2 Feb 2008 06:49:57 +0000 (06:49 +0000)]
MFC 1.7: use m_gethdr to populate the rx ring

16 years agoMerge uipc_sockbuf.c:1.175, uipc_socket.c:1.304, uipc_syscalls.c:1.264,
rwatson [Fri, 1 Feb 2008 22:51:40 +0000 (22:51 +0000)]
Merge uipc_sockbuf.c:1.175, uipc_socket.c:1.304, uipc_syscalls.c:1.264,
sctp_input.c:1.67, sctp_peeloff.c:1.17, sctputil.c:1.73,
socketvar.h:1.161 from HEAD to RELENG_7:

  Correct two problems relating to sorflush(), which is called to flush
  read socket buffers in shutdown() and close():

  - Call socantrcvmore() before sblock() to dislodge any threads that
    might be sleeping (potentially indefinitely) while holding sblock(),
    such as a thread blocked in recv().

  - Flag the sblock() call as non-interruptible so that a signal
    delivered to the thread calling sorflush() doesn't cause sblock() to
    fail.  The sblock() is required to ensure that all other socket
    consumer threads have, in fact, left, and do not enter, the socket
    buffer until we're done flushin it.

  To implement the latter, change the 'flags' argument to sblock() to
  accept two flags, SBL_WAIT and SBL_NOINTR, rather than one M_WAITOK
  flag.  When SBL_NOINTR is set, it forces a non-interruptible sx
  acquisition, regardless of the setting of the disposition of SB_NOINTR
  on the socket buffer; without this change it would be possible for
  another thread to clear SB_NOINTR between when the socket buffer mutex
  is released and sblock() is invoked.

  Reviewed by:    bz, kmacy
  Reported by:    Jos Backus <jos at catnook dot com>

16 years agoMFC: 1.159, 1.160
jkim [Fri, 1 Feb 2008 20:29:56 +0000 (20:29 +0000)]
MFC: 1.159, 1.160

Do not sanitize disk geometry if it is set by scripts in non-interactive mode.

16 years agoMFC rev. 1.41
mav [Thu, 31 Jan 2008 12:01:18 +0000 (12:01 +0000)]
MFC rev. 1.41
mdoc and language fixes for the previous commit, also bump .Dd.

16 years agoMFC rev. 1.40-1.41
mav [Thu, 31 Jan 2008 11:55:53 +0000 (11:55 +0000)]
MFC rev. 1.40-1.41
Document new "AC-Name\Service-Name" connect syntax.

16 years ago- Fixes is a bug in sctp_auth that will cause a panic if
rrs [Thu, 31 Jan 2008 09:58:11 +0000 (09:58 +0000)]
- Fixes is a bug in sctp_auth that will cause a panic if
  a socket is closed as it gets auth'd data in. (sctp_auth.c)
- Reverts the priority back to 0, do not change prioritys (sctp_bsd_addr.c)
- Fixes a wrap error in calculation of gap ack segments that
  wrap the TSN number. (sctp_indata.c)
- Fixes a comment, and also moves a lock up to cover the pulling
  of the VRF from the inp structure. (sctp_pcb.c)

16 years agoMFC: rev. 1.194
brueffer [Thu, 31 Jan 2008 09:31:41 +0000 (09:31 +0000)]
MFC: rev. 1.194

Correct the kernel config hint in a printf statement.

Approved by: rwatson (mentor)

16 years agoMerge ddp_output.c:1.32 from HEAD to RELENG_7:
rwatson [Wed, 30 Jan 2008 22:25:34 +0000 (22:25 +0000)]
Merge ddp_output.c:1.32 from HEAD to RELENG_7:

  Annotate two possible bugs in a comment: (1) we allocate and explicitly
  prepend a data mbuf in front of a header mbuf without moving the header
  to the new mbuf, and (2) a possible alignment problem on architectures
  with strict alignment as reported in kern/4184.

  PR:     kern/4184 (1)

16 years agoMerge aarp.c:1.45 from HEAD to RELENG_7:
rwatson [Wed, 30 Jan 2008 22:25:13 +0000 (22:25 +0000)]
Merge aarp.c:1.45 from HEAD to RELENG_7:

  Add additional robustness to at_aarpinput() by testing for broadcast
  addresses as the source of an AARP request.  While this PR was submitted
  in the context of work in OpenBSD to port netatalk (in 1997), I've
  synchronized the code more to our ARP input routine, which had similar
  requirements.

  Submitted by:   Denton Gentry
  PR:             kern/4184

16 years agoMFC:
brueffer [Wed, 30 Jan 2008 17:59:19 +0000 (17:59 +0000)]
MFC:

Remove references to the obsolete card(4) manpage.

16 years agoMFC:
brueffer [Wed, 30 Jan 2008 17:58:15 +0000 (17:58 +0000)]
MFC:

OLDCARD is long gone, so finally remove the oldcard.4 manpage.

16 years agoRegen.
ru [Wed, 30 Jan 2008 15:07:01 +0000 (15:07 +0000)]
Regen.

16 years agoMFC: Add the WITHOUT_INSTALLLIB option description.
ru [Wed, 30 Jan 2008 15:05:41 +0000 (15:05 +0000)]
MFC: Add the WITHOUT_INSTALLLIB option description.

16 years agoMFC: Fix markup nits.
ru [Wed, 30 Jan 2008 15:03:37 +0000 (15:03 +0000)]
MFC: Fix markup nits.

16 years agoMFC: Add a wrapper function that bound checks writes to the dump device.
ru [Wed, 30 Jan 2008 10:20:07 +0000 (10:20 +0000)]
MFC: Add a wrapper function that bound checks writes to the dump device.

16 years agoMFC: rev. 1.325
mtm [Wed, 30 Jan 2008 08:25:38 +0000 (08:25 +0000)]
MFC: rev. 1.325
Clarify that devfs_system_ruleset should contain a
name, not a number.  Prompted by PR conf/85363

16 years agoMFC: version 6.1.5.
obrien [Wed, 30 Jan 2008 03:18:56 +0000 (03:18 +0000)]
MFC: version 6.1.5.

16 years agoMFC: version 4.23.
obrien [Wed, 30 Jan 2008 02:53:12 +0000 (02:53 +0000)]
MFC: version 4.23.

16 years agoMFC: AWK release Oct 23, 2007.
obrien [Wed, 30 Jan 2008 02:44:27 +0000 (02:44 +0000)]
MFC: AWK release Oct 23, 2007.
MF6: Don't use patch files.

16 years agoMFC rev. 1.72-1.74
mav [Tue, 29 Jan 2008 21:18:26 +0000 (21:18 +0000)]
MFC rev. 1.72-1.74
Improve multilink receive performance by fragment headers preallocation.
Improve multilink performance by netgraph item reuse.

16 years agoMFC: sys/dev/le/am7990.c 1.5; sys/dev/le/am79900.c 1.5
marius [Tue, 29 Jan 2008 19:20:48 +0000 (19:20 +0000)]
MFC: sys/dev/le/am7990.c 1.5; sys/dev/le/am79900.c 1.5

Correct the comments in am7990_intr() and am79900_intr().

16 years agoMFC: rev. 1.1.1.7 (Check for a failure return from cplus_demangle_type)
obrien [Tue, 29 Jan 2008 16:21:54 +0000 (16:21 +0000)]
MFC: rev. 1.1.1.7 (Check for a failure return from cplus_demangle_type)

16 years agoMFC v1.7 (by request from remko because he is injured)
kensmith [Tue, 29 Jan 2008 01:19:31 +0000 (01:19 +0000)]
MFC v1.7 (by request from remko because he is injured)
> revision 1.7
> date: 2008/01/16 13:54:40;  author: remko;  state: Exp;  lines: +9 -6
> Dont accidentally remove a filesocket which is still in use. This gives
> problems when the DRM driver is loaded and the AIXGL extension is loaded
> , the AIXGL driver requests a drm_close and this will cause the radeon
> driver to fail while starting X windows.
>
> PR:             kern/114688
> Submitted by:   vehemens <vehemens at verizon dot net>
> Prodded by:     Robert Noland
> Approved by:    imp (mentor, a while ago already), anholt

16 years agoMFC functional changes to etc:
dougb [Tue, 29 Jan 2008 00:18:08 +0000 (00:18 +0000)]
MFC functional changes to etc:
1. yar's "dry run" patch to Makefile
2. Add zfs to the list of filesystems to check in
periodic/security/100.chksetuid
3. GC the nfslocking script, which has been superseded by lockd and statd
4. Add security warning to rc.d/jail
5. Add stop_cmd=':' to those rc.d scripts that do not start services,
but did not already have a stop_cmd.

16 years agoMFC: ver. 1.7
mtm [Mon, 28 Jan 2008 23:36:54 +0000 (23:36 +0000)]
MFC: ver. 1.7
Partial backout of rev. 1.6, but instead of putting
kerberos5_server_flags back in command_args, put it
where rc.subr(8) expects it: kerberos5_flags.

16 years agoMFC 1.42,1.43: Fix races and other bugs with sleepq timeout handling.
jhb [Mon, 28 Jan 2008 21:02:08 +0000 (21:02 +0000)]
MFC 1.42,1.43: Fix races and other bugs with sleepq timeout handling.

16 years agoMFC rev. 1.26-1.27
mav [Mon, 28 Jan 2008 19:46:17 +0000 (19:46 +0000)]
MFC rev. 1.26-1.27
Remove one very strange unneded if.
Fix memory leak when export hook is not connected.

16 years agoMFC:
mtm [Mon, 28 Jan 2008 18:55:57 +0000 (18:55 +0000)]
MFC:
Rev. 1.6 made it impossible to use rc.d/kerberos with the krb5 port.
Re-implement the change so that the script once again works with
the krb5 port.

Submitted by: kensmith (slightly modified)

16 years agoMFC: Only reset driver state when a hardware error is detected.
gallatin [Mon, 28 Jan 2008 15:54:52 +0000 (15:54 +0000)]
MFC: Only reset driver state when a hardware error is detected.

16 years agoMerge ipfw2.c:1.113, ip_fw.h:1.111, ip_fw2.c:1.180 from HEAD to RELENG_7:
rwatson [Mon, 28 Jan 2008 14:00:30 +0000 (14:00 +0000)]
Merge ipfw2.c:1.113, ip_fw.h:1.111, ip_fw2.c:1.180 from HEAD to RELENG_7:

  Hide ipfw internal data structures behind IPFW_INTERNAL rather than
  exposing them to all consumers of ip_fw.h.  These structures are
  used in both ipfw(8) and ipfw(4), but not part of the user<->kernel
  interface for other applications to use, rather, shared
  implementation.

  Reported by:    Paul Vixie <paul at vix dot com>

16 years agoMFC:
dumbbell [Mon, 28 Jan 2008 10:26:24 +0000 (10:26 +0000)]
MFC:
  sys/kern/vfs_aio.c; revision 1.237
  sys/sys/event.h; revision 1.38

  When asked to use kqueue, AIO stores its internal state in the
  `kn_sdata' member of the newly registered knote. The problem is that
  this member is overwritten by a call to kevent(2) with the EV_ADD flag,
  targetted at the same kevent/knote. For instance, a userland application
  may set the pointer to NULL, leading to a panic.

  A testcase was provided by the submitter.

  PR: kern/118911
  Submitted by: MOROHOSHI Akihiko <moro@remus.dti.ne.jp>

16 years agoRegenerated page with WITHOUT_GSSAPI
dougb [Mon, 28 Jan 2008 08:51:58 +0000 (08:51 +0000)]
Regenerated page with WITHOUT_GSSAPI

16 years agoMFC the WITHOUT_GSSAPI knob.
dougb [Mon, 28 Jan 2008 08:42:15 +0000 (08:42 +0000)]
MFC the WITHOUT_GSSAPI knob.

16 years agoMFC the purely cosmetic changes, including removal of $NetBSD$ Ids,
dougb [Mon, 28 Jan 2008 07:55:44 +0000 (07:55 +0000)]
MFC the purely cosmetic changes, including removal of $NetBSD$ Ids,
a few spurious #'s, an empty REQUIRE, and a never-used KEYWORD.

16 years agoMFC: ver. 1.82-1.83
mtm [Mon, 28 Jan 2008 07:37:08 +0000 (07:37 +0000)]
MFC: ver. 1.82-1.83
Fix an error in bit shifting logic for network addresses. The route
command would add incorrect routing entries if network numbers weren't
fully "spelled" out according to their class. For example:
  # route add 128.0/16   (works)
  # route add 128/16     (doesn't work)
  # route add 193.0.0/24 (works)
  # route add 193/24     (doesn't work)

Also, rework the way a netmask is deduced from network number if
it [netmask] is not specified.

Submitted by: Nuno Antunes <nuno.antunes@gmail.com> (mostly)

16 years agoGC this file, which was brought over from NetBSD but never used by us.
dougb [Mon, 28 Jan 2008 07:31:31 +0000 (07:31 +0000)]
GC this file, which was brought over from NetBSD but never used by us.

16 years agoMFC: rev. 1.42
mtm [Sun, 27 Jan 2008 22:16:03 +0000 (22:16 +0000)]
MFC: rev. 1.42
Clarify in what formats the grouplist for the '-G' switch
may be accepted.

Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>

16 years agoMFC: 1.36
marius [Sun, 27 Jan 2008 15:42:06 +0000 (15:42 +0000)]
MFC: 1.36

Add missing locking for SBus controllers.

16 years agoMFC: A new configuration variable, daily_status_mail_rejects_shorten, allows
dds [Sun, 27 Jan 2008 08:07:15 +0000 (08:07 +0000)]
MFC: A new configuration variable, daily_status_mail_rejects_shorten, allows
the rejected mail reports to tally the rejects per blacklist without
providing details about individual sender hosts.  The default configuration
keeps the reports in their original form.

16 years agoMFC rev. 1.457:
kib [Sun, 27 Jan 2008 07:52:23 +0000 (07:52 +0000)]
MFC rev. 1.457:
Do not dereference NULL scp in the case the screen is not opened.
Instead, return ENXIO to the ioctl caller.

16 years agoMFC rev. 1.157:
kib [Sun, 27 Jan 2008 07:51:43 +0000 (07:51 +0000)]
MFC rev. 1.157:
In rev. 1.156, the convertion of the minor number to the unit number
resulted in the argument to the make_dev() to be a unit number.

Correct this by supplying a minor number to make_dev(), and using
the unit number for the calculation of the slave tty name.

16 years agoMFC revisions 1.47-1.50.
dds [Sun, 27 Jan 2008 07:38:39 +0000 (07:38 +0000)]
MFC revisions 1.47-1.50.

- Follow POSIX specification when moving a directory to an existing
  directory across devices.

- Improve consistency and remove some style bugs of earlier versions.

This version passes all tests of tools/regression/bin/mv/regress.sh 1.6

PR: bin/118367

16 years agoMFC rev. 1.88
mav [Sun, 27 Jan 2008 02:47:32 +0000 (02:47 +0000)]
MFC rev. 1.88
Add support for optional "AC-Name\Service-Name" syntax at NGM_PPPOE_CONNECT
argument. It allows ppp, mpd or any other node consumer to request
connection to specified access concentrator.

Proposed by: Alexander A. Burylov <burylov@mail.ru>

16 years agoMFC rev 1.85-1.86
mav [Sun, 27 Jan 2008 02:45:41 +0000 (02:45 +0000)]
MFC rev 1.85-1.86
Remove ng_pppoe_sendpacket() function to simplify code as it is called
as much times as it has cases inside of it.
Split ng_pppoe_rcvdata() function into three hook-specific ones
to simplify code and reduce stack usage.

16 years agoMFC rev. 1.25
mav [Sun, 27 Jan 2008 02:36:08 +0000 (02:36 +0000)]
MFC rev. 1.25
Remove some prehistoric never used defines.

16 years agoMFC: 1.4
marius [Sun, 27 Jan 2008 01:00:28 +0000 (01:00 +0000)]
MFC: 1.4

- Remove MIIF_NOISOLATE.
- Fix spelling in a comment.

16 years agoMFC revision 1.7
delphij [Sat, 26 Jan 2008 21:59:10 +0000 (21:59 +0000)]
MFC revision 1.7
date: 2008/01/12 00:11:26;  author: delphij;  state: Exp;  lines: +4 -4
 - Handle the case where interface from "middle" is missing by
   more carefully inspecting the return value from sysctl(3). [1]
 - Use calloc instead of malloc+memset of zero.

Submitted by: Alexander Chernikov <admin su29 net> [1]
PR: bin/119581
MFC after: 2 weeks

16 years agoMFC _ldtoa.c,v 1.5
das [Sat, 26 Jan 2008 08:21:32 +0000 (08:21 +0000)]
MFC _ldtoa.c,v 1.5

    Fix handling of subnormals on i386/ia64/amd64.

    PR: 85080

16 years agoMFC qsort.c,v 1.14-1.15, heapsort.c,v 1.6
das [Sat, 26 Jan 2008 08:21:13 +0000 (08:21 +0000)]
MFC qsort.c,v 1.14-1.15, heapsort.c,v 1.6

    Use size_t to avoid overflow when sorting arrays larger than 2 GB.

    PR: 111085

16 years agoMFC growfs.c,v 1.26
das [Sat, 26 Jan 2008 08:21:12 +0000 (08:21 +0000)]
MFC growfs.c,v 1.26

    Fix an int overflow on very large file systems.

    PR: bin/113399
    Submitted by: Staffan Ulfberg <staffan@ulfberg.se>

16 years agoMFC: rev. 1.110
mtm [Sat, 26 Jan 2008 06:49:27 +0000 (06:49 +0000)]
MFC: rev. 1.110
----------------------------------------------------------------------------
Instead of manually freeing the packet options structure (and not even doing
a good job of it) in the copypktopts() function, just call ip6_clearpktopts()
directly. Otherwise, the callers of this function would end up freeing the
memory twice.

Reviewed by: jinmei
PR:          kern/116360
----------------------------------------------------------------------------

16 years agoMFC rev. 1.52:
kib [Fri, 25 Jan 2008 10:12:33 +0000 (10:12 +0000)]
MFC rev. 1.52:
udf_vget() shall vgone() the vnode when the file_entry cannot be allocated
or read from the volume. Otherwise, half-constructed vnode could be found
later and cause panic when accessed.

PR: 118322