]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC: Minimize diffs with i686_mem.c.
jhb [Wed, 19 Mar 2008 16:31:32 +0000 (16:31 +0000)]
MFC: Minimize diffs with i686_mem.c.

16 years agoMFC: Add constants for the various fields in MTRR registers and apply
jhb [Wed, 19 Mar 2008 16:29:07 +0000 (16:29 +0000)]
MFC: Add constants for the various fields in MTRR registers and apply
style(9).  No functional changes.

16 years agoMFC: explicitate newpacket size.
piso [Wed, 19 Mar 2008 11:50:45 +0000 (11:50 +0000)]
MFC: explicitate newpacket size.

Bug pointed out by: many
Pointy hat to: me :(

16 years agoMFC icsphy(4) to RELENG_6.
yongari [Wed, 19 Mar 2008 01:11:39 +0000 (01:11 +0000)]
MFC icsphy(4) to RELENG_6.
icsphy(4) is required to support PHYs found on Xbox and VIA Rhine
ethernet controllers.

PR: kern/121459

16 years agoMFC: Use real moder to invoke BIOS routines rather than virtual 86 mode.
jhb [Tue, 18 Mar 2008 17:44:28 +0000 (17:44 +0000)]
MFC: Use real moder to invoke BIOS routines rather than virtual 86 mode.

16 years agoMFC:
mav [Tue, 18 Mar 2008 17:39:42 +0000 (17:39 +0000)]
MFC:
Improve apply callback error reporting:
Before this patch callback returned result of the last finished call chain.
Now it returns last nonzero result from all call chain results in this request.

As soon as this improvement gives reliable error reporting, it is now possible
to remove dirty workaround in ng_socket, made to return ENOBUFS error statuses
of request-response operations. That workaround was responsible for returning
ENOBUFS errors to completely unrelated requests working at the same time
on socket.

16 years agoMFC rev. 1.25
mav [Tue, 18 Mar 2008 17:33:03 +0000 (17:33 +0000)]
MFC rev. 1.25
Add session ID hashing to speedup incoming packets dispatch in case
of many connections working via the same tunnel. For example, in case
of full "client <-> LAC <-> LNS" setup.

16 years agoMFC Revision 1.25:
piso [Tue, 18 Mar 2008 14:39:05 +0000 (14:39 +0000)]
MFC Revision 1.25:
Don't abuse stack space while in kernel land, use heap instead.

PR: kern/118432

16 years agoMFC if_bfe.c rev 1.44, if_bfereg.h rev 1.11 to RELENG_6:
yongari [Tue, 18 Mar 2008 02:17:36 +0000 (02:17 +0000)]
MFC if_bfe.c rev 1.44, if_bfereg.h rev 1.11 to RELENG_6:
  Fix link state handling in bfe(4).
   o conversion to callout(9) API.
   o add a missing driver lock in bfe_ifmedia_sts().
   o use our callout to drive watchdog timer.
   o restart Tx routine if pending queued packets are present in
     watchdog handler.
   o unarm watchdog timer only if there are no queued packets.
   o don't blindly reset phy and let phy driver handle link change
     request in bfe_init_locked().
   o return the status of mii_mediachg() to caller in
     bfe_ifmedia_upd(). Previously it always returned 0 to caller.
   o add check for IFF_DRV_RUNNING flag as well as IFF_DRV_OACTIVE
     in bfe_start_locked().
   o implement miibus_statchg method that keeps track of current
     link state changes as well as negotiated speed/duplex/
     flow-control configuration.
     Reprogram MAC to appropriate duplex state. Flow-control
     configuration was also implemented but commented out at the
     moment. The flow-control configuration will be enabled again
     after we have general flow-control framework in mii layer.

16 years agoMFC if_lge.c rev 1.53 to RELENG_6:
yongari [Tue, 18 Mar 2008 02:01:21 +0000 (02:01 +0000)]
MFC if_lge.c rev 1.53 to RELENG_6:
  Plug memory leak in jumbo buffer allocation failure path.
  Patch in the PR was modified to check active jumbo buffers in use
  and other possible jumbo buffer leak.

  Jumbo buffer usage in lge(4) still wouldn't be reliable due to lack
  of driver lock in local jumbo buffer allocator. Either introduce
  a new lock to protect jumbo buffer or switch to UMA backed page
  allocator for jumbo frame is required.

  I've removed informational device_printf in lge_free_jumbo_mem as
  lge_dev member variable in softc does not exist on RELENG_6.
  if_printf can't be used as sc->lge_ifp could be NULL.

  PR: kern/78072

16 years agoMFC: if_msk.c 1.30, if_msk.c 1.31 to RELENG_6
yongari [Tue, 18 Mar 2008 01:33:47 +0000 (01:33 +0000)]
MFC: if_msk.c 1.30, if_msk.c 1.31 to RELENG_6
  To overcome hardware checksum offload bug msk(4) used to compute
  TCP/UDP checksum in driver for short frames. For frames that requires
  hardware VLAN tag insertion, the checksum offload trick does not
  work due to changes of checksum offset in mbuf after the VLAN tag.

  Disable hardware checksum offload for VLAN interface to fix the bug.

16 years agoMFC: if_msk.c 1.29, if_mskreg.h 1.12 to RELENG_6
yongari [Tue, 18 Mar 2008 01:27:15 +0000 (01:27 +0000)]
MFC: if_msk.c 1.29, if_mskreg.h 1.12 to RELENG_6
  Workaround GMAC hardware hang of Yukon II on the receipt of pause
  frames. This bug seems to happen on certain hardware model/revision
  (e.g. 88E8053) but it's not identified which hardwares are affected.
  Revision 1.4 of if_mskreg.h was not enough to workaround the bug.
  To workaround it, inrease GMAC FIFO threshold by one FIFO word to
  flush received pause frames.

16 years agoMFC:
emax [Tue, 18 Mar 2008 00:29:26 +0000 (00:29 +0000)]
MFC:

Add support for the NAP, GN and PANU profiles to the sdpd(8).
It should be mentioned that a somewhat similar patch was
submitted by Rako < rako29 at gmail dot com >

16 years agoMFC:
emax [Tue, 18 Mar 2008 00:26:01 +0000 (00:26 +0000)]
MFC:

Add structures to hold SDP parameters for the NAP, GN and PANU profiles.
It should be mentioned that a somewhat similar patch was submitted by
Rako < rako29 at gmail dot com >

16 years agoMFC r1.71:
rpaulo [Mon, 17 Mar 2008 19:57:21 +0000 (19:57 +0000)]
MFC r1.71:
 Some PIIX4 chipsets need to be told to generate Stop Breaks by
 setting
 the appropriate bit in the DEVACTB register.
 This change allows the C2 state on those systems to work as expected.

 Reviewed by:    njl
 Submitted by:   Andriy Gapon <avg at icyb.net.ua>

16 years agoMFC to RELENG_6
antoine [Mon, 17 Mar 2008 19:08:32 +0000 (19:08 +0000)]
MFC to RELENG_6
  - Make Disk_Names() behave as documented in libdisk(3): return an array
  of disk names, where you must free each pointer, as well as the array
  by hand. [1]
  - Destaticize "disks" in Disk_Names, it has no reasons to be static.

  PR:             kern/96077 [1]
  PR:             kern/114110 [1]
  MFC after:      1 month
  Approved by:    rwatson (mentor)

16 years agoMFC: Use cpu_feature2 and don't free anything in detach.
jhb [Mon, 17 Mar 2008 18:31:06 +0000 (18:31 +0000)]
MFC: Use cpu_feature2 and don't free anything in detach.

16 years agoMFC: Calculate the number of pages the GATT spans instead of assuming it
jhb [Mon, 17 Mar 2008 18:27:23 +0000 (18:27 +0000)]
MFC: Calculate the number of pages the GATT spans instead of assuming it
always spans 33 pages.

16 years agoMFC: Add support for the BCM5722.
jhb [Mon, 17 Mar 2008 18:24:04 +0000 (18:24 +0000)]
MFC: Add support for the BCM5722.

16 years agoMFC: Force an explicit dependency on opt_global.h for all module object
jhb [Mon, 17 Mar 2008 18:12:13 +0000 (18:12 +0000)]
MFC: Force an explicit dependency on opt_global.h for all module object
files.

16 years agoMFC: Add a 'c7' CPUTYPE for VIA C7 CPUs.
jhb [Mon, 17 Mar 2008 18:08:45 +0000 (18:08 +0000)]
MFC: Add a 'c7' CPUTYPE for VIA C7 CPUs.

16 years agoMFC: Display the correct /boot.config file contents after parsing it.
jhb [Mon, 17 Mar 2008 18:04:59 +0000 (18:04 +0000)]
MFC: Display the correct /boot.config file contents after parsing it.

16 years agoMFC: Fail attempts to use file descriptors larger than SHRT_MAX.
jhb [Mon, 17 Mar 2008 17:42:26 +0000 (17:42 +0000)]
MFC: Fail attempts to use file descriptors larger than SHRT_MAX.

16 years agoMFC: Remove the 'needbounce' variable from _bus_dmamap_load_buffer().
jhb [Mon, 17 Mar 2008 17:33:32 +0000 (17:33 +0000)]
MFC: Remove the 'needbounce' variable from _bus_dmamap_load_buffer().

16 years agoMFC: Switch libmilter from select(2) to poll(2) so milters are not limited
gshapiro [Sat, 15 Mar 2008 20:55:37 +0000 (20:55 +0000)]
MFC: Switch libmilter from select(2) to poll(2) so milters are not limited
     by the size of FD_SETSIZE.

     PR:             118824
     Submitted by:   vsevolod

16 years agoIn calcru, we make sure the thread's state is correct, however we
alfred [Sat, 15 Mar 2008 03:20:53 +0000 (03:20 +0000)]
In calcru, we make sure the thread's state is correct, however we
do not emit the thread or proc information making debugging this
assertion difficult.

Emit the thread/proc that caused the KASSERT to fail to ease debugging.

Note: this assert does not exist in later branches of FreeBSD.

16 years agoMFC:
emax [Sat, 15 Mar 2008 02:36:32 +0000 (02:36 +0000)]
MFC:

Update usage() - add new -D option. While I'm here, update copyright
information and license formatting

16 years agoMFC:
emax [Fri, 14 Mar 2008 16:11:20 +0000 (16:11 +0000)]
MFC:

Add an option to register DUN (Dial-Up Networking) service on the same
RFCOMM channel if needed. There is really no good reason to not to support
this. AT-command exchange can be faked with chat script in ppp.conf.

16 years agoHonour mpsafe_vfs=0 in softdep_flush. This is basically a MFC of revision
emaste [Fri, 14 Mar 2008 15:25:44 +0000 (15:25 +0000)]
Honour mpsafe_vfs=0 in softdep_flush.  This is basically a MFC of revision
1.206, except that Giant remains unconditionally acquired in the #ifdef
QUOTA case here (as QUOTA-enabled UFS on RELENG_6 is not MPSAFE).

Reviewed by: kib

16 years agoMFC: dist.c v1.254, dist.h v1.72, menus.c v1.429, sysinstall.h v1.275
kensmith [Thu, 13 Mar 2008 15:28:17 +0000 (15:28 +0000)]
MFC: dist.c v1.254, dist.h v1.72, menus.c v1.429, sysinstall.h v1.275

> Change sysinstall's handling of X11 stuff.  Doing it in pieces was
> probably the right thing to do a while ago but xorg has progressed
> to the point that for novice users (who are the ones expected to think
> installing X11 during an install...) it's best to just install the
> whole x11/xorg metaport for them.  This removes the X11 sub-menus
> and sets it up so you just select whether or not you want X11.  While
> here garbage collect an X11 configuration menu I missed removing when
> I removed support for attempting xorg configuration from inside sysinstall
> a while ago.

16 years agoMFC revision 1.25 -- Make sure we return EINVAL for invalid commands
csjp [Thu, 13 Mar 2008 13:53:20 +0000 (13:53 +0000)]
MFC revision 1.25 -- Make sure we return EINVAL for invalid commands

16 years agoMFC rev. 1.26:
wollman [Thu, 13 Mar 2008 02:33:20 +0000 (02:33 +0000)]
MFC rev. 1.26:
  stdio is currently limited to file descriptors not greater than
  {SHRT_MAX}, so {STREAM_MAX} should be no greater than that.  (This
  does not exactly meet the letter of POSIX but comes reasonably close
  to it in spirit.)

16 years agoSync with current merging revs 1.27 and 1.31.
brooks [Wed, 12 Mar 2008 17:41:37 +0000 (17:41 +0000)]
Sync with current merging revs 1.27 and 1.31.

1.27:
Use get_if_var() to retrieve interface specific values of dhclient_flags
and background_dhclient.  This allows interfaces who's names are not
valid parts of shell variables and shortens the code.

1.31:
When the state of the interface changes rapidly enough there is a race
where dhclient is in the process of exiting due to the link going down
when the link coming up causes devd to try and start a new one.  This
results is the link being up, but no dhclient running.

Work around this race by checking a second time after a one second delay
before refusing to start a dhclient instance due to one already being
running.

16 years agoMFC rev 1.18:
brooks [Wed, 12 Mar 2008 17:29:42 +0000 (17:29 +0000)]
MFC rev 1.18:

During PREINIT, when giving the interface the address 0.0.0.0, do it as an
alias to avoid distrubing other addresses.

PR: bin/119255
Submitted by: Jaakko Heinonen <jh at saunalahti dot fi>

16 years agoMFC rev 1.6:
cognet [Wed, 12 Mar 2008 13:51:51 +0000 (13:51 +0000)]
MFC rev 1.6:
date: 2008/03/06 22:27:35;  author: cognet;  state: Exp;  lines: +3 -1
MFi386:
revision 1.6
date: 2004/08/21 18:50:34;  author: alc;  state: Exp;  lines: +3 -1
Properly free the temporary sf_buf in uiomove_fromphys() if a copyin or
copyout fails.

Obtained from: DragonFlyBSD

Spotted out by: Mark Tinguely

16 years agoMerge gzip.c:1.6 from HEAD to RELENG_7:
rwatson [Wed, 12 Mar 2008 11:34:26 +0000 (11:34 +0000)]
Merge gzip.c:1.6 from HEAD to RELENG_7:

  Teach gunzip that .tbz and .tbz2 uncompress to .tar, in a manner similar to
  its existing understanding that .tgz uncompresses to .tar.

  PR:             121519
  Submitted by:   Ighighi <ighighi at gmail.com>

16 years agoMerge NOTES:1.1475 from HEAD to RELENG_6:
rwatson [Wed, 12 Mar 2008 11:33:06 +0000 (11:33 +0000)]
Merge NOTES:1.1475 from HEAD to RELENG_6:

  HZ now defaults to 1000 on many architectures, so update NOTES to reflect
  that.

  PR:             113670
  Submitted by:   Ighighi <ighighi at gmail.com>

16 years agoMerge revision 1.1.1.8
delphij [Wed, 12 Mar 2008 01:52:48 +0000 (01:52 +0000)]
Merge revision 1.1.1.8
date: 2007/04/03 15:51:53;  author: mp;  state: Exp;  lines: +2 -1
Import vendor patch to fix postcmd regression in tcsh-6.15.00.

16 years agoMFC: tcsh 6.15.00.
delphij [Tue, 11 Mar 2008 22:12:58 +0000 (22:12 +0000)]
MFC: tcsh 6.15.00.

16 years agoMFC rev. 1.23-1.24
mav [Tue, 11 Mar 2008 19:14:10 +0000 (19:14 +0000)]
MFC rev. 1.23-1.24
To avoid control data losses, do not acknowledge recieving of control packet
if netgraph reported error while delivering to destination.
Reset 'next send' counter to the last requested by peer on ack timeout,
to resend all subsequest packets after lost one again without additional hints.

16 years agoMFC rev. 1.61
mav [Tue, 11 Mar 2008 19:04:42 +0000 (19:04 +0000)]
MFC rev. 1.61
Send only one incoming notification at a time to reduce queue
trashing and improve performance.
Remove waitflag argument from ng_ksocket_incoming2(), it means nothing
as function call was queued by netgraph.
Remove node validity check, as node validity guarantied by netgraph.
Update comments.

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Tue, 11 Mar 2008 16:51:08 +0000 (16:51 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

16 years agoMFC minor cleanups:
emaste [Tue, 11 Mar 2008 15:14:31 +0000 (15:14 +0000)]
MFC minor cleanups:

ffs_softdep.c 1.210
  Add a newline to the printf message.

ffs_softdep.c 1.214 (part)
  Update comment to match the DIAGNOSTIC -> INVARIANTS change.

16 years agoMFC: rev. 1.148-1.149
mav [Mon, 10 Mar 2008 20:38:56 +0000 (20:38 +0000)]
MFC: rev. 1.148-1.149
Implement 128 items node name hash for faster name search.
Increase node ID hash size from 32 to 128 items.
Increase default queue items allocation limit from 512 to 4096 items
to avoid terrible unpredicted effects for netgraph operation of their
exhaustion while allocating control messages.
Add separate configurable 512 items limit for data items allocation
for DoS/overload protection.

16 years agoMFC: sys/pc98/include/md_var.h 1.3; sys/pc98/pc98/pc98_machdep.c 1.28
nyan [Mon, 10 Mar 2008 12:57:49 +0000 (12:57 +0000)]
MFC: sys/pc98/include/md_var.h 1.3; sys/pc98/pc98/pc98_machdep.c 1.28

  Add pc98 specific code to adjust the firmware geometry when it differs
  from the actual geometry.  This enables support of disks larger than
  ~120GB on pc98 boxes.

16 years agoMerge db_command.c from HEAD to RELENG_6:
rwatson [Mon, 10 Mar 2008 10:40:00 +0000 (10:40 +0000)]
Merge db_command.c from HEAD to RELENG_6:

  When killing a user process from DDB, check that the requested signal is
  > 0 rather than >= 0, or we will panic when trying to deliver the signal.

  PR:             100802
  Submitted by:   Valerio Daelli <valerio.daelli at gmail.com>

16 years agoMerge db_input.c:1.39 from HEAD to RELENG_6:
rwatson [Mon, 10 Mar 2008 10:23:37 +0000 (10:23 +0000)]
Merge db_input.c:1.39 from HEAD to RELENG_6:

  Reserve two bytes at the end of the DDB input line in db_readline() to
  hold the newline and nul terminator.  Otherwise, there are cases where
  garbage may end up in the command history due to a lack of a nul
  terminator, or input may end up without room for a newline.

  PR:             119079
  Submitted by:   Michael Plass <mfp49_freebsd@plass-family.net>

16 years agoMFC rev. 1.93-1.94
mav [Sun, 9 Mar 2008 20:05:39 +0000 (20:05 +0000)]
MFC rev. 1.93-1.94
Make session ID generator to use session ID hash.
Make session ID generator thread-safe.
Use more compact LIST instead of TAILQ for session hash.
Add all listening hooks into LIST to simplify searches.
Use ng_findhook() instead of own equal implementation.

16 years agoMFC: Add support for the libalias redirect functionality.
mav [Sun, 9 Mar 2008 20:02:35 +0000 (20:02 +0000)]
MFC: Add support for the libalias redirect functionality.

Submitted by:   Vadim Goncharov <vadim_nuclight@mail.ru>

16 years agoMerge db_input.c:1.38 from HEAD to RELENG_6:
rwatson [Sun, 9 Mar 2008 14:50:28 +0000 (14:50 +0000)]
Merge db_input.c:1.38 from HEAD to RELENG_6:

  When redrawing an input line, count backspaces to get to the beginning of
  the input field from the current cursor location, rather than the end of
  the input line, as the cursor may not be at the end of the line.
  Otherwise, we may overshoot, overwriting a bit of the previous line and
  failing to fully overwrite the current line.

  PR:             119079
  Submitted by:   Michael Plass <mfp49_freebsd@plass-family.net>

16 years agoMFC: sys/conf/files.sparc64 1.94; sys/sparc64/include/md_var.h 1.17;
marius [Sun, 9 Mar 2008 14:34:26 +0000 (14:34 +0000)]
MFC: sys/conf/files.sparc64 1.94; sys/sparc64/include/md_var.h 1.17;
     sys/sparc64/sparc64/ata_machdep.c 1.1

The Sun disk label only uses 16-bit fields for cylinders, heads and
sectors so the geometry of large IDE disks has to be adjusted.

16 years agoMFC: 1.198
marius [Sun, 9 Mar 2008 14:30:49 +0000 (14:30 +0000)]
MFC: 1.198

Add a hook that allows the geometry to be overridden on certain platforms.

16 years agoMFC: 1.11
marius [Sun, 9 Mar 2008 14:10:23 +0000 (14:10 +0000)]
MFC: 1.11

Allow the targeted CPU type to be set via -mcpu instead of
limiting to the hardcoded equivalent of -mcpu=ultrasparc.

PR: 109510

16 years agoMFV: tzdata2008a
edwin [Sun, 9 Mar 2008 11:23:08 +0000 (11:23 +0000)]
MFV: tzdata2008a

Notable changes:

- Chilis DST has been extended for 3 weeks.
- No leapsecond in 2008

Approved by: grog@ (mentor)

16 years agoMFC rev.s 1.18 ipsec_input.c, 1.16 ipsec_output.c, 1.15 xform_ipip.c
bz [Sat, 8 Mar 2008 18:56:22 +0000 (18:56 +0000)]
MFC rev.s 1.18 ipsec_input.c, 1.16 ipsec_output.c, 1.15 xform_ipip.c

  Replace hard coded options by their defined PFIL_{IN,OUT} names.

16 years agoMFC rev. 1.27 key.c
bz [Sat, 8 Mar 2008 18:38:25 +0000 (18:38 +0000)]
MFC rev. 1.27 key.c

  'spi' and the return value of ntohl are unsigned. Remove the extra >=0
  check which was always true.
  Document the special meaning of spi values of 0 and 1-255 with a comment.

  Found with:     Coverity Prevent(tm)
  CID:            2047

16 years agoMFC rev. 1.26 key.c
bz [Sat, 8 Mar 2008 18:37:03 +0000 (18:37 +0000)]
MFC rev. 1.26 key.c

  In case of failure we can directly return ENOBUFS because
  'result' is still NULL and we do not need to free anything.
  That allows us to gc the entire goto parts and a now unused variable.

  Found with:     Coverity Prevent(tm)
  CID:            2519

16 years agoMFC rev. 1.25
bz [Sat, 8 Mar 2008 18:34:17 +0000 (18:34 +0000)]
MFC rev. 1.25

  Add a missing return so that we drop out in case of an error and
  do not continue with a NULL pointer. [1]

  While here change the return of the error handling code path above.
  I cannot see why we should always return 0 there. Neither does KAME
  nor do we in here for the similar check in all the other functions.

  Found with:     Coverity Prevent(tm) [1]
  CID:            2521

16 years agoMFC rev. 1.17 ipsec_input.c
bz [Sat, 8 Mar 2008 18:29:38 +0000 (18:29 +0000)]
MFC rev. 1.17 ipsec_input.c

  Looking at {ah,esp}_input_cb it seems we might be able to end up
  without an mtag in ipsec4_common_input_cb.
  So in case of !IPCOMP (AH,ESP) only change the m_tag_id if an mtag
  was passed to ipsec4_common_input_cb.

  Found with:     Coverity Prevent(tm)
  CID:            2523

16 years agoMFC rev. 1.16 ipsec_input.c
bz [Sat, 8 Mar 2008 18:27:27 +0000 (18:27 +0000)]
MFC rev. 1.16 ipsec_input.c

  s,#,*, in a multi-line comment. This is C.
  No functional change.

16 years agoMFC rev. 1.15 ipsec_input.c
bz [Sat, 8 Mar 2008 18:25:58 +0000 (18:25 +0000)]
MFC rev. 1.15 ipsec_input.c
  Though we are only called for the three security protocols we can
  handle, document those sprotos using an IPSEC_ASSERT so that it will
  be clear that 'spi' will always be initialized when used the first time.

  Found with:     Coverity Prevent(tm)
  CID:            2533

16 years agoMFC rev. 1.13 ipsec_output.c
bz [Sat, 8 Mar 2008 18:23:55 +0000 (18:23 +0000)]
MFC rev. 1.13 ipsec_output.c

  fix typo: s,applyed,applied,g

16 years agoMFC rev. 1.23 ipsec.c
bz [Sat, 8 Mar 2008 18:22:20 +0000 (18:22 +0000)]
MFC rev. 1.23 ipsec.c

Implement ICMPv6 support in ipsec6_get_ulp().
This is needed to make security policies work correctly if ICMPv6 type
and/or code are given. See setkey(8) 'upperspec' para. for details.

16 years agoMFC rev. 1.23 key.c
bz [Sat, 8 Mar 2008 18:19:50 +0000 (18:19 +0000)]
MFC rev. 1.23 key.c

  Add missing
    break;
  so when comparing AF_INET6 addresses, scope and ports we do not run into
  the default case and return 'no match' instead of 'match'.

16 years ago"MFC" (code is different) rev. 1.20 ipsec.c
bz [Sat, 8 Mar 2008 18:17:25 +0000 (18:17 +0000)]
"MFC" (code is different) rev. 1.20 ipsec.c

  s,#if INET*,#ifdef INET*,

16 years agoMFC r1.12:
rpaulo [Sat, 8 Mar 2008 14:14:35 +0000 (14:14 +0000)]
MFC r1.12:
  Validate the id16 values gathered from ACPI (previously a TODO
  item).
  Style changes by me and njl.

  Submitted by:    Takeharu KATO <takeharu1219 at ybb.ne.jp>
  PR:              119350

16 years agoMFC termcap changes for the END/ENTER keys
rafan [Sat, 8 Mar 2008 05:42:52 +0000 (05:42 +0000)]
MFC termcap changes for the END/ENTER keys

  Log:
  - Remove kH and *6 from xterm. They are defined to the same key as @7 (kp_end)
    As ncurses has the limitation that it returns the first matched key symbol,
    you can not use END in ncurses based program, like mutt, with xterm.
  - Add @8 (kp_enter) definition for xterm so you can use ENTER in xterm with
    ncurses based program.

  I also found that NetBSD's xterm does the same thing.

PR:             100150
Reported by:    Arseny Nasokin <tarc at tarc.po.cs.msu.su>
Discussed with: Thomas Dickey, Ulrich Spoerlein <uspoerlein at gmail.com>
Reviewed by:    freebsd-arch@

16 years agoMFC revision 1.108
delphij [Sat, 8 Mar 2008 01:00:39 +0000 (01:00 +0000)]
MFC revision 1.108
date: 2008/01/30 22:11:59;  author: delphij;  state: Exp;  lines: +2 -2
Fix two typos.

16 years agoMFC revision 1.14
delphij [Sat, 8 Mar 2008 00:54:27 +0000 (00:54 +0000)]
MFC revision 1.14
date: 2008/01/29 00:20:00;  author: delphij;  state: Exp;  lines: +1 -1
Don't coredump when executed with -o.

16 years agoMFC: VIA Padlock changes:
jhb [Fri, 7 Mar 2008 20:19:33 +0000 (20:19 +0000)]
MFC: VIA Padlock changes:
- Read the brand string from VIA/IDT CPUs.
- Add a VIA Padlock feature line in dmesg.
- Support the newer Via C7 core (0x6d0).

16 years agoNew errata note: sysinstall(8) X.org hazard.
bmah [Fri, 7 Mar 2008 16:42:16 +0000 (16:42 +0000)]
New errata note:  sysinstall(8) X.org hazard.

16 years agoMFC rev 1.162 umass.c
remko [Fri, 7 Mar 2008 16:00:28 +0000 (16:00 +0000)]
MFC rev 1.162 umass.c
MFC rev 1.338 usbdevs

Add support for the VIA USB2IDE bridge [1].

  PR: usb/95173
  Submitted by: Goegele Hannes <diazepam@gmx.net>
  Ben Kelly <bkelly at vadev dot org>
  Tested by: blackend
  Approved by: imp (mentor, blanket for simple patches)
  X-MFC-After: 1 week

Approved by: imp (mentor, implicit)

16 years agoMFC rev 1.340 usbdevs
remko [Fri, 7 Mar 2008 15:23:32 +0000 (15:23 +0000)]
MFC rev 1.340 usbdevs
MFC rev 1.90 uscanner.c

Add support for the EPSON CX5400 scanner

  PR: usb/120980
  Submitted by: Christophe Etcheverry <cetcheve at gmail dot com>
  MFC after: 3 days
  Approved by: imp (mentor, implicit for trivial changes)

Approved by: imp (mentor, implicit)

16 years agoMFC rev 1.8 drm_pciids.h
remko [Fri, 7 Mar 2008 14:58:50 +0000 (14:58 +0000)]
MFC rev 1.8 drm_pciids.h

   Add support for the 965GM.

   PR:             kern/120978
   Submitted by:   Dominic Fandrey <kamikaze at bsdforen dot de>
   Approved by:    imp (mentor, implicit), anholt (drm maintainer)
   MFC after:      3 days

Approved by: imp (mentor, implicit)

16 years agoMFC: 1.30
ghelmer [Thu, 6 Mar 2008 15:07:37 +0000 (15:07 +0000)]
MFC: 1.30

Fix truncation of lines at LINE_MAX characters by dynamically
extending line buffers.

PR: bin/76578

16 years agoMFC: rev. 1.32
mtm [Thu, 6 Mar 2008 14:13:11 +0000 (14:13 +0000)]
MFC: rev. 1.32
Add the -M command-line option, which will set home directory
permissions. Works both in interactive or batch mode. This is
a heavily modified version of the patch submitted in the PR.

PR: bin/105060

16 years agoMFC: rev. 1.17
brueffer [Thu, 6 Mar 2008 07:20:53 +0000 (07:20 +0000)]
MFC: rev. 1.17

The Sony i.LINK (CXD1947) is _not_ supported.

16 years agoMFC revision 1.5
delphij [Thu, 6 Mar 2008 01:05:30 +0000 (01:05 +0000)]
MFC revision 1.5
date: 2008/02/16 00:16:49;  author: delphij;  state: Exp;  lines: +2 -1
Allow underscore in domain names while resolving.  While having underscore
is a violation of RFC 1034 [STD 13], it is accepted by certain name servers
as well as other popular operating systems' resolver library.

Bugs are mine.

Obtained from:  ume

16 years agoMFC: Make netstat -rn more resilient to having the routing table change out
jhb [Wed, 5 Mar 2008 21:19:25 +0000 (21:19 +0000)]
MFC: Make netstat -rn more resilient to having the routing table change out
from under it while running.

16 years agoMFC: Consolidate the code to generate a new XID for a NFS request.
jhb [Wed, 5 Mar 2008 20:04:16 +0000 (20:04 +0000)]
MFC: Consolidate the code to generate a new XID for a NFS request.

16 years agoMFC: add "server mode" to rfcomm_sppd(1)
emax [Tue, 4 Mar 2008 17:41:58 +0000 (17:41 +0000)]
MFC: add "server mode" to rfcomm_sppd(1)

MFC: Check return value of listen()

PR: bin/102523
Submitted by: Dave Eckhardt, bms, kevlo
Tested by: Dave Eckhardt, Eric Anderson, bms

16 years agoMFC rev. 1.63-1.68
mav [Tue, 4 Mar 2008 12:52:34 +0000 (12:52 +0000)]
MFC rev. 1.63-1.68
Document -instance and -globalport options.
Note that the punch_fw option does not work in securelevel 3.

16 years agoMFC: rev. 1.5
brueffer [Tue, 4 Mar 2008 06:09:13 +0000 (06:09 +0000)]
MFC: rev. 1.5

Move the HARDWARE section below the DESCRIPTION section, like it is
everywhere else.

16 years agoMFC: 1.51 - better recover from unknown encoding, not by core dump
ache [Mon, 3 Mar 2008 12:51:02 +0000 (12:51 +0000)]
MFC: 1.51 - better recover from unknown encoding, not by core dump

16 years agoConditionally acquire Giant based on debug.mpsafenet around entry points
rwatson [Sun, 2 Mar 2008 14:54:48 +0000 (14:54 +0000)]
Conditionally acquire Giant based on debug.mpsafenet around entry points
from if_re taskqueue and other potentially Giant-free spots.  If we don't
do this, Giant may not be held entering KAME IPSEC, etc.

This problem appeared in FreeBSD 6.2 as a result of a move to fast
interrupts, and does not exist in 7.x due to not having debug.mpsafenet.

PR: 118719
Reported by: Dan Lukes <dan at obluda dot cz>
Reviwed by: yongari

16 years agoMFC: rev 1.65.
akiyama [Sun, 2 Mar 2008 13:07:03 +0000 (13:07 +0000)]
MFC: rev 1.65.
o Add module event handler.
o Update copyright year.

16 years agoMFC: rev 1.3: '-n' option which is the opposite of '-N'.
obrien [Sun, 2 Mar 2008 03:11:48 +0000 (03:11 +0000)]
MFC: rev 1.3: '-n' option which is the opposite of '-N'.

16 years agoMFC: rev 1.278: correct typo in comment.
obrien [Sun, 2 Mar 2008 01:35:37 +0000 (01:35 +0000)]
MFC: rev 1.278: correct typo in comment.
Also sync comment layout changes and spelling fixes.

16 years agoSync with HEAD - remove unneeded cases.
obrien [Sat, 1 Mar 2008 18:35:27 +0000 (18:35 +0000)]
Sync with HEAD - remove unneeded cases.

16 years agoMerge mac_mls.c:1.99 from HEAD to RELENG_6:
rwatson [Sat, 1 Mar 2008 14:52:06 +0000 (14:52 +0000)]
Merge mac_mls.c:1.99 from HEAD to RELENG_6:

  Properly return the error from mls_subject_privileged() in the ifnet
  relabel check for MLS rather than returning 0 directly.

  This problem didn't result in a vulnerability currently as the central
  implementation of ifnet relabeling also checks for UNIX privilege, and
  we currently don't guarantee containment for the root user in mac_mls,
  but we should be using the MLS definition of privilege as well as the
  UNIX definition in anticipation of supporting root containment at some
  point.

  Submitted by:   Zhouyi Zhou <zhouzhouyi at gmail dot com>
  Sponsored by:   Google SoC 2007

16 years agoMerge netisr.h:1.34 from HEAD to RELENG_6:
rwatson [Sat, 1 Mar 2008 11:45:14 +0000 (11:45 +0000)]
Merge netisr.h:1.34 from HEAD to RELENG_6:

  Update netisr comment for the SMPng world order: netisr is no longer
  implemented using the ISR facility, and cannot be triggered by calling
  splnet()/splx().

16 years agoMerge uipc_sem.c:1.30 from HEAD to RELENG_6:
rwatson [Sat, 1 Mar 2008 11:43:01 +0000 (11:43 +0000)]
Merge uipc_sem.c:1.30 from HEAD to RELENG_6:

  Free MAC label on a POSIX semaphore when the semaphore is freed.

  Submitted by:   jhb

16 years agoMerge bpf.c:184, bpf.h:1.49 from HEAD to RELENG_6:
rwatson [Sat, 1 Mar 2008 11:38:26 +0000 (11:38 +0000)]
Merge bpf.c:184, bpf.h:1.49 from HEAD to RELENG_6:

  Remove trailing whitespace from lines in BPF.

Minor tweaks to account for minor changes between RELENG_6 and HEAD.

16 years agoMerge nfs_vnops.c:1.277 from HEAD to RELENG_6:
rwatson [Sat, 1 Mar 2008 11:33:22 +0000 (11:33 +0000)]
Merge nfs_vnops.c:1.277 from HEAD to RELENG_6:

  Remove hacks from the NFSv2/3 client intended to handle a lack of a
  server-side RPC retranmission cache for non-idempotent operations: these
  hacks substituted 0 (success) for the expected EEXIST in the event that
  a target name already existed for LINK, SYMLINK, and MKDIR operations,
  under the assumption that EEXIST represented a second application of the
  original RPC rather than a true failure.

  Background: certain NFS operations (in this case, LINK, SYMLINK, and
  MKDIR) are not idempotent, as they leave behind persisting state on the
  server that prevents them from being replayed without an error;if an UDP
  RPC reply is lost leading to a retransmission by theclient, the second
  reply will return EEXIST rather than success, asthe new object has
  already been created.  The NFS client previouslysilently mapped the
  EEXIST return into success to paper over thisproblem.

  However, in all modern NFS server implementations, a reply cache is kept
  in order to retransmit the original reply to a retransmitted request,
  rather than performing the operation a second time, allowing this hack
  to be avoided.  This allows link()-based filelocking over NFS to operate
  correctly, as an application requestingthe creation of a new link for a
  file to tell if it succeededatomically or not.

  Other NFS clients, including Solaris and Linux, generally follow this
  behavior for the same reasons.  Most clients also now default to TCP,
  which also helps avoid the issue of retransmitted but non-idempotent
  requests in most cases.

  Reported by:    Adam McDougall <mcdouga9 at egr dot msu dot edu>,
                  Timo Sirainen <tss at iki dot fi>
  Reviewed by:    mohans

16 years agoNew errata items: Wrong KDE version number, Linux mmap(2) issues,
bmah [Sat, 1 Mar 2008 04:33:14 +0000 (04:33 +0000)]
New errata items:  Wrong KDE version number, Linux mmap(2) issues,
multithreaded programs and fork(2) issue.

16 years agoMFC: rev. 1.25
brueffer [Thu, 28 Feb 2008 06:09:23 +0000 (06:09 +0000)]
MFC: rev. 1.25

Add missing words.

16 years agoMFC rev 1.131 if_ti.c
remko [Tue, 26 Feb 2008 19:28:34 +0000 (19:28 +0000)]
MFC rev 1.131 if_ti.c

Set the baudrate for if_ti.

  PR: kern/40516
  Submitted by: "Jin Guojun[VFF]" <jin at adsl-63-198-35-122 dot dsl dot snfc21 dot pacbell dot net>
  Approved by: imp (mentor, implicit for minor changes)
  MFC After: 1 week

Approved by: imp (mentor, implicit)

16 years agoBack out MFC of "eradicate caddr_t".
obrien [Tue, 26 Feb 2008 18:19:49 +0000 (18:19 +0000)]
Back out MFC of "eradicate caddr_t".
Turn's out Kris' suspisions were right - from a suttle code compatability
point of view.  Robert Watson found that ARLA code had something like this:
typedef int (*foo_t)(caddr_t); ... foo_t fred;
The compile gets all snarky when it finds int fred(void *) { .. }.

16 years agoMFC rev. 1.147
mav [Tue, 26 Feb 2008 12:40:06 +0000 (12:40 +0000)]
MFC rev. 1.147
Fix incorrect constant used in rev. 1.146 that broke node writer locking.

16 years agoo Backout rev. 1.252.2.39 rc.conf and rev. 1.256.2.35 rc.conf.5:
maxim [Tue, 26 Feb 2008 10:30:19 +0000 (10:30 +0000)]
o Backout rev. 1.252.2.39 rc.conf and rev. 1.256.2.35 rc.conf.5:
there is TCP_DROP_SYNFIN in RELENG_6 still.

PR: kern/120587