History log of /freebsd-10.0-release/usr.sbin/usbdump/usbdump.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 238279 09-Jul-2012 hrs

Make usbusN logging pseudo-interface used by usbdump(8) clonable. One is
now created/destroyed automatically by usbdump(8).

Note that "hw.usb.no_pf" loader tunable is now obsolete.

Reviewed by: hselasky


# 234655 24-Apr-2012 hselasky

Add missing and probably also mandatory -h option.

MFC after: 1 week


# 234636 24-Apr-2012 hselasky

Improve support for USB packet filtering also when reading dumps, and
allow filtered data to be dumped to a binary file.

MFC after: 1 week


# 233039 16-Mar-2012 hselasky

Create new file header format to simplify the endian and cross platform issues.
This patch does not break binary compatibility with previous versions.

MFC after: 1 week


# 233037 16-Mar-2012 hselasky

Fix cross-platform issue about the file-format in which
usbdump stores data. Until this patch it was not possible
to exchange traces between 32-bit, 64-bit, big- and
little endian platforms. The problem is the dynamic nature
of the BPF timestamp in the header. All other fields are
fixed size and little endian.

MFC after: 5 days


# 231835 16-Feb-2012 hselasky

Add support for filtering USB devices and USB endpoints to the usbdump utility
when making software USB traces.

MFC after: 1 week


# 226474 17-Oct-2011 hselasky

Make the usbdump utility work again by using the correct BPF structures.

MFC after: 3 days


# 221604 07-May-2011 hselasky

Minor usbdump update:
- Use memcpy() instead of bcopy().
- Replace all asserts() by standard error messages.
- Update usage().

MFC after: 7 days


# 220314 04-Apr-2011 thompsa

fix printing of tv_usec


# 220301 03-Apr-2011 hselasky

- Improvements to USB PF solution
- 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)


# 218010 28-Jan-2011 hselasky

- Remove double semicolon.
- Remove reference to sprintf. Use printf directly. This part of
the code should be optimised further to avoid many small printouts.
Setting a sensible line buffer length could help aswell when printing
out megabytes of data per second.

Approved by: thompsa (mentor)


# 216138 02-Dec-2010 weongyo

Changes the meaning of each characters '<' and '>' that it could be
confused with USB OUT or USB IN packets though it just represents USB
submit or done. To know the USB packet direction, the endpoint address
should be referred.

Requested by: jkim


# 215803 24-Nov-2010 weongyo

As a refection of r215802 it should use BPF interfaces because the
duplication code of USB pf is removed.


# 215651 21-Nov-2010 weongyo

Adds usbdump(8) tool that currently it only supports the very basic
feature set. It's not connected to the build yet.

Reviewed by: hps