File: /etc/systemd/network/50-vcan.netdev
[NetDev]
Name=vcan0
Kind=vcan
File: /etc/systemd/network/50-vcan.network
[Match]
Name=vcan0
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <signal.h> | |
| #include <sys/wait.h> | |
| #include <string.h> | |
| #include <errno.h> | |
| static pid_t child_pid = -1; | 
| [Unit] | |
| Description=SocketCAN interface can0 with a baudrate of 250000 | |
| After=multi-user.target | |
| [Service] | |
| Type=oneshot | |
| RemainAfterExit=yes | |
| ExecStart=/sbin/ip link set can0 type can bitrate 250000 ; /sbin/ifconfig can0 up | |
| ExecReload=/sbin/ifconfig can0 down ; /sbin/ip link set can0 type can bitrate 250000 ; /sbin/ifconfig can0 up | |
| ExecStop=/sbin/ifconfig can0 down | 
File: /etc/systemd/network/50-vcan.netdev
[NetDev]
Name=vcan0
Kind=vcan
File: /etc/systemd/network/50-vcan.network
[Match]
Name=vcan0
| [ | |
| "alert", | |
| "arrow-down", | |
| "arrow-left", | |
| "arrow-right", | |
| "arrow-small-down", | |
| "arrow-small-left", | |
| "arrow-small-right", | |
| "arrow-small-up", | |
| "arrow-up", |