]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC aac_cam.c 1.30:
emaste [Mon, 31 Mar 2008 20:11:46 +0000 (20:11 +0000)]
MFC aac_cam.c 1.30:

  Merge from Adaptec a 64 bit fix and a workaround for luns != 0
  returning CAM_SEL_TIMEOUT on SAS controllers, which prevented
  passthrough devices from being created.

16 years agoMFC aac.c 1.125, aac_pci.c 1.66, aacreg.h:1.24:
emaste [Mon, 31 Mar 2008 20:03:31 +0000 (20:03 +0000)]
MFC aac.c 1.125, aac_pci.c 1.66, aacreg.h:1.24:

  Add family support to allow the driver to attach to new devices that
  share the same interface.

16 years agoMFC aac.c 1.130:
emaste [Mon, 31 Mar 2008 19:50:53 +0000 (19:50 +0000)]
MFC aac.c 1.130:
  Restore creation of passthrough devices with newer controller firmware by
  putting the correct size in the fib header.  Presumably the older firmware
  silently ignored a bad size field.

  (This change tested with a 3805 controller.  Passthrough devices were
  created when running firmware build 12814, but not 15323 or later.  With
  this change they're created for both old and new firmware versions.)

  Submitted by: Adaptec

16 years agoMFC aac.c 1.131:
emaste [Mon, 31 Mar 2008 17:04:10 +0000 (17:04 +0000)]
MFC aac.c 1.131:
  Diff reduction to Adaptec driver build 15317 (refactoring and code shuffling):

  - Resource allocation in aac_alloc (moved from from aac_init)
  - Interrupt setup in aac_setup_intr (from aac_attach)
  - Container probing in aac_get_container_info (from aac_startup and
    aac_handle_aif)
  - Firmware status check moved to aac_check_firmware from aac_init

16 years agoMFC aac.c 1.121:
emaste [Mon, 31 Mar 2008 14:44:08 +0000 (14:44 +0000)]
MFC aac.c 1.121:
  Correct calculation of aac_sg_tablesize.

  Obtained from:  Adaptec, via driver b11669

16 years agoInclude Guido's license information from the pattern-matching code.
kientzle [Mon, 31 Mar 2008 06:20:46 +0000 (06:20 +0000)]
Include Guido's license information from the pattern-matching code.

16 years agoMFC rev 1.84 route.c
remko [Sat, 29 Mar 2008 13:44:36 +0000 (13:44 +0000)]
MFC rev 1.84 route.c

  In route.c in newroute() there's a call to exit(0) if the command was
  'get'. Since rtmsg() always gets called and returns 0 on success and -1
  on failure, it's possible to exit with a suitable exit code by calling
  exit(ret != 0) instead, as is done at the end of newroute().

  PR: bin/112303
  Submitted by: bruce@cran.org.uk
  MFC after: 1 week

Approved by: imp (mentor, implicit)

16 years agoMFC aac.c r1.133:
emaste [Fri, 28 Mar 2008 18:13:38 +0000 (18:13 +0000)]
MFC aac.c r1.133:
  Correct data direction flags in aac_bio_command() in the
  !AAC_FLAGS_RAW_IO && AAC_FLAGS_SG_64BIT case.

  Submitted by:   Adaptec

16 years agoMFC aac.c r1.127
emaste [Thu, 27 Mar 2008 20:47:21 +0000 (20:47 +0000)]
MFC aac.c r1.127

  Avoid holding the aac_io_lock over copyout.

  Submitted by: Achim Leubner @ Adaptec.

16 years agoMFC
kib [Thu, 27 Mar 2008 13:53:52 +0000 (13:53 +0000)]
MFC
rev. 1.682 of sys/amd64/amd64/machdep.c
rev. 1.16  of sys/amd64/ia32/ia32_signal.c
rev. 1.33  of sys/amd64/linux32/linux32_sysvec.c
rev. 1.666 of sys/i386/i386/machdep.c
rev. 1.152 of sys/i386/linux/linux_sysvec.c
rev. 1.39  of sys/i386/svr4/svr4_machdep.c
rev. 1.402 of sys/pc98/pc98/machdep.c

Modify the signal handler frame setup code to clear the DF {e,r}flags
bit on the amd64/i386 for the signal handlers.

16 years agoFix typo and wording glitch.
bmah [Thu, 27 Mar 2008 04:55:06 +0000 (04:55 +0000)]
Fix typo and wording glitch.

Submitted by: Ben Kaduk

16 years agoMFC Revision 1.27
lulf [Wed, 26 Mar 2008 16:33:57 +0000 (16:33 +0000)]
MFC Revision 1.27
  - Fix a memory leak when re-discovering a gvinum configuration.

Approved by:    pjd (mentor)

16 years agoMFC aac.c r1.123:
emaste [Wed, 26 Mar 2008 14:46:43 +0000 (14:46 +0000)]
MFC aac.c r1.123:
  Dequeue all events in aac_release_command (instead of just one)
  so that there's no risk of them getting stranded.

16 years agoMFC aac.c r1.128:
emaste [Wed, 26 Mar 2008 14:22:22 +0000 (14:22 +0000)]
MFC aac.c r1.128:
  Change spelling and eliminate a typo in comments to reduce diffs with
  Adaptec's vendor driver.

16 years agoMFC 1.31: Change .8s port name restriction to .15s.
ume [Tue, 25 Mar 2008 13:14:29 +0000 (13:14 +0000)]
MFC 1.31: Change .8s port name restriction to .15s.
This change corresponds to inet.c 1.13.

16 years agoMFC of tzdata2008b
edwin [Tue, 25 Mar 2008 03:50:01 +0000 (03:50 +0000)]
MFC of tzdata2008b

16 years agoMFC: 1.26
jkim [Mon, 24 Mar 2008 17:50:24 +0000 (17:50 +0000)]
MFC: 1.26

Update list of possible mixer devices.

16 years agoMFC: 1.24-1.26
jkim [Mon, 24 Mar 2008 17:49:34 +0000 (17:49 +0000)]
MFC: 1.24-1.26

- Check device masks and bypass printing headers if capable device does
not exist.  /etc/rc.d/mixer tried to restore non-existent recording
source because /var/var/db/mixer*-state contains '=rec' for example.
- Remove hardcoded mixer2 and mixer3 and do the right thing.
- Replace getopt(3) with hand-rolled option parser.  It was not able
to handle 'mixer -rec mic' although it is a valid command.
- Make '-s' and '-S' mutualy exclusive as mixer(8) says.
- Do not re-read recording source unless it has been modified.
- Clean up code and fix style(9) nits.

16 years agoMFC: 1.80-1.83
jkim [Mon, 24 Mar 2008 17:23:25 +0000 (17:23 +0000)]
MFC: 1.80-1.83

- Prefer clock_gettime(2) over gettimeofday(2) and use CLOCK_MONOTONIC
as it is only used to track elapsed time.[1]
- Fix compiler warnings and style(9) bugs.

[1] CLOCK_MONOTONIC is used on here because CLOCK_MONOTONIC_FAST is
unimplemented on RELENG_6.

16 years agoMFC:
emax [Mon, 24 Mar 2008 16:26:38 +0000 (16:26 +0000)]
MFC:

Separate SDP parameters data structures for the BNEP based profiles.

Generalize Service Availability SDP parameter creation.

Add mandatory "security description" SDP parameter to the PANU profile

Pointed-out by: Iain Hibbert < plunky at rya-online dot net >

16 years agoMFC rev 1.73 newfs.8
remko [Mon, 24 Mar 2008 10:46:00 +0000 (10:46 +0000)]
MFC rev 1.73 newfs.8

  Replace reference from vinum.8 to gvinum.8, it was advised in the PR to
  replace this with vinum.4, but that's the kernel interface manual, which
  is not appropriate in my understanding.  I think that gvinum is a suitable
  replacement for this.

  PR:             docs/121938
  Submitted by:   "Federico" <federicogalvezdurand at yahoo dot com>
  MFC after:      3 days

16 years agoMFC rev 1.9 drm_pciids.h
remko [Mon, 24 Mar 2008 10:43:41 +0000 (10:43 +0000)]
MFC rev 1.9 drm_pciids.h
MFC rev 1.7 i915_dma.c

  Add the i915 GME device to DRM.

  PR:             kern/121808
  Submitted by:   Volker Werth <volker at vwsoft dot com>
  Approved by:    imp (mentor, implicit for trivial changes)
  MFC after:      3 days

Approved by: imp (mentor, implicit)

16 years agoMFC: Repair handling of X11BASE and LOCALBASE
kris [Sat, 22 Mar 2008 15:13:26 +0000 (15:13 +0000)]
MFC: Repair handling of X11BASE and LOCALBASE

16 years agoMFC: Use the SMAP data from the loader if it is provided.
jhb [Fri, 21 Mar 2008 15:40:33 +0000 (15:40 +0000)]
MFC: Use the SMAP data from the loader if it is provided.

16 years agoMFC: Add constants for the different memory types in the SMAP table and
jhb [Fri, 21 Mar 2008 15:34:39 +0000 (15:34 +0000)]
MFC: Add constants for the different memory types in the SMAP table and
use the SMAP types and constants from <machine/pc/bios.h> in the boot code.

16 years agoMFC of 1.48
edwin [Thu, 20 Mar 2008 11:27:15 +0000 (11:27 +0000)]
MFC of 1.48

Add projects-all collection to cvs-supfile

PR: misc/121680
Submitted by: "Philip M. Gollucci" <pgollucci@p6m7g8.com>

16 years agoMFC:
mtm [Thu, 20 Mar 2008 10:53:18 +0000 (10:53 +0000)]
MFC:
The check for errors from the mount command did not work as
intended because another command (echo) is executed between
the mount command and the check.

Reported by: Sergey Baturov <sergey@toor.org.ru>

16 years agoMFC:
brueffer [Thu, 20 Mar 2008 08:59:04 +0000 (08:59 +0000)]
MFC:

Use a standard section 4 SYNOPSIS.

16 years agoMFC: rev. 1.4 + 1.5
brueffer [Thu, 20 Mar 2008 08:34:24 +0000 (08:34 +0000)]
MFC: rev. 1.4 + 1.5

Correct bpf data-link type.

16 years agoMFC: rev. 1.23
brueffer [Thu, 20 Mar 2008 08:15:03 +0000 (08:15 +0000)]
MFC: rev. 1.23

Device counts are long gone.

16 years agoMFC: rev. 1.18
brueffer [Thu, 20 Mar 2008 08:11:24 +0000 (08:11 +0000)]
MFC: rev. 1.18

Fix AUTHORS formatting.

16 years agoMFC: rev. 1.29
brueffer [Thu, 20 Mar 2008 08:09:07 +0000 (08:09 +0000)]
MFC: rev. 1.29

Device counts are long gone, also remove the outdated FILES section.

16 years agoMFC: rev. 1.62
brueffer [Thu, 20 Mar 2008 08:04:48 +0000 (08:04 +0000)]
MFC: rev. 1.62

In the description of the password field, -w was meant, not the
nonexistant -p flag.

16 years agoMFC: Relax the BIOS/OS sempahore handoff code to workaround different hard
jhb [Wed, 19 Mar 2008 16:39:07 +0000 (16:39 +0000)]
MFC: Relax the BIOS/OS sempahore handoff code to workaround different hard
hangs on boot and shutdown.

16 years agoMFC: Use a runtime mask for the PhysBase and PhysMask fields in variable
jhb [Wed, 19 Mar 2008 16:37:24 +0000 (16:37 +0000)]
MFC: Use a runtime mask for the PhysBase and PhysMask fields in variable
sized MTRR registers.

16 years agoMFC: Break up the logic in the mem_drvinit routines.
jhb [Wed, 19 Mar 2008 16:33:58 +0000 (16:33 +0000)]
MFC: Break up the logic in the mem_drvinit routines.

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'.