]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoAdd a note about sparc64 needing to use serial consoles, due to
bmah [Sat, 8 Sep 2007 22:34:44 +0000 (22:34 +0000)]
Add a note about sparc64 needing to use serial consoles, due to
unusability of OFW consoles.  [1]

Try to use trademark entities where appropriate in the "Supported
Processors" section.

Submitted by: kris [1]
Approved by: re (implicitly)

16 years agoAdd SCSI READ CAPACITY support to camcontrol. The new 'readcap' subcommand
ken [Sat, 8 Sep 2007 20:24:12 +0000 (20:24 +0000)]
Add SCSI READ CAPACITY support to camcontrol.  The new 'readcap' subcommand
will automatically issue the 16 byte verison of read capacity if the device
in question is larger than 2TB.

There are also a number of output options here (last block, number of
blocks, human readable) that should meet most needs, and also aid in
scripting.

Approved by: re (bmah)
MFC after: 1 week

16 years agoDo not set the RTF_GATEWAY flag if RTF_LLINFO is set, it doesn't make much
cognet [Sat, 8 Sep 2007 19:28:45 +0000 (19:28 +0000)]
Do not set the RTF_GATEWAY flag if RTF_LLINFO is set, it doesn't make much
sense in that context, and leads to unusable routes.
This should unbreak bootpd.

Discussed with: glebius
Submitted by:   bms
Approved by:    re (bmah)

16 years ago- send call has a reference to uio->uio_resid in
rrs [Sat, 8 Sep 2007 17:48:46 +0000 (17:48 +0000)]
- send call has a reference to uio->uio_resid in
  the recent send code, but uio may be NULL on sendfile
  calls. Change to use sndlen variable.
- EMSGSIZE is not being returned in non-blocking mode
  and needs a small tweak to look if the msg would
  ever fit when returning EWOULDBLOCK.
- FWD-TSN has a bug in stream processing which could
  cause a panic. This is a follow on to the codenomicon
  fix.
- PDAPI level 1 and 2 do not work unless the reader
  gets his returned buffer full. Fix so we can break
  out when at level 1 or 2.
- Fix fast-handoff features to copy across properly on
  accepted sockets
- Fix sctp_peeloff() system call when no true system call
  exists to screen arguments for errors. In cases where a
  real system call exists the system call itself does this.
- Fix raddr leak in recent add-ip code change for bundled
  asconfs (even when non-bundled asconfs are received)
- Make sure ipi_addr lock is held when walking global addr
  list. Need to change this lock type to a rwlock().
- Add don't wake flag on both input and output when the
  socket is closing.
- When deleting an address verify the interface is correct
  before allowing the delete to process. This protects panda
  and unnumbered.
- Clean up old sysctl stuff and get rid of the old Open/Net
  BSD structures.
- Add a function to watch the ranges in the sysctl sets.
- When appending in the reassembly queue, validate that
  the assoc has not gone to about to be freed. If so
  (in the middle) abort out. Note this especially effects
  MAC I think due to the lock/unlock they do (or with
  LOCK testing in place).
- Netstat patch to get rid of warnings.
- Make sure that no data gets queued to inactive/unconfirmed
  destinations. This especially effect CMT but also makes a
  impact on regular SCTP as well.
- During init collision when we detect seq number out
  of sync we need to treat it like Case C and discard
  the cookie (no invarient needed here).
- Atomic access to the random store.
- When we declare a vtag good, we need to shove it
  into the time wait hash to prevent further use. When
  the tag is put into the assoc hash, we need to remove it
  from the twait hash (where it will surely be). This prevents
  duplicate tag assignments.
- Move decr-ref count to better protect sysctl out of
  data.
- ltrace error corrections in sctp6_usrreq.c
- Add hook for interface up/down to be sent to us.
- Make sysctl() exported structures independent of processor
  architecture.
- Fix route and src addr cache clearing for delete address case.
- Make sure address marked SCTP_DEL_IP_ADDRESS is never selected
  as src addr.
- in icmp handling fixed so we actually look at the icmp codes
  to figure out what to do.
- Modified mobility code.
  Reception of DELETE IP ADDRESS for a primary destination and
  SET PRIMARY for a new primary destination is used for
  retransmission trigger to the new primary destination.
  Also, in this case, destination of chunks in send_queue are
  changed to the new primary destination.
- Fix so that we disallow sending by mbuf to ever have EEOR
  mode set upon it.

Approved by: re@freebsd.org (B Mah)

16 years ago- Locking compatiability changes. This involves adding
rrs [Sat, 8 Sep 2007 11:35:11 +0000 (11:35 +0000)]
- Locking compatiability changes. This involves adding
  additional flags to many function calls. The flags only
  get used in BSD when we compile with lock testing. These
  flags allow apple to escape the "giant" lock it holds on
  the socket and have more fine-grained locking in the NKE.
  It also allows us to test (with witness) the locking used
  by apple via a compile switch (manually applied).

Approved by: re@freebsd.org(B Mah)

16 years agoAdd IANA assigned iscsi-target port as its the default port
mr [Sat, 8 Sep 2007 08:56:01 +0000 (08:56 +0000)]
Add IANA assigned iscsi-target port as its the default port
according RFC 3720.

Approved by: re (bmah)

16 years agoFix a bug that prevented applications from laying out ELF objects
jkoshy [Sat, 8 Sep 2007 08:20:12 +0000 (08:20 +0000)]
Fix a bug that prevented applications from laying out ELF objects
with section header tables residing in between other sections.

Introduce additional checks for overlaps between section data and
the section header table when the application is performing section
layout.

Document additional error returns.

Reported by: Kai Wang <kaiw27 at gmail dot com>
Approved by: re (rwatson)

16 years agoContinue UDP/UDPv6 synchronization project:
rwatson [Sat, 8 Sep 2007 08:18:24 +0000 (08:18 +0000)]
Continue UDP/UDPv6 synchronization project:

- Fix copyrights, comments in UDPv6.
- Remove macro defines for in6pcb and udp6stat.
- Consistently refer to inpcbs as 'inp' and not also 'in6p'.

Reviewed by: gnn, jinmei, bz
Approved by: re (bmah)

16 years agoCross reference ar(5) from elf(5).
jkoshy [Sat, 8 Sep 2007 08:12:31 +0000 (08:12 +0000)]
Cross reference ar(5) from elf(5).

Approved by: re (bmah)

16 years agoAdd a manual page documenting the format of `ar' archives.
jkoshy [Sat, 8 Sep 2007 08:04:28 +0000 (08:04 +0000)]
Add a manual page documenting the format of `ar' archives.

Reviewed by: Kai Wang <kaiw27 at gmail dot com>
Approved by: re (bmah)

16 years agoRemove stray comma left over from previous commit.
brueffer [Fri, 7 Sep 2007 22:19:29 +0000 (22:19 +0000)]
Remove stray comma left over from previous commit.

Approved by: re (blanket)

16 years ago- Remove info about the consumed space in base dir. This info is not
gabor [Fri, 7 Sep 2007 22:01:19 +0000 (22:01 +0000)]
- Remove info about the consumed space in base dir. This info is not
  relevant any more.

PR: docs/115335
Submitted by: Wayne Sierke <ws@au.dyndns.ws>
Reviewed by: keramida
Approved by: re (bmah)
MFC after: 3 days

16 years ago- Remove reference for unexisting ndisapi(9)
gabor [Fri, 7 Sep 2007 21:58:58 +0000 (21:58 +0000)]
- Remove reference for unexisting ndisapi(9)

PR: docs/113127
Submitted by: "O. Hartmann"<ohartman@mail.zedat.fu-berlin.de>
Reviewed by: keramida
Approved by: re (bmah)
MFC after: 3 days

16 years ago- The weekly periodic runs occur on Saturday mornings, not on Sunday mornings
gabor [Fri, 7 Sep 2007 21:54:45 +0000 (21:54 +0000)]
- The weekly periodic runs occur on Saturday mornings, not on Sunday mornings

PR: docs/113975
Submitted by: Marian Cerny <jojo@matfyz.cz>
Reviewed by: keramida
Approved by: re (bmah)

16 years agoAdd the startup script for ftp-proxy(8) to the Makefile as well.
mlaier [Fri, 7 Sep 2007 15:44:09 +0000 (15:44 +0000)]
Add the startup script for ftp-proxy(8) to the Makefile as well.

Approved by: re (bmah - implicit)
Reminded by: mtm

16 years agoAutogenerate hardware notes for rum(4).
brueffer [Fri, 7 Sep 2007 15:30:35 +0000 (15:30 +0000)]
Autogenerate hardware notes for rum(4).

Approved by: re (blanket)

16 years agoPrepare for automatic hardware notes generation:
brueffer [Fri, 7 Sep 2007 15:28:39 +0000 (15:28 +0000)]
Prepare for automatic hardware notes generation:

- mention the driver name and supported chipsets in the HARDWARE section
- remove unnecessary Li arguments

Approved by: re (blanket)

16 years agoWe've been able to support EVFILT_VNODE filtering on non-UFS
ru [Fri, 7 Sep 2007 13:10:09 +0000 (13:10 +0000)]
We've been able to support EVFILT_VNODE filtering on non-UFS
file systems since 2005.

Submitted by: Igor Sysoev
Approved by: re (bmah)
MFC after: 3 days

16 years agoBack out tcp_timer.c:1.93 and associated changes that reimplemented the many
rwatson [Fri, 7 Sep 2007 09:19:22 +0000 (09:19 +0000)]
Back out tcp_timer.c:1.93 and associated changes that reimplemented the many
TCP timers as a single timer, but retain the API changes necessary to
reintroduce this change.  This will back out the source of at least two
reported problems: lock leaks in certain timer edge cases, and TCP timers
continuing to fire after a connection has closed (a bug previously fixed and
then reintroduced with the timer rewrite).

In a follow-up commit, some minor restylings and comment changes performed
after the TCP timer rewrite will be reapplied, and a further change to allow
the TCP timer rewrite to be added back without disturbing the ABI.  The new
design is believed to be a good thing, but the outstanding issues are
leading to significant stability/correctness problems that are holding
up 7.0.

This patch was generated by silby, but is being committed by proxy due to
poor network connectivity for silby this week.

Approved by: re (kensmith)
Submitted by: silby
Tested by: rwatson, kris
Problems reported by: peter, kris, others

16 years ago- fix a bug that zyd_attach() returns 0 even if it encountered errors
sam [Fri, 7 Sep 2007 03:54:54 +0000 (03:54 +0000)]
- fix a bug that zyd_attach() returns 0 even if it encountered errors
  that can lead to a panic when the stick is yanked.
- make sure that zyd_attach() returns 0 or errno.

Submitted by: Weongyo Jeong <weongyo.jeong@gmail.com>
Reported by: Ted Lindgreen <ted@tednet.nl>
Reviewed by: sam
Approved by: re (blanket wireless)

16 years agoAdd misc entries communilated over the year
edwin [Fri, 7 Sep 2007 03:23:06 +0000 (03:23 +0000)]
Add misc entries communilated over the year

PR:             conf/113285, conf/113642, conf/70252 and conf/61641
Submitted by:   Edwin Groothuis <edwin@mavetju.org>, <acc107_3@acc.tula.ru>, Evan Dower <evantd@cs.washington.edu>
MFC after:      1 week
Approved by:    re (bmah@), mentor (grog@)

16 years agoAdd a startup script for ftp-proxy(8) now that it is no longer started as
mlaier [Thu, 6 Sep 2007 21:00:48 +0000 (21:00 +0000)]
Add a startup script for ftp-proxy(8) now that it is no longer started as
part of inetd(8).

Approved by: re (bmah)
Reviewed by: freebsd-rc (a while back)
Reminded by: kevlo

16 years agoXref zyd(4).
brueffer [Thu, 6 Sep 2007 20:15:04 +0000 (20:15 +0000)]
Xref zyd(4).

Approved by: re (blanket)

16 years agoReplace OpenBSD SYNOPSIS with our standard SYNPOPSIS.
brueffer [Thu, 6 Sep 2007 20:13:27 +0000 (20:13 +0000)]
Replace OpenBSD SYNOPSIS with our standard SYNPOPSIS.

Approved by: re (blanket)

16 years agoNew release notes:
brueffer [Thu, 6 Sep 2007 19:53:06 +0000 (19:53 +0000)]
New release notes:
- ng_h4(4) MPSAFE
- ng_ppp(4) MPSAFE + MFC
- zyd(4) added
- cpufreq(4) in GENERIC

Modified release notes:
- cached(8) renamed to nscd(8), also moved entry to now correct place
- Camellia is now supported in geli(8) as well

Approved by: re (blanket)

16 years agoo Revamp the sparc64 interrupt code in order to be able to interface
marius [Thu, 6 Sep 2007 19:16:30 +0000 (19:16 +0000)]
o Revamp the sparc64 interrupt code in order to be able to interface
  with the INTR_FILTER-enabled MI code. Basically this consists of
  registering an interrupt controller (of which there can be multiple
  and optionally different ones either per host-to-foo bridge or shared
  amongst host-to-foo bridges in any one machine) along with an interrupt
  vector as specific argument for all the interrupt vectors used by a
  given host-to-foo bridge (roughly similar to registering interrupt
  sources on amd64 and i386), providing functions to enable, clear and
  disable the interrupts of the children beneath the bridge.
  This also includes:
  - No longer entering a critical section in tl0_intr() and tl1_intr()
    for executing interrupt handlers but rather let the handlers enter
    it themselves so in the case of intr_event_handle() we don't enter
    a nested critical section.
  - Adding infrastructure for binding delivery of interrupt vectors to
    specific CPUs which later on can be interfaced with the code from
    amd64/i386 for binding interrupts to specific CPUs.
  - Getting rid of the wrapper hack introduced along the lines of the
    API changes for INTR_FILTER which as a side-effect caused interrupts
    associated with ithread handlers only to get the elevated priority
    of those associated with filters ("fast handlers") (this removes the
    hack also in the non-INTR_FILTER case).
  - Disabling (by not clearing) an interrupt in the interrupt controller
    until all associated handlers have been executed, which is crucial
    for the typical locking strategy of NIC drivers in order to work
    correctly in case of shared interrupts. This was a more or less
    theoretical problem on sparc64 though, as shared interrupts are
    rather uncommon there except for the on-board SCCs and UARTs.
  Note that due to the behavior of at least of some of the interrupt
  controllers used on sparc64 an enable+EOI instead of a disable+EOI
  approach (as implied by the INTR_FILTER MI code and implemented on
  other architectures) is used as the latter can cause lost interrupts
  or in the worst case interrupt starvation.
o Correct a typo in sbus_alloc_resource() which caused (pass-through)
  allocations to only work down to the grandchildren of the bus, which
  wasn't a real problem so far as we don't support any devices which are
  great-grandchildren or greater of a U2S bridge, yet.
o In fhc(4) use bus_{read,write}_4() instead of bus_space_{read,write}_4()
  in order to get rid of sc_bh and sc_bt in the fhc_softc. Also get rid
  of some other unneeded members in fhc_softc.

Reviewed by: marcel (earlier version)
Approved by: re (kensmith)

16 years agoAdd service entries for Sun Grid Engine's qmaster and execution service
brooks [Thu, 6 Sep 2007 19:04:47 +0000 (19:04 +0000)]
Add service entries for Sun Grid Engine's qmaster and execution service
as per IANA assignments to simplify the installation of the sysutils/sge
port.

Approved by: re (bmah)

16 years agoStyle(9) fix - use #define<tab> consistently.
marius [Thu, 6 Sep 2007 14:56:09 +0000 (14:56 +0000)]
Style(9) fix - use #define<tab> consistently.

Approved by: re (kensmith)

16 years agooops, add missing bit from last change
sam [Thu, 6 Sep 2007 00:08:02 +0000 (00:08 +0000)]
oops, add missing bit from last change

Approved by: re (blanket wireless)

16 years agoFixup sta inactivity handling:
sam [Thu, 6 Sep 2007 00:04:36 +0000 (00:04 +0000)]
Fixup sta inactivity handling:
o reset ni_inact when ni_inact_reload is changed so we're
  assured a valid setting
o never let ni_inact go negative
o add a knob to disable hostap sta idle handling (e.g. so it can be done
  by a user application)
o remove bogus reload on associate

Reviewed by: avatar
Approved by: re (blanket wireless)

16 years agoAdd missing bg scanning bits; update ic_lastdata and cancel any
sam [Wed, 5 Sep 2007 23:40:59 +0000 (23:40 +0000)]
Add missing bg scanning bits; update ic_lastdata and cancel any
bg scan when there's outbound traffic.

Approved by: re (blanket wireless)

16 years agoAdd missing bits that made bg scanning lame:
sam [Wed, 5 Sep 2007 23:00:27 +0000 (23:00 +0000)]
Add missing bits that made bg scanning lame:
o update ic_lastdata to reflect time of last outbound frame
o outbound traffic must preempt/cancel bg scanning to avoid delays

This stuff was somehow missed in the initial import.

Reviewed by: thompsa, avatar, sephe (earlier version)
Approved by: re (blanket wireless)

16 years agoo add 802.11 state machine states for DFS and client-side power save
sam [Wed, 5 Sep 2007 21:31:32 +0000 (21:31 +0000)]
o add 802.11 state machine states for DFS and client-side power save
o fixup drivers to ignore new states

Reviewed by: avatar (?)
Approved by: re (blanket wireless)

16 years agoadd defs just removed from ieee80211.h
sam [Wed, 5 Sep 2007 21:25:58 +0000 (21:25 +0000)]
add defs just removed from ieee80211.h

Approved by: re (blanket wireless)

16 years agoUpdate channel definition:
sam [Wed, 5 Sep 2007 20:37:39 +0000 (20:37 +0000)]
Update channel definition:
o add ic_extieee to hold the HT40 extension channel number
o add ic_state to track dynamic channel state for DFS
o add flags to mark regulatory channel requirements
o add state defs for DFS/radar support

Reviewed by: avatar
Approved by: re (blanket wireless)

16 years agoMiscellaneous fixups to 802.11 defs:
sam [Wed, 5 Sep 2007 20:29:51 +0000 (20:29 +0000)]
Miscellaneous fixups to 802.11 defs:
o update 11n definitions to D2.0 spec
o add IEEE80211_CAPINFO_SPECTRUM_MGMT for DFS support
o add CSA ie definition for DFS support
o purge some unused definitions
o correct 802.11 reason and status codes
o correct reason code returned when a sta tries to associate to an
  ap operating with WPA/RSN but without a WPA/RSN ie

Reviewed by: thompsa, avatar
Approved by: re (blanket wireless)

16 years agoo add M_WEP mbuf flag so drivers can mark frames that are decrypted by the
sam [Wed, 5 Sep 2007 20:22:59 +0000 (20:22 +0000)]
o add M_WEP mbuf flag so drivers can mark frames that are decrypted by the
  device and have had the crypto bits stripped from the 802.11 header
o strip mbuf flags in the rx path before passing up the stack

Reviewed by: thompsa, sephe, avatar
Approved by: re (blanket wireless)

16 years agoAdd MLINKS entries for various SYSCTL_*() macros documented in sysctl.9.
rwatson [Wed, 5 Sep 2007 19:46:23 +0000 (19:46 +0000)]
Add MLINKS entries for various SYSCTL_*() macros documented in sysctl.9.

Approved by: re (bmah)
Submitted by: Constantine A. Murenin <cnst+freebsd@bugmail.mojo.ru>
Sponsored by: Google Summer of Code 2007

16 years agoensure the head entry of addrinfo chain has non-NULL ai_canonname to be
jinmei [Wed, 5 Sep 2007 18:08:14 +0000 (18:08 +0000)]
ensure the head entry of addrinfo chain has non-NULL ai_canonname to be
compliant with RFC3493.

PR: standards/114910
Approved by:   ume (mentor)
Approved by:   re
MFC after:     1 week

16 years ago- Fix strange for loop.
pjd [Wed, 5 Sep 2007 14:27:13 +0000 (14:27 +0000)]
- Fix strange for loop.

  Reported by: phk

- While here, check the unit before calculating the actually number.
  This way we can return EINVAL for invalid unit instead of ERANGE.

Approved by: re (kensmith)

16 years agoPoint expand_number(3) at humanize_number(3) and nive versa.
pjd [Wed, 5 Sep 2007 14:25:16 +0000 (14:25 +0000)]
Point expand_number(3) at humanize_number(3) and nive versa.

Suggested by: trhodes
Approved by: re (kensmith)

16 years agoThere's no need to re-read PCIR_COMMAND once we set it.
cognet [Tue, 4 Sep 2007 18:45:27 +0000 (18:45 +0000)]
There's no need to re-read PCIR_COMMAND once we set it.

Approved by: re (blanket)

16 years agoRestore historical behavior where more(1) does not check for dumb terminals.
delphij [Tue, 4 Sep 2007 13:54:09 +0000 (13:54 +0000)]
Restore historical behavior where more(1) does not check for dumb terminals.

Reported by: rwatson on -current
Tested by: keramida, rwatson
Approved by: re (rwatson)

16 years agoThis is an update to the new Intel 10G 82598 driver.
jfv [Tue, 4 Sep 2007 02:31:35 +0000 (02:31 +0000)]
This is an update to the new Intel 10G 82598 driver.
The first drop was Beta, this code is expected to be the release version.
Note that this driver code will build in either 6.2 or 7. If you
use the code in 6.2 you will not get TSO or MSI/X support but it will
function in a legacy mode.

Approved by: re

16 years agoStart lockd after statd.
mtm [Mon, 3 Sep 2007 02:02:31 +0000 (02:02 +0000)]
Start lockd after statd.

Approved by: re (bmah)
Noticed by: Ted Faber <faber@ISI.EDU>

16 years agoInactive pages don't have to be dirty plus improve description of
ru [Sun, 2 Sep 2007 10:29:16 +0000 (10:29 +0000)]
Inactive pages don't have to be dirty plus improve description of
the cache queue.

Submitted by: alc
Approved by: re (kensmith)

16 years agoIn userland_sysctl(), call useracc() with the actual newlen value to be
rwatson [Sun, 2 Sep 2007 09:59:33 +0000 (09:59 +0000)]
In userland_sysctl(), call useracc() with the actual newlen value to be
used, rather than the one passed via 'req', which may not reflect a
rewrite.  This call to useracc() is redundant to validation performed by
later copyin()/copyout() calls, so there isn't a security issue here,
but this could technically lead to excessive validation of addresses if
the length in newlen is shorter than req.newlen.

Approved by: re (kensmith)
Reviewed by: jhb
Submitted by: Constantine A. Murenin <cnst+freebsd@bugmail.mojo.ru>
Sponsored by: Google Summer of Code 2007

16 years agoSort wlan entries by driver name.
brueffer [Sun, 2 Sep 2007 09:15:08 +0000 (09:15 +0000)]
Sort wlan entries by driver name.

Approved by: re (blanket)

16 years agoAutogenerate hardware notes for zyd(4).
brueffer [Sun, 2 Sep 2007 09:11:10 +0000 (09:11 +0000)]
Autogenerate hardware notes for zyd(4).

Approved by: re (blanket)

16 years agoConnect zyd.4 to the build.
imp [Sun, 2 Sep 2007 07:09:25 +0000 (07:09 +0000)]
Connect zyd.4 to the build.

Approved by: re@

16 years agoRemove extra copy of the man page that has been noted by many people.
imp [Sun, 2 Sep 2007 07:04:50 +0000 (07:04 +0000)]
Remove extra copy of the man page that has been noted by many people.

Approved by: re@

16 years agoFix a kernel panic due to a NULL pointer access on pc98.
nyan [Sat, 1 Sep 2007 12:18:28 +0000 (12:18 +0000)]
Fix a kernel panic due to a NULL pointer access on pc98.

When any PnP device exists, isa_release_resource() is called with no
activated resource.  So a bushandle is not allocated yet.

Approved by: re (kensmith)

16 years agoAdd support for Camellia encryption algorithm.
pjd [Sat, 1 Sep 2007 06:33:02 +0000 (06:33 +0000)]
Add support for Camellia encryption algorithm.

PR: kern/113790
Submitted by: Yoshisato YANAGISAWA <yanagisawa@csg.is.titech.ac.jp>
Approved by: re (bmah)

16 years agoUse CTLFLAG_RDTUN for tunable sysctls.
pjd [Sat, 1 Sep 2007 06:23:42 +0000 (06:23 +0000)]
Use CTLFLAG_RDTUN for tunable sysctls.

Approved by: re (bmah)

16 years agoImplement expand_number(3), which is the opposite of humanize_number(3), ie.
pjd [Sat, 1 Sep 2007 06:19:11 +0000 (06:19 +0000)]
Implement expand_number(3), which is the opposite of humanize_number(3), ie.
a number in human-readable form is converted to int64_t, for example:
123b -> 123
10k -> 10240
16G -> 17179869184

First version submitted by: Eric Anderson <anderson@freebsd.org>
Approved by: re (bmah)

16 years agoFix the description of the "Cache" memory and clarify the
ru [Sat, 1 Sep 2007 05:52:39 +0000 (05:52 +0000)]
Fix the description of the "Cache" memory and clarify the
description of the "Inact" memory.  (They count pages in
the cache/inactive page queues, respectively.)

Approved by: re (kensmith)

16 years agoFix races in msdosfs_lookup() and msdosfs_readdir(). These functions
bde [Fri, 31 Aug 2007 22:29:55 +0000 (22:29 +0000)]
Fix races in msdosfs_lookup() and msdosfs_readdir().  These functions
can easily block in bread(), and then there was nothing to prevent the
static buffer (nambuf_{ptr,len,last_id}) being clobbered by another
thread.

The effects of the bug seem to have been limited to failed lookups and
mangled names in readdir(), since Giant locking provides enough
serialization to prevent concurrent calls to the functions that access
the buffer.  They were very obvious for multiple concurrent tree walks,
especially with a small cluster size.

The bug was introduced in msdosfs_conv.c 1.34 and associated changes,
and is in all releases starting with 5.2.

The fix is to allocate the buffer as a local variable and pass around
pointers to it like "_r" functions in libc do.  Stack use from this
is large but not too large.  This also fixes a memory leak on module
unload.

Reviewed by: kib
Approved by: re (kensmith)

16 years agoFound some obsolete files in /rescue.
yar [Fri, 31 Aug 2007 19:41:27 +0000 (19:41 +0000)]
Found some obsolete files in /rescue.
The ipf related stuff was removed in rescue/Makefile rev. 1.43,
and vinum in rev. 1.30.

Approved by: re (bmah)

16 years agoClose a race that snuck in with the recent changes to fix a LOR between
jhb [Fri, 31 Aug 2007 19:01:30 +0000 (19:01 +0000)]
Close a race that snuck in with the recent changes to fix a LOR between
the callout_lock spin lock and the sleepqueue spin locks.  In the fix,
callout_drain() has to drop the callout_lock so it can acquire the
sleepqueue lock.  The state of the callout can change while the
callout_lock is held however (for example, it can be rescheduled via
callout_reset()).  The previous code assumed that the only state change
that could happen is that the callout could finish executing.  This change
alters callout_drain() to effectively restart and recheck everything
after it acquires the sleepqueue lock thus handling all the possible
states that the callout could be in after any changes while callout_lock
was dropped.

Approved by: re (kensmith)
Tested by: kris

16 years agoAdd missing newline in the log message of the previous commit.
dds [Fri, 31 Aug 2007 13:56:26 +0000 (13:56 +0000)]
Add missing newline in the log message of the previous commit.

Approved by: re (kensmith) - implied

16 years agoDon't panic. When encountering a negative value call log(LOG_NOTICE, ...)
dds [Fri, 31 Aug 2007 13:36:58 +0000 (13:36 +0000)]
Don't panic.  When encountering a negative value call log(LOG_NOTICE, ...)
and record LONG_MAX, instead of calling KASSERT(...).

Reported by: rwatson
Approved by: re (kensmith)

16 years agoEvaluate _OSC on boot to indicate our OS capabilities to ACPI. This is
njl [Thu, 30 Aug 2007 21:18:42 +0000 (21:18 +0000)]
Evaluate _OSC on boot to indicate our OS capabilities to ACPI.  This is
needed at least to convince the BIOS to give us access to CPU freq
control on MacBooks.

Submitted by: Rui Paulo <rpaulo / fnop.net>
Approved by: re
MFC after: 5 days

16 years agoShow the ACTIVE flag in ifconfig for the single interface that is actaully
thompsa [Thu, 30 Aug 2007 19:12:10 +0000 (19:12 +0000)]
Show the ACTIVE flag in ifconfig for the single interface that is actaully
active in failover mode rather than all interfaces with a link. This makes it
clear if the master interface is in use or one of the backup links.

Found by: Writing the Handbook section
Approved by: re (kensmith)

16 years ago- Fix include path, these functions were moved to sys/priv.h.
danger [Thu, 30 Aug 2007 15:03:21 +0000 (15:03 +0000)]
- Fix include path, these functions were moved to sys/priv.h.

Approved by: re (bmah)
Submitted by: sbahra@hpcl.seas.gwu.edu (via #bsddocs@EFnet)
Pointy hat to: rwatson

16 years agoRemove the lock assert from iwi_newstate, this function does not need the lock
thompsa [Wed, 29 Aug 2007 21:52:03 +0000 (21:52 +0000)]
Remove the lock assert from iwi_newstate, this function does not need the lock
to be held and this will falsely trigger if called from net80211.

Reported by: Munehiro (haro) Matsuda
Reviewed by: sam
Approved by: re (kensmith)

16 years agoPartially revert the previous change. I failed to notice that where
jhb [Wed, 29 Aug 2007 21:17:11 +0000 (21:17 +0000)]
Partially revert the previous change.  I failed to notice that where
ktruserret() is invoked, an unlocked check of  the per-process queue
is performed inline, thus, we don't lock the ktrace_sx on every userret().

Pointy hat to: jhb
Approved by: re (kensmith)
Pointy hat recovered from: rwatson

16 years agoA port of the zyd driver from NetBSD by . This supports the ZyDAS
imp [Wed, 29 Aug 2007 21:16:50 +0000 (21:16 +0000)]
A port of the zyd driver from NetBSD by .  This supports the ZyDAS
ZD1211/ZD1211B USB IEEE 802.11b/g wireless network devices.  Not (yet)
connected to the build process (next batch of commits once I've looped
the current back back).

Submitted by: Weongyo Jeong
Reviewed by: sam@
Approved by: re@

16 years agoBring in the man page for zyd, ported from NetBSD, complete with bogus
imp [Wed, 29 Aug 2007 21:08:14 +0000 (21:08 +0000)]
Bring in the man page for zyd, ported from NetBSD, complete with bogus
Bill Paul copyright.  Not sure what the right copyright is, but this
file has been through 22 reversions on OpenBSD and 1 on NetBSD.  This
isn't (yet) connected to the build, just in case I've done something
wrong (test builds worked, but better safe than sorry).

Submitted by: Weongyo Jeong
Approved by: re@

16 years agoMakefile for building zyd kernel module.
imp [Wed, 29 Aug 2007 21:04:26 +0000 (21:04 +0000)]
Makefile for building zyd kernel module.

Submitted by: Weongyo Jeong
Approved by: re@ (kensmith)

16 years agoAdd devices for the forthcoming zyd driver, ported from NetBSD, by
imp [Wed, 29 Aug 2007 21:00:57 +0000 (21:00 +0000)]
Add devices for the forthcoming zyd driver, ported from NetBSD, by
Weongyo Jeong.

Submitted by: Weongyo Jeong
Approved by: re@

16 years agoRepair ALTQ-tagging rules in IPFW which got broken in the last PF
green [Wed, 29 Aug 2007 19:34:28 +0000 (19:34 +0000)]
Repair ALTQ-tagging rules in IPFW which got broken in the last PF
import.  The PF mbuf-tagging support routines changed to link the
allocated tags into the provided mbuf themselves, so the left-over
m_tag_prepend() was trying to add a bogus (usually NULL) tag.

Reviewed by: mlaier
Approved by: re

16 years agoRework the routines to convert a 5.x+ statfs structure (with fixed-size
jhb [Tue, 28 Aug 2007 20:28:12 +0000 (20:28 +0000)]
Rework the routines to convert a 5.x+ statfs structure (with fixed-size
64-bit counters) to a 4.x statfs structure (with long-sized counters).
- For block counters, we scale up the block size sufficiently large so
  that the resulting block counts fit into a the long-sized (long for the
  ABI, so 32-bit in freebsd32) counters.  In 4.x the NFS client's statfs
  VOP did this already.  This can lie about the block size to 4.x binaries,
  but it presents a more accurate picture of the ratios of free and
  available space.
- For non-block counters, fix the freebsd32 stats converter to cap the
  values at INT32_MAX rather than losing the upper 32-bits to match the
  behavior of the 4.x statfs conversion routine in vfs_syscalls.c

Approved by: re (kensmith)

16 years agoRegenerate.
kib [Tue, 28 Aug 2007 12:36:23 +0000 (12:36 +0000)]
Regenerate.

Approved by: re (kensmith)

16 years agoImplement fake linux sched_getaffinity() syscall to enable java to work
kib [Tue, 28 Aug 2007 12:26:35 +0000 (12:26 +0000)]
Implement fake linux sched_getaffinity() syscall to enable java to work
with Linux 2.6 emulation. This shall be reimplemented once FreeBSD gets
native scheduler affinity syscalls.

Submitted by: rdivacky
Reviewed by: jkim
Sponsored by: Google Summer of Code 2007
Approved by: re (kensmith)

16 years agoFix off-by-two errors.
jkim [Tue, 28 Aug 2007 00:09:12 +0000 (00:09 +0000)]
Fix off-by-two errors.
Both WWNN and WWPN are 64-bit unsigned integers and they are prefixed
with "0x", which requires two more bytes each.

Submitted by: Danny Braniss (danny at cs dot huji dot ac dot il)
via Matthew Jacob (lydianconcepts at gmail dot com)
Approved by: re (bmah)
MFC after: 3 days

16 years agoOutput keymap choice to stderr so it is easier to parse for apps chained to
murray [Mon, 27 Aug 2007 21:56:42 +0000 (21:56 +0000)]
Output keymap choice to stderr so it is easier to parse for apps chained to
this curses based app.

Submitted by: ivoras
Approved by: re@ (bmah@)

16 years agoRegenerate src.conf.5 -after- the addition of WITHOUT_ZONEINFO, the way
remko [Mon, 27 Aug 2007 20:22:59 +0000 (20:22 +0000)]
Regenerate src.conf.5 -after- the addition of WITHOUT_ZONEINFO, the way
I did this in the previous commit, leaves out the parsing of $FreeBSD$
which is actually required to be parsed.

Kindly reminded by: bmah
Approved by: re (bmah)
Approved by: imp (mentor, implicit)

16 years agoAdd WITHOUT_ZONEINFO to the build options and regenerate src.conf.5
remko [Mon, 27 Aug 2007 20:01:08 +0000 (20:01 +0000)]
Add WITHOUT_ZONEINFO to the build options and regenerate src.conf.5

Reminded by: ceri
Approved by: re (bmah)
Approved by: imp (mentor)

16 years ago- During shutdown pending, when the last sack came in and
rrs [Mon, 27 Aug 2007 05:19:48 +0000 (05:19 +0000)]
- During shutdown pending, when the last sack came in and
  the last message on the send stream was "null" but still
  there, a state we allow, we could get hung and not clean
  it up and wait for the shutdown guard timer to clear the
  association without a graceful close. Fix this so that
  that we properly clean up.
- Added support for Multiple ASCONF per new RFC. We only
  (so far) accept input of these and cannot yet generate
  a multi-asconf.
- Sysctl'd support for experimental Fast Handover feature. Always
  disabled unless sysctl or socket option changes to enable.
- Error case in add-ip where the peer supports AUTH and ADD-IP
  but does NOT require AUTH of ASCONF/ASCONF-ACK. We need to
  ABORT in this case.
- According to the Kyoto summit of socket api developers
  (Solaris, Linux, BSD). We need to have:
   o non-eeor mode messages be atomic - Fixed
   o Allow implicit setup of an assoc in 1-2-1 model if
     using the sctp_**() send calls - Fixed
   o Get rid of HAVE_XXX declarations - Done
   o add a sctp_pr_policy in hole in sndrcvinfo structure - Done
   o add a PR_SCTP_POLICY_VALID type flag - yet to-do in a future patch!
- Optimize sctp6 calls to reuse code in sctp_usrreq. Also optimize
  when we close sending out the data and disabling Nagle.
- Change key concatenation order to match the auth RFC
- When sending OOTB shutdown_complete always do csum.
- Don't send PKT-DROP to a PKT-DROP
- For abort chunks just always checksums same for
  shutdown-complete.
- inpcb_free front state had a bug where in queue
  data could wedge an assoc. We need to just abandon
  ones in front states (free_assoc).
- If a peer sends us a 64k abort, we would try to
  assemble a response packet which may be larger than
  64k. This then would be dropped by IP. Instead make
  a "minimum" size for us 64k-2k (we want at least
  2k for our initack). If we receive such an init
  discard it early without all the processing.
- When we peel off we must increment the tcb ref count
  to keep it from being freed from underneath us.
- handling fwd-tsn had bugs that caused memory overwrites
  when given faulty data, fixed so can't happen and we
  also stop at the first bad stream no.
- Fixed so comm-up generates the adaption indication.
- peeloff did not get the hmac params copied.
- fix it so we lock the addr list when doing src-addr selection
  (in future we need to use a multi-reader/one writer lock here)
- During lowlevel output, we could end up with a _l_addr set
  to null if the iterator is calling the output routine. This
  means we would possibly crash when we gather the MTU info.
  Fix so we only do the gather where we have a src address
  cached.
- we need to be sure to set abort flag on conn state when
  we receive an abort.
- peeloff could leak a socket. Moved code so the close will
  find the socket if the peeloff fails (uipc_syscalls.c)

Approved by: re@freebsd.org(Ken Smith)

16 years agoo Fix bug I introduced in the previous commit (ipfw set extention):
maxim [Sun, 26 Aug 2007 18:38:31 +0000 (18:38 +0000)]
o Fix bug I introduced in the previous commit (ipfw set extention):
pack a set number correctly.

Submitted by: oleg

o Plug a memory leak.

Submitted by: oleg and Andrey V. Elsukov
Approved by: re (kensmith)
MFC after: 1 week

16 years agoAdd option to not fill second code image, this makes the full disk
phk [Sun, 26 Aug 2007 14:57:08 +0000 (14:57 +0000)]
Add option to not fill second code image, this makes the full disk
image compress much better.

Respect pkg_add's internal 200 package limitation.

Approved by: re (bmah)
Spelling fixes by: bmah

16 years agoOff-by-one bug in country ie construction, which will make HOSTAP send out
sephe [Sun, 26 Aug 2007 11:34:51 +0000 (11:34 +0000)]
Off-by-one bug in country ie construction, which will make HOSTAP send out
malformatted beacons.

Reviewed by: sam
Approved by: re (bmah), sam (mentor)

16 years agoFix following nits:
sephe [Sun, 26 Aug 2007 11:32:56 +0000 (11:32 +0000)]
Fix following nits:
- Per ieee80211com sysctl ctx leakage on detach
- getmgtframe incorrectly adjusts mbuf.m_data

Reviewed by: sam
Approved by: re (bmah), sam (mentor)

16 years agoUpdate the MFI driver to support new "1078" series of hardware. This
scottl [Sat, 25 Aug 2007 23:58:45 +0000 (23:58 +0000)]
Update the MFI driver to support new "1078" series of hardware.  This
includes the upcoming Dell PERC6 series.  Many thanks to LSI for
contributing this code.

Submitted by: LSI
Approved by: re

16 years agoFixes for 4 port and small packet optimization
kmacy [Sat, 25 Aug 2007 21:07:37 +0000 (21:07 +0000)]
Fixes for 4 port and small packet optimization

- remove cpl->iff panic - we can't know the port number from the rspq on the 4-port
- pick the ifnet based on the interface in the CPL header
- switch to using qset 0 for egress on the 4-port for now - may change
  when we start using RSS
- move ether_ifdetach to before the port lock gets deinitialized to avoid
  hang in the case where there are BPF peers (cxgb_ioctl is called indirectly
  when BPF peers are present)
- don't call t3_mac_reset if multiport is set, this was causing tx errors
  by misconfiguring the MAC on the 4-port
- change V_TXPKT_INTF to use txpkt_intf as the interfaces are not contiguous
- free the mbuf immediately in the case where the payload is small enough to be copied
  into the rspq
- only update the coalesce timer if for a queue if packets were taken off of it
- add in missed 20ms DELAY in initializaton vsc8211

- prompt MFC as this only applies to the 4-port which is currently completely
  broken - OK'd by kensmith

Supported by: Chelsio
Approved by: re (blanket)
MFC after: 0 days

16 years agosleep 2 seconds after having loaded g_uzip.ko. We need this because
matteo [Sat, 25 Aug 2007 00:19:17 +0000 (00:19 +0000)]
sleep 2 seconds after having loaded g_uzip.ko. We need this because
otherwise the /dev/mdX.uzip won't be created immediately, which is
needed because we issue a mount right afterwards.

Approved by: re@ (bmah@)
MFC after: 2 days

16 years agodocument hw.realmem
danger [Fri, 24 Aug 2007 20:38:09 +0000 (20:38 +0000)]
document hw.realmem

Submitted by: cnst@ (Constantine A. Murenin)
Sponsored by: Google Summer of Code 2007
Approved by: re@ (bmah)
MFC after: 1 week

16 years agoRemove old prototypes for addr2ascii() and ascii2addr(), functions which no
bms [Fri, 24 Aug 2007 20:25:52 +0000 (20:25 +0000)]
Remove old prototypes for addr2ascii() and ascii2addr(), functions which no
longer exist in libc.

Requested by: Craig Rodrigues
Approved by: re (kensmith)

16 years agoFix stack overflow with too many items return list in 'dialog' program.
ache [Fri, 24 Aug 2007 16:26:24 +0000 (16:26 +0000)]
Fix stack overflow with too many items return list in 'dialog' program.
(Noticed in ghostscript-gpl core dump)

Approved by:    re@ (bmah)

16 years agodrop frames marked for encryption when no key is available
sam [Fri, 24 Aug 2007 15:44:27 +0000 (15:44 +0000)]
drop frames marked for encryption when no key is available

Reviewed by: avatar
Approved by: re (kensmith)
Obtained from: madwifi

16 years agoNew release note: coretemp(4).
bmah [Fri, 24 Aug 2007 15:18:42 +0000 (15:18 +0000)]
New release note:  coretemp(4).

Updated release note:  tzdata2007g [1].

[1] Technically I should remove the &merged; entity here but the commit  has
a one-week MFC-after so I figure I can leave it this way for now.

Approved by: re (implicitly)

16 years agoMFV: tzdata2007g
edwin [Fri, 24 Aug 2007 13:36:20 +0000 (13:36 +0000)]
MFV: tzdata2007g

PR: conf/115706
Submitted by: edwin@
Approved by: re (bmah@)
Obtained from: ftp://elsie.nci.nih.gov/pub/
MFC after: 1 week

16 years agoThis commit was generated by cvs2svn to compensate for changes in r171945,
edwin [Fri, 24 Aug 2007 13:27:26 +0000 (13:27 +0000)]
This commit was generated by cvs2svn to compensate for changes in r171945,
which included commits to RCS files with non-trunk default branches.

16 years agoImport of timezone database from Arthur Olson et al.
edwin [Fri, 24 Aug 2007 13:27:26 +0000 (13:27 +0000)]
Import of timezone database from Arthur Olson et al.

Timezone data changes in the following locations:

- Egypt
- Australia (new DST rules for 2008 and following)
- Perry County, Indiana
- America/Indiana/Tell_City
- Pike County, Indiana

Also:

- City coordinates corrected.
- Layout of leapseconds is updated

PR: conf/115706
Approved by: re (bmah@)

16 years ago- Fix address add handling to clear cached routes and source addresses
rrs [Fri, 24 Aug 2007 00:53:53 +0000 (00:53 +0000)]
- Fix address add handling to clear cached routes and source addresses
  when peer acks the add in case the routing table changes.
- Fix sctp_lower_sosend to send shutdown chunk for mbuf send
  case when sndlen = 0 and sinfoflag = SCTP_EOF
- Fix sctp_lower_sosend for SCTP_ABORT mbuf send case with null data,
  So that it does not send the "null" data mbuf out and cause
  it to get freed twice.
- Fix so auto-asconf sysctl actually effect the socket's asconf state.
- Do not allow SCTP_AUTO_ASCONF option to be used on subset bound sockets.
- Memset bug in sctp_output.c (arguments were reversed) submitted
  found and reported by Dave Jones (davej@codemonkey.org.uk).
- PD-API point needs to be invoked >= not just > to conform to socket api
  draft this fixes sctp_indata.c in the two places need to be >=.
- move M_NOTIFICATION to use M_PROTO5.
- PEER_ADDR_PARAMS did not fail properly if you specify an address
  that is not in the association with a valid assoc_id. This meant
  you got or set the stcb level values instead of the destination
  you thought you were going to get/set. Now validate if the
  stcb is non-null and the net is NULL that the sa_family is
  set and the address is unspecified otherwise return an error.
- The thread based iterator could crash if associations were freed
  at the exact time it was running. rework the worker thread to
  use the increment/decrement to prevent this and no longer use
  the markers that the timer based iterator uses.
- Fix the memleak in sctp_add_addr_to_vrf() for the case when it is
  detected that ifa is already pointing to a ifn.
- Fix it so that if someone is so insane that they drop the
  send window below the minimal add mark, they still can send.
- Changed all state for associations to use mask safe macro.
- During front states in association freeing in sctp_inpcbfree, we
  had a locking problem where locks were not in place where they
  should have been.
- Free association calls were not testing the return value in
  sctp_inpcb_free() properly... others should be cast  void returns
  where we don't care about the return value.
- If a reference count is held on an assoc, even from the "force free"
  we should not do the actual free.. but instead let the timer
  free it.
- When we enter sctp_input(), if the SCTP_ASOC_ABOUT_TO_BE_FREED
  flag is set, we must NOT process the packet but handle it like
  ootb. This is because while freeing an assoc we release the
  locks to get all the higher order locks so we can purge all
  the hash tables. This leaves a hole if a packet comes in
  just at that point. Now sctp_common_input_processing() will
  call the ootb code in such a case.
- Change MBUF M_NOTIFICATION to use M_PROTO5 (per Sam L). This makes
  it so we don't have a conflict (I think this is a covertity change).
  We made this change AFTER some conversation and looking to make sure
  that M_PROTO5 does not have a problem between SCTP and the 802.11
  stuff (which is the only other place its used).
- Fixed lock order reversal and missing atomic protection around
  locked_tcb during association lookup and the 1-2-1 model.
- Added debug to source address selection.
- V6 output must always do checksum even for loopback.
- Remove more locks around inp that are not needed for an atomically
  added/subtracted ref count.
- slight optimization in the way we zero the array in sctp_sack_check()
- It was possible to respond to a ABORT() with bad checksum with
  a PKT-DROP. This lead to a PKT-DROP/ABORT war. Add code to NOT
  send a PKT-DROP to any ABORT().
- Add an option for local logging (useful for macintosh or when
  you need better performing during debugging). Note no commands
  are here to get the log info, you must just use kgdb.
- The timer code needs to be aware of if it needs to call
  sctp_sack_check() to slide the maps and adjust the cum-ack.
  This is because it may be out of sync cum-ack wise.
- Added threshold managment logging.
- If the user picked just the right size, that just filled the send
  window minus one mtu, we would enter a forever loop not copying and
  at the same time not blocking. Change from < to <= solves this.
- Sysctl added to control the fragment interleave level which defaults
  to 1.
- My rwnd control was not being used to control the rwnd properly (we
  did not add and subtract to it :-() this is now fixed so we handle
  small messages (1 byte etc) better to bring our rwnd down more
  slowly.

Approved by: re@freebsd.org (Bruce Mah)

16 years ago- Fix typo in netstat's display of Nagle algorithm - refer to the RFC.
rrs [Fri, 24 Aug 2007 00:35:18 +0000 (00:35 +0000)]
- Fix typo in netstat's display of Nagle algorithm - refer to the RFC.

Submitted by: bruce@cran.org.uk
Approved by: re@freebsd.org (Bruce Mah)

16 years agoAdd PCI IDs for two cards:
emaste [Thu, 23 Aug 2007 20:12:40 +0000 (20:12 +0000)]
Add PCI IDs for two cards:
- Adaptec RAID 3405
- Adaptec RAID 3805

Approved by: re (bmah)
Submitted by: John Marra  jmarra at nmu dot edu
MFC After: 1 week

16 years agoAdd man pages for coretemp(4) and ichwd(4).
des [Thu, 23 Aug 2007 20:05:09 +0000 (20:05 +0000)]
Add man pages for coretemp(4) and ichwd(4).

Approved by: re (bmah)

16 years agoReturn EADDRNOTAVAIL instead of EDESTADDRREQ error when
emax [Thu, 23 Aug 2007 16:55:22 +0000 (16:55 +0000)]
Return EADDRNOTAVAIL instead of EDESTADDRREQ error when
listen(2) is called on improperly bound socket.

Suggested by: Iain Hibbert
Approved by: re (kensmith)
MFC after: 3 days

16 years agoExport 4Gbps Fibre Channel link speed correctly with inquiry commands.
jkim [Thu, 23 Aug 2007 15:57:13 +0000 (15:57 +0000)]
Export 4Gbps Fibre Channel link speed correctly with inquiry commands.

Approved by: re (kensmith)
MFC after: 3 days