MCPcopy
hub / github.com/bettercap/bettercap / Start

Method Start

modules/packet_proxy/packet_proxy_linux.go:212–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210}
211
212func (mod *PacketProxy) Start() error {
213 if mod.Running() {
214 return session.ErrAlreadyStarted(mod.Name())
215 } else if err := mod.Configure(); err != nil {
216 return err
217 }
218
219 return mod.SetRunning(true, func() {
220 mod.Info("started on queue number %d", mod.queueNum)
221 })
222}
223
224func (mod *PacketProxy) Stop() (err error) {
225 return mod.SetRunning(false, func() {

Callers

nothing calls this directly

Calls 6

NameMethod · 0.95
ConfigureMethod · 0.95
ErrAlreadyStartedFunction · 0.92
SetRunningMethod · 0.80
RunningMethod · 0.65
InfoMethod · 0.45

Tested by

no test coverage detected