Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   bouyer
Date:           Sat May 27 21:02:56 UTC 2017

Modified Files:
        src/distrib/sets/lists/base: mi shl.mi
        src/distrib/sets/lists/comp: mi shl.mi
        src/distrib/sets/lists/debug: mi shl.mi
        src/distrib/sets/lists/man: mi
        src/distrib/sets/lists/tests: mi
        src/etc/mtree: NetBSD.dist.base NetBSD.dist.tests
        src/lib/libc/sys: socket.2
        src/sbin: Makefile
        src/share/man/man4: Makefile
        src/sys: Makefile
        src/sys/arch/arm/allwinner: awin_io.c awin_reg.h files.awin
        src/sys/conf: files
        src/sys/kern: uipc_socket.c
        src/sys/net: netisr.h netisr_dispatch.h
        src/sys/rump/include/opt: opt_rumpkernel.h
        src/sys/rump/include/rump: rumpdefs.h
        src/sys/rump/net: Makefile.rumpnetcomp
        src/sys/sys: mbuf.h socket.h
        src/tests/net: Makefile
Added Files:
        src/sbin/canconfig: Makefile canconfig.8 canconfig.c
        src/share/man/man4: can.4 canloop.4
        src/sys/arch/arm/allwinner: awin_can.c
        src/sys/netcan: Makefile can.c can.h can_link.h can_pcb.c can_pcb.h
            can_proto.c can_var.h files.netcan if_canloop.c
        src/sys/rump/net/lib/libnetcan: Makefile NETCAN.ioconf
            netcan_component.c
        src/tests/net/can: Makefile h_canutils.c h_canutils.h t_can.c
            t_canfilter.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1157 -r1.1158 src/distrib/sets/lists/base/mi
cvs rdiff -u -r1.816 -r1.817 src/distrib/sets/lists/base/shl.mi
cvs rdiff -u -r1.2137 -r1.2138 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.305 -r1.306 src/distrib/sets/lists/comp/shl.mi
cvs rdiff -u -r1.212 -r1.213 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.175 -r1.176 src/distrib/sets/lists/debug/shl.mi
cvs rdiff -u -r1.1556 -r1.1557 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.748 -r1.749 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.159 -r1.160 src/etc/mtree/NetBSD.dist.base
cvs rdiff -u -r1.146 -r1.147 src/etc/mtree/NetBSD.dist.tests
cvs rdiff -u -r1.41 -r1.42 src/lib/libc/sys/socket.2
cvs rdiff -u -r1.129 -r1.130 src/sbin/Makefile
cvs rdiff -u -r0 -r1.2 src/sbin/canconfig/Makefile \
    src/sbin/canconfig/canconfig.8 src/sbin/canconfig/canconfig.c
cvs rdiff -u -r1.636 -r1.637 src/share/man/man4/Makefile
cvs rdiff -u -r0 -r1.2 src/share/man/man4/can.4 src/share/man/man4/canloop.4
cvs rdiff -u -r1.79 -r1.80 src/sys/Makefile
cvs rdiff -u -r0 -r1.2 src/sys/arch/arm/allwinner/awin_can.c
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/arm/allwinner/awin_io.c
cvs rdiff -u -r1.90 -r1.91 src/sys/arch/arm/allwinner/awin_reg.h
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/arm/allwinner/files.awin
cvs rdiff -u -r1.1171 -r1.1172 src/sys/conf/files
cvs rdiff -u -r1.254 -r1.255 src/sys/kern/uipc_socket.c
cvs rdiff -u -r1.44 -r1.45 src/sys/net/netisr.h
cvs rdiff -u -r1.18 -r1.19 src/sys/net/netisr_dispatch.h
cvs rdiff -u -r0 -r1.2 src/sys/netcan/Makefile src/sys/netcan/can.c \
    src/sys/netcan/can.h src/sys/netcan/can_link.h src/sys/netcan/can_pcb.c \
    src/sys/netcan/can_pcb.h src/sys/netcan/can_proto.c \
    src/sys/netcan/can_var.h src/sys/netcan/files.netcan \
    src/sys/netcan/if_canloop.c
cvs rdiff -u -r1.5 -r1.6 src/sys/rump/include/opt/opt_rumpkernel.h
cvs rdiff -u -r1.36 -r1.37 src/sys/rump/include/rump/rumpdefs.h
cvs rdiff -u -r1.18 -r1.19 src/sys/rump/net/Makefile.rumpnetcomp
cvs rdiff -u -r0 -r1.2 src/sys/rump/net/lib/libnetcan/Makefile \
    src/sys/rump/net/lib/libnetcan/NETCAN.ioconf \
    src/sys/rump/net/lib/libnetcan/netcan_component.c
cvs rdiff -u -r1.169 -r1.170 src/sys/sys/mbuf.h
cvs rdiff -u -r1.121 -r1.122 src/sys/sys/socket.h
cvs rdiff -u -r1.32 -r1.33 src/tests/net/Makefile
cvs rdiff -u -r0 -r1.2 src/tests/net/can/Makefile \
    src/tests/net/can/h_canutils.c src/tests/net/can/h_canutils.h \
    src/tests/net/can/t_can.c src/tests/net/can/t_canfilter.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index