Commit Graph

151573 Commits

Author SHA1 Message Date
Andrew Thompson
574f062304 MFC r208023
Use fixed width integer types for parsing the binary hid data.
2010-05-18 03:16:02 +00:00
Doug Barton
fb7f7f92b8 MFC r208089:
Remove duplicate
2010-05-18 02:22:08 +00:00
Doug Barton
7ca82ab6a0 MFC r208088:
Hide the creation and population of the temproot
2010-05-18 02:17:40 +00:00
Martin Matuska
379e47715a 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
Xin LI
53e2ea7cf2 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
Xin LI
ac675f61fd 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
Andrew Thompson
be5dc99871 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
Andrew Thompson
1eeca0bf19 MFC r208012
Support getting signed and unsigned HID data.
2010-05-17 23:57:34 +00:00
Andrew Thompson
300902e282 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
Andrew Thompson
005044bdc0 MFC r208020
Fix header file compliancy with libusb 1.0 from sourceforge.
2010-05-17 23:55:23 +00:00
Andrew Thompson
642742e8e8 MFC r208048
Allow the USB_REQ_DEBUG to be enabled in the kernel conf.
2010-05-17 23:52:33 +00:00
Andrew Thompson
4e2a75d8af MFC r208019
Sync run(4) driver from author's site.
2010-05-17 23:51:57 +00:00
Andrew Thompson
0a22c89dd0 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
Andrew Thompson
7ed2269651 MFC r208017
Fix possibly wrong bit masking.
2010-05-17 23:50:46 +00:00
Andrew Thompson
298c330015 MFC r208016
Add new FTDI USB device ID.
2010-05-17 23:50:10 +00:00
Andrew Thompson
4251e3198f 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
Andrew Thompson
6b264d7512 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
Andrew Thompson
f3619333d4 MFC r208013
Add missing ifdefs for usb power saving support.
2010-05-17 23:48:03 +00:00
Andrew Thompson
825c2e2677 MFC r208011
Add the ASUS MyPal A730W device id.
2010-05-17 23:47:24 +00:00
Andrew Thompson
948a9feb33 MFC r208010
Provide more information about the device location in the USB system.
2010-05-17 23:46:45 +00:00
Andrew Thompson
25e59d15b9 MFC r208009
Enable support for mouse panning wheels.
2010-05-17 23:46:08 +00:00
Andrew Thompson
51c097f122 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
Andrew Thompson
79e193fb18 MFC r208007
Staticise usb_ref_device and usb_unref_device.
2010-05-17 23:44:52 +00:00
Andrew Thompson
3bf0ccc8be 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
Andrew Thompson
7b77f44cdc MFC r207404
usb_controller.c requires opt_ddb.h
2010-05-17 23:43:41 +00:00
Andrew Thompson
199841d30c 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
Andrew Thompson
3e95f09e66 MFC r203148
Uuencode the rt2870 firmware into ascii like the other firmware blobs.
2010-05-17 23:41:06 +00:00
Edward Tomasz Napierala
44ba1ebbee 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
Pyun YongHyeon
cea772d1e7 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
Pyun YongHyeon
3c1e6bc9ab MFC r207853:
Now sge(4) supports TCP segmentation offload (TSO).
2010-05-17 17:16:12 +00:00
Pyun YongHyeon
0fb00d128a 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
Pyun YongHyeon
cfd81a4a1d 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
Pyun YongHyeon
14d379e521 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
Pyun YongHyeon
629403076a 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
VANHULLEBUS Yvan
0b4ae73d99 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
Martin Matuska
66a7924d0b 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
Ken Smith
58bfd864fa 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
Konstantin Belousov
4fa8113f97 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
Konstantin Belousov
c32fbf547b 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
Rick Macklem
e6c7d81538 MFC: r207785
Fix typos in macros.
2010-05-17 02:01:22 +00:00
Rick Macklem
4406606105 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
Rick Macklem
1bc9e11312 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 Tjoelker
d366e1de7f 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
Randall Stewart
b5889e7a0d 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
Randall Stewart
31bd7e42f9 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
Randall Stewart
d536af657c MFC 207966 (for Michael)
Get rid of unused constants.
2010-05-16 16:50:33 +00:00
Randall Stewart
c7a8100b47 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
Randall Stewart
93c3efa7cf 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
Marko Zec
49856a78b5 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
Marko Zec
7c8102300a 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