OpenGrok
Cross Reference: h_canutils.c
xref
: /
src
/
tests
/
net
/
can
/
h_canutils.c
Home
|
History
|
Annotate
|
Download
|
only in
can
History log of
/src/tests/net/can/h_canutils.c
Revision
Date
Author
Comments
1.4
13-Oct-2019
mrg
ifr_name is nul terminated. make it so.
1.3
28-May-2017
kre
branches: 1.3.10;
Needs %zu fix for sizeof as well.
1.2
27-May-2017
bouyer
merge the bouyer-socketcan branch to HEAD.
CAN stands for Controller Area Network, a broadcast network used
in automation and automotive fields. For example, the NMEA2000 standard
developped for marine devices uses a CAN network as the link layer.
This is an implementation of the linux socketcan API:
https://www.kernel.org/doc/Documentation/networking/can.txt
you can also see can(4).
This adds a new socket family (AF_CAN) and protocol (PF_CAN),
as well as the canconfig(8) utility, used to set timing parameter of
CAN hardware. Also inclued is a driver for the CAN controller
found in the allwinner A20 SoC (I tested it with an Olimex lime2 board,
connected with PIC18-based CAN devices).
There is also the canloop(4) pseudo-device, which allows to use
the socketcan API without CAN hardware.
At this time the CANFD part of the linux socketcan API is not implemented.
Error frames are not implemented either. But I could get the cansend and
canreceive utilities from the canutils package to build and run with minimal
changes. tcpudmp(8) can also be used to record frames, which can be
decoded with etherreal.
1.1
04-Feb-2017
bouyer
branches: 1.1.2;
file h_canutils.c was initially added on branch bouyer-socketcan.
1.1.2.5
17-Apr-2017
bouyer
Make it build from build.sh (fix warnings)
1.1.2.4
05-Feb-2017
bouyer
Factor out creation of socket with CAN_RAW_RECV_OWN_MSGS
1.1.2.3
05-Feb-2017
bouyer
factor out socket bind to interface
1.1.2.2
05-Feb-2017
bouyer
Decrease timeout from 2 to 1 second. Speeds up the tests where timeout is
the expected case, and it should still be enough to get the looped back
packet.
1.1.2.1
04-Feb-2017
bouyer
Factor out reading from a can socket, and move to a helper file.
1.3.10.1
13-Apr-2020
martin
Mostly merge changes from HEAD upto 20200411
Indexes created Mon Oct 13 21:09:55 GMT 2025