]> The Tcpdump Group git mirrors - libpcap/commit
Added initial support for canusb devices.
authorAkos Vandra <[email protected]>
Fri, 23 Dec 2011 01:29:52 +0000 (03:29 +0200)
committerAkos Vandra <[email protected]>
Fri, 23 Dec 2011 01:29:52 +0000 (03:29 +0200)
commitf3edbb599b8cbcc7e4560000dcba8e992dc11a31
tree1324a69c7cf7fc1d13dbf5f5c4f963c169ed7e62
parent9caf32236f1fa306bce927c29db1e8e044025558
Added initial support for canusb devices.

CanUSB devices are not directly supported by the kernel.
LibUSB-1.0 is used to communicate them, with a special protocol.

Reading 2 bytes from interrupt endpoint 1 returns the number of packets in the
rx and the tx buffer,

Reading 20 bytes from bulk endpoint 5 returns a 4byte timestamp in 10us
resolution since powerup, and a can fram in socket_can frame format, so
DLT_SOCKETCAN may be used.

TODO: use async libusb communication
Makefile.in
config.h.in
configure
configure.in
pcap-canusb-linux.c [new file with mode: 0644]
pcap-canusb-linux.h [new file with mode: 0644]
pcap-linux.c