Skip to content

Commit c94a09d

Browse files
authored
Merge pull request #1 from roumy/roumy-patch-DocIssueCan1
correct doc in accordance to code
2 parents f49c96a + 0757fab commit c94a09d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)