diff options
| author | bouyer <bouyer@NetBSD.org> | 2017-05-27 21:02:54 +0000 |
|---|---|---|
| committer | bouyer <bouyer@NetBSD.org> | 2017-05-27 21:02:54 +0000 |
| commit | 3e7aaa91a8b5dd2a6aebff25d0f9fcab4a2edb90 (patch) | |
| tree | f19f0d1a6f18fcabb5481e3b1fc16611f1e3b95b /lib/libc/sys | |
| parent | cdd3ff897b961874efb8ed508de493f2315f541a (diff) | |
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.
Diffstat (limited to 'lib/libc/sys')
| -rw-r--r-- | lib/libc/sys/socket.2 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/sys/socket.2 b/lib/libc/sys/socket.2 index 6912d065936..2dcc694a7ab 100644 --- a/lib/libc/sys/socket.2 +++ b/lib/libc/sys/socket.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: socket.2,v 1.41 2013/03/01 18:25:16 joerg Exp $ +.\" $NetBSD: socket.2,v 1.42 2017/05/27 21:02:55 bouyer Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)socket.2 8.1 (Berkeley) 6/4/93 .\" -.Dd February 5, 2013 +.Dd April 27, 2017 .Dt SOCKET 2 .Os .Sh NAME @@ -61,6 +61,7 @@ PF_INET6 IPv6 (Internet Protocol version 6) protocols PF_NS Xerox Network Systems protocols PF_APPLETALK AppleTalk protocols PF_BLUETOOTH Bluetooth protocols +PF_CAN CAN bus protocols .Ed .Pp The socket has the indicated |
