mirror of
https://github.com/bettercap/bettercap
synced 2025-07-30 11:40:33 -07:00
new: implemented can.inject
This commit is contained in:
parent
5fe3ef3d52
commit
fd05df613e
3 changed files with 37 additions and 0 deletions
|
@ -62,6 +62,7 @@ func (mod *CANModule) Configure() error {
|
|||
}
|
||||
|
||||
mod.recv = socketcan.NewReceiver(mod.conn)
|
||||
mod.send = socketcan.NewTransmitter(mod.conn)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -124,6 +125,7 @@ func (mod *CANModule) Stop() error {
|
|||
mod.conn.Close()
|
||||
mod.conn = nil
|
||||
mod.recv = nil
|
||||
mod.send = nil
|
||||
mod.dbc = nil
|
||||
mod.dbcPath = ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue