Skip to content

Commit 45c023e

Browse files
authored
Merge pull request #2735 from roumy/master
Correct Can Doc
2 parents f49c96a + c94a09d commit 45c023e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/scapy/layers/automotive.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Send and receive a message over Linux SocketCAN::
5959
load_layer('can')
6060
load_contrib('cansocket')
6161

62-
socket = CANSocket(iface='can0')
62+
socket = CANSocket(channel='can0')
6363
packet = CAN(identifier=0x123, data=b'01020304')
6464

6565
socket.send(packet)
@@ -75,7 +75,7 @@ Send a message over a Vector CAN-Interface::
7575
load_contrib('cansocket')
7676
from can.interfaces.vector import VectorBus
7777

78-
socket = CANSocket(iface=VectorBus(0, bitrate=1000000))
78+
socket = CANSocket(channel=VectorBus(0, bitrate=1000000))
7979
packet = CAN(identifier=0x123, data=b'01020304')
8080

8181
socket.send(packet)

0 commit comments

Comments
 (0)