160722 Commits

Author SHA1 Message Date
mm
aeccfd7aa1 MFC r204738, r205113 (imp):
MFC r204738:
Remove stale references to libkrb5.
Rejigger the SUBDIR setting a smidge: we now set all the libraries that depend
on something else, and then SUBDIR+= the rest.

MFC r205113:
Make this conform to the other top-level Makefile subdir listings with
one file per line.

Approved by:	delphij (mentor)
2010-05-18 00:46:15 +00:00
delphij
0f237b313b Adjust svn:mergeinfo for revision 204546. This commit moves mergeinfo to
lib/ and removes mergeinfo on individual file.
2010-05-18 00:37:32 +00:00
delphij
635fccbfdd MFC r207630
Remove if_ar, if_ray, if_sr, if_ppp, if_sl to reflect the current modules
available, they were removed due to NEEDSGIANT.

While I'm there, add if_et which was missed quite a while ago.
2010-05-18 00:32:02 +00:00
thompsa
90fb8f94bd MFC r203773
Within libusb 0.1 API, bus number is always faked to 0. Device numbers,
 however, are possitive and seem to be reverse sorted in the list.

 Conform device numbering and bring a result that is consistent with the
 libusb 0.1 API.  It is now possible to distinguish a device based on its
 (bus, dev) numbers.
2010-05-17 23:59:14 +00:00
thompsa
fe4b80709b MFC r208012
Support getting signed and unsigned HID data.
2010-05-17 23:57:34 +00:00
thompsa
4c0081bfc8 MFC r208021
Fix return values for usb_find_busses() and usb_find_devices(). We should try
 to return the actual number of busses and devices.
2010-05-17 23:56:17 +00:00
thompsa
40310299b8 MFC r208020
Fix header file compliancy with libusb 1.0 from sourceforge.
2010-05-17 23:55:23 +00:00
thompsa
7c61aa7350 MFC r208048
Allow the USB_REQ_DEBUG to be enabled in the kernel conf.
2010-05-17 23:52:33 +00:00
thompsa
7946a2df95 MFC r208019
Sync run(4) driver from author's site.
2010-05-17 23:51:57 +00:00
thompsa
d325051343 MFC r208018
Reduce diffs to p4.

  Add test code for delaying or failing usb control requests, disabled by
  default under ifdef USB_REQ_DEBUG.
2010-05-17 23:51:20 +00:00
thompsa
2a9a3e7c68 MFC r208017
Fix possibly wrong bit masking.
2010-05-17 23:50:46 +00:00
thompsa
6f58197e4b MFC r208016
Add new FTDI USB device ID.
2010-05-17 23:50:10 +00:00
thompsa
5bd78e802c MFC r208015
Increase the max ports to 12, 3G devices exist where the ppp endpoint is #9.
2010-05-17 23:49:31 +00:00
thompsa
620d7e2986 MFC r208014
Back out r203140 which was causing problems when the first and the last
 microframe slot was not in the smask. The problem was that the EHCI driver was
 then thinking that the transfer was immediately complete in some cases. Which
 could lead to freeze-like situations, which can be recovered by unplugging the
 USB device.
2010-05-17 23:48:51 +00:00
thompsa
226ff1fb8d MFC r208013
Add missing ifdefs for usb power saving support.
2010-05-17 23:48:03 +00:00
thompsa
1fbcafcbc9 MFC r208011
Add the ASUS MyPal A730W device id.
2010-05-17 23:47:24 +00:00
thompsa
54d7ece83a MFC r208010
Provide more information about the device location in the USB system.
2010-05-17 23:46:45 +00:00
thompsa
e27a64768d MFC r208009
Enable support for mouse panning wheels.
2010-05-17 23:46:08 +00:00
thompsa
fe6c95ffff MFC r208008
If a USB device is suspended and a USB set config request is issued when the
 USB enumeration lock is locked, then the USB stack fails to resume the device
 because locking the USB enumeration lock is part of the resume procedure. To
 solve this issue a new lock is introduced which only protects the suspend and
 resume callbacks, which can be dropped inside the usbd_do_request_flags()
 function, to allow suspend and resume during so-called enumeration operations.
2010-05-17 23:45:31 +00:00
thompsa
107c89d666 MFC r208007
Staticise usb_ref_device and usb_unref_device.
2010-05-17 23:44:52 +00:00
thompsa
77504583ba MFC r208006
Add quirks for the Alcor SDCR_6362 Card Reader, Freecom HDD storage device and
 Samsung YP_U4 music player.

PR:		usb/145265, usb/146104
2010-05-17 23:44:18 +00:00
thompsa
628aedf315 MFC r207404
usb_controller.c requires opt_ddb.h
2010-05-17 23:43:41 +00:00
thompsa
637bbf075a MFC r206638
Use the UIPROTO_BOOT_KEYBOARD #define from usb.h rather than a local
 (almost identically named) local #define.
2010-05-17 23:43:07 +00:00
thompsa
48424cca91 MFC r203148
Uuencode the rt2870 firmware into ascii like the other firmware blobs.
2010-05-17 23:41:06 +00:00
trasz
5a547a114e MFC r208030:
Add missing check to prevent local users from panicing the kernel by trying
to set malformed ACL.
2010-05-17 17:56:27 +00:00
yongari
4356fc7abd MFC r207971:
Document undocumented tunables and sysctl variables.
  While here use actual string to specify width as well as using Cm
  to set command argument.
2010-05-17 17:17:57 +00:00
yongari
32bd4e723c MFC r207853:
Now sge(4) supports TCP segmentation offload (TSO).
2010-05-17 17:16:12 +00:00
yongari
92791a64cb MFC r207852:
SiS190 supports RX 10 bytes padding, CRC stripping as well as VLAN
  hardware tag insertion/stripping. Remove conditional code that
  disables these hardware features on SiS190. Also nuke RX fixup code
  which is no more required on strict-alignment architectures because
  SiS190 supports RX 10 bytes padding.
  Now all hardware features except jumbo frame and WOL are supported.
  Thanks to Masa Murayama who confirmed SiS190 also has the same
  hardware features of SiS191.
  I guess the only difference between SiS191 and SiS190 would be
  jumbo frame support. It will be implemented in near future.
2010-05-17 17:12:35 +00:00
yongari
07430cf7b3 MFC r207851:
Implement TSO and TSO over VLAN. Increase number of allowed
  fragmentation of mbuf chain to 32 from 16 because TSO can send 64KB
  sized packet which in turn requires long list of mbuf chain. Due to
  lack of documentation, I'm not sure whether driver have to pull up
  ethernet/IP/TCP header with options to make controller work but
  driver have to parse TCP header to update pseudo TCP checksum
  anyway. The controller expects pseudo TCP checksum computed by
  upper stack and the checksum should follow the MS NDIS
  specification to make TSO work.

  Tested by:	xclin <xclin <> cs dot nctu dot edu dot tw >
2010-05-17 17:02:42 +00:00
yongari
5cc8a7e331 MFC r207832:
Export hardware MAC statistics through sysctl node. Previously
  fxp(4) already used to extract most hardware MAC statistics but it
  didn't show them. With this change, all MAC statistics counters
  are exported. Because there are a couple of new counters for 82558
  and 82559, enable extended MAC statistics functionality to get
  these counters. Accoring to public data sheet, 82559 MAC statistics
  return 24 DWORD counters(3 counters are unknown at this moment) so
  increase MAC counter structure to meet the MAC statistics block size.
  The completion of MAC counter dump is now checked against
  FXP_STATS_DR_COMPLETE status code which is appended at the end of
  status block. Previously fxp(4) ignored the status of the
  FXP_SCB_COMMAND_CU_DUMPRESET command. fxp(4) does not wait for the
  completion of pending command before issuing
  FXP_SCB_COMMAND_CU_DUMPRESET. Instead it skips the command and try
  it next time. This scheme may show better performance but there is
  chance to loose updated counters after stopping controller. So make
  sure to update MAC statistics in fxp_stop().
  While I'm here move sysctl node creation to fxp_sysctl_node().

  Tested by:	Larry Baird < lab <> gta dot com >
2010-05-17 16:57:55 +00:00
yongari
6bfbecad92 MFC r207750:
8255x configure command requires number of bytes of configuration
  table. The default size of the configuration table was 22 bytes. To
  use extended feature of 82550/82551 the configuration table size
  was expanded to 32 bytes. The added configuration for 82550/82551
  specifies VLAN hardware tagging and IPSec configuration as well as
  TCO.
  To make configuration easier fxp(4) used a configuration template
  and the template was copied to configuration table. After that,
  some parameters of the configuration table was changed depending on
  controller type and operation mode. However the size of template
  was 22 bytes so some configuration parameters were not properly
  initialized on 82550/82551.
  Fix this by increasing the template size. For 82557, 82558 and
  82559 the size of the configuration is still 22 bytes.
2010-05-17 16:47:25 +00:00
vanhu
8bca11513b MFC: Locks SPTREE when setting some SP entries to state DEAD.
This can prevent kernel panics when updating SPs while there is
some traffic for them.

Obtained from:	NETASQ
2010-05-17 15:31:24 +00:00
mm
e058c73bc5 MFC r207553, r207555, r207651:
Implement the no_user_check option to pam_krb5.

This option is available in the Linux implementation of pam_krb5
and allows to authorize a user not known to the local system.

Ccache is not used as we don't have a secure uid/gid for the cache file.

Usable for authentication of external kerberos users (e.g Active Directory)
via PAM from applications like Cyrus saslauthd, PHP or perl.

PR:		bin/146186
Approved by:	deplhij (mentor)
2010-05-17 14:27:40 +00:00
kensmith
3daf73cdcd Since sometimes developer activity the week before a code freeze starts causes
the stable branch to be a little less reliable than normal mark the stable/8
branch as 8.1-PRERELEASE to warn users.
2010-05-17 14:20:26 +00:00
kib
0af2e00748 MFC r207848:
The thread_unsuspend() requires both process mutex and process spinlock
locked. Postpone the process unlock till the thread_unsuspend() is called.
2010-05-17 08:15:04 +00:00
kib
5742992bea MFC r207847:
For detach procfs ctl command, also clear P_STOPPED_TRACE process stop
flag, and for each thread, TDB_SUSPEND debug flag, same as it is done by
exit1() for orphaned debugee.
2010-05-17 08:11:23 +00:00
rmacklem
b0fe857239 MFC: r207785
Fix typos in macros.
2010-05-17 02:01:22 +00:00
rmacklem
0eeb821b1a MFC: r207764
Patch the experimental NFS client so that it works for NFSv2
by adding the necessary mapping from NFSv3 procedure numbers
to NFSv2 procedure numbers when doing NFSv2 RPCs.
2010-05-17 01:41:11 +00:00
rmacklem
7f3db98fba MFC: r207689
If the "-alldirs" export option was used for the V4: line, mountd
would crash in check_options() since dp == NULL for the V4: line.
This patch moves the check for options allowed on the V4: line to
ahead of where dp is used to avoid this crash.
2010-05-17 01:18:12 +00:00
jilles
c99a7622b2 MFC r207944: sh: Fix pathname expansion with quoted slashes like *\/.
These are git commits 36f0fa8fcbc8c7b2b194addd29100fb40e73e4e9 and
d6d06ff5c2ea0fa44becc5ef4340e5f2f15073e4 in dash.

Because this is the first code I'm importing from dash to expand.c, add the
Herbert Xu copyright notice which is in dash's expand.c.

When pathname expanding *\/, the CTLESC representing the quoted state was
erroneously taken as part of the * pathname component. This CTLESC was then
seen by the pattern matching code as escaping the '\0' terminating the
string.

The code is slightly different because dash converts the CTLESC characters
to backslashes and removes all the other CTL* characters to allow
substituting glob(3).

The effect of the bug was also slightly different from dash (where nothing
matched at all). Because a CTLESC can escape a '\0' in some way, whether
files were included despite the bug depended on memory that should not be
read. In particular, on many machines /*\/ expanded to a strict subset of
what /*/ expanded to.

Example:
  echo /*"/null"

This should print /dev/null, not /*/null.

PR:		bin/146378
Obtained from:	dash
2010-05-16 22:52:51 +00:00
rrs
ef1b7b505d MFC 207985
Fix an old long time bug in generating a
 fwd-tsn. This would appear when greater than
 the size of mbuf TSN's would need to be skipped.
2010-05-16 16:52:56 +00:00
rrs
0bc7394c2c MFC 207983
More PR-SCTP bugs:
   - Make sure that when you kick the streams you add correctly
     using a 16 bit unsigned.
   - Make sure when sending out you allow FWD-TSN to skip over
     and list the ACKED chunks in the stream/seq list (so the
     rcv will kick the stream)
2010-05-16 16:51:44 +00:00
rrs
faa62e8b7c MFC 207966 (for Michael)
Get rid of unused constants.
2010-05-16 16:50:33 +00:00
rrs
a225bd6bef MFC of 207963
This fixes PR-SCTP issues:
  - Slide the map at the proper place.
  - Mark the bits in the nr_array ONLY if there
    is no marking.
  - When generating a FWD-TSN we allow us to skip past
    ACKED chunks too.
2010-05-16 16:45:49 +00:00
rrs
47043a6fc0 MFC of 207924:
This fixes a bug with the one-2-one model socket when a
user sets up a socket to a server sends data and closes
the socket before the server has called accept(). It used
to NOT work at all. Now we add a flag to the assoc and
defer assoc cleanup so that the accept will succeed
2010-05-16 16:42:52 +00:00
zec
3ab8b1875a MFC r208036:
Increase the target buffer for performing NGM_ASCII2BINARY conversion
  from 2000 bytes to 20 Kbytes, which now matches the buffer size used for
  NGM_BINARY2ASCII conversions.

  The aim of this change is to allow for bigger binary structures to be
  managed via netgraph ASCII messages, until we come up with an API
  improvement which would get rid of such arbitrary hardcoded limits.
2010-05-16 14:53:43 +00:00
zec
c779c4cdfd MFC r207680:
Add an optional "persistent" flag to ng_hub and ng_bridge, which if set,
  disables automatic node shutdown when the last hook gets disconnected.

  Reviewed by:  julian
2010-05-16 14:51:36 +00:00
jilles
5eb9806c00 MFC r207817: builtin(1): sh has no @ builtin command. 2010-05-16 11:06:32 +00:00
jilles
9a0e8f8e95 MFC r207816: Document clock and pshared condvar attributes.
Note: clock accepts CLOCK_VIRTUAL and CLOCK_PROF too, but this seems broken
as it simply waits for the difference of the current and given value of the
clock as if it were CLOCK_MONOTONIC. So document only CLOCK_REALTIME and
CLOCK_MONOTONIC as allowed.
2010-05-16 11:03:46 +00:00
stefanf
485d3a4fdf Merge r199631: Handle current work directories of arbitrary length. 2010-05-16 10:01:06 +00:00