]> git.proxmox.com Git - ifupdown-pve.git/blob - can.defn
Squashed 'src/' content from commit c732260
[ifupdown-pve.git] / can.defn
1 address_family can
2 architecture linux
3
4 method static
5 description
6 This method may be used to setup a Controller Area Network (CAN)
7 interface. It requires the the *ip* command from the *iproute* package.
8
9 options
10 bitrate bitrate -- bitrate (1..1000000) *required*
11 samplepoint samplepoint -- sample point (0.000..0.999)
12 loopback loopback -- loop back CAN Messages (on|off)
13 listenonly listenonly -- listen only mode (on|off)
14 triple triple -- activate triple sampling (on|off)
15 oneshot oneshot -- one shot mode (on|off)
16 berr berr -- activate berr reporting (on|off)
17
18 up
19 ip link set %iface% type can bitrate %bitrate%
20 [[ ip link set %iface% type can loopback %loopback% ]]
21 [[ ip link set %iface% type can listen-only %listenonly% ]]
22 [[ ip link set %iface% type can triple-sampling %triple% ]]
23 [[ ip link set %iface% type can one-shot %oneshot% ]]
24 [[ ip link set %iface% type can berr-reporting %berr% ]]
25 ip link set %iface% up
26
27 down
28 ip link set %iface% down