summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_pf.c
Commit message (Collapse)AuthorAgeFilesLines
* - Improvements to USB PF solutionhselasky2011-04-031-61/+203
| | | | | | | | | | | | | | - Add more fields for USB device and host mode - Add more information to USB PF header so that decoding can easily be done by software analyzer tools like Wireshark. - Optimise usbdump to display USB streams in text format more efficiently. - Software using USB PF must be recompiled after this commit, due to structure changes. MFC after: 7 days Approved by: thompsa (mentor)
* Use correct kernel types for all fields in USB PF code and headers.hselasky2011-02-011-3/+3
| | | | Approved by: thompsa (mentor)
* Introduces IFF_CANTCONFIG interface flag to point that the interfaceweongyo2010-12-071-0/+1
| | | | | | | | | isn't configurable in a meaningful way. This is for ifconfig(8) or other tools not to change code whenever IFT_USB-like interfaces are registered at the interface list. Reviewed by: brooks No objections: gavin, jkim
* Explicitly UP and DOWN the usbus interfaces (IFT_USB) when it's attachedweongyo2010-12-011-0/+2
| | | | | | | | | | or detached. Normally it should be changed through user land ioctl(2) system calls but it looks there's no apps for USB and no need. With this patch, libpcap would detect the usbus interfaces correctly and tcpdump(1) could dump the USB packets into PCAP format with -w option. However it couldn't print the output to console because there's no printer-routine at tcpdump(1).
* Handles the unit number correctly that the previous commit had a problemweongyo2010-11-251-2/+1
| | | | | | | | (wrong unit number for a host controller) when the module is load / unloaded repeatly. Attaching the USB pf is moved to usbus device's attach. Pointed by: yongari
* Assigning the unit number for each interfaces could not use ubus->parentweongyo2010-11-251-1/+2
| | | | | because it could differ depending on the host controller type. It could lead the duplicate unit number assignment.
* Fixes a compiler warning when it's compiled with INVARIANTS.weongyo2010-11-241-1/+1
| | | | Pointy hat to: me
* Removes all duplicated code with BPF that it's greatly simplified andweongyo2010-11-241-1652/+23
| | | | | | | take all benefits whenever BPF code is improved. Pointed by: jkim Reviewed by: thompsa
* Fixes a kernel crash when usb module is reloaded after unload that itweongyo2010-11-231-2/+16
| | | | | | | didn't destroy the cdev properly. Pointy hat to: me Reported by: Brandon Gooch <jamesbrandongooch at gmail dot com>, jkim
* Adds a USB packet filter feature to the stack that it could captureweongyo2010-11-221-0/+1862
packets which go through each USB host controllers. Its implementations are almost based on BPF code and very similar with it except it's little bit customized for USB packet only. The userland program usbdump(8) would be committed soon. Discussed with: hps, thompsa, yongari
OpenPOWER on IntegriCloud