MCPcopy Create free account
hub / github.com/SamNet-dev/snix / Open

Method Open

platform/backend.go:28–28  ·  view source on GitHub ↗

Open installs the filter rules and starts packet interception. The returned error indicates a fatal setup failure (missing driver, insufficient privileges, rule conflict).

(ctx context.Context, scope Scope)

Source from the content-addressed store, hash-verified

26 // returned error indicates a fatal setup failure (missing driver,
27 // insufficient privileges, rule conflict).
28 Open(ctx context.Context, scope Scope) error
29
30 // Packets returns the stream of intercepted packets. The channel is
31 // closed when the backend is stopped.

Callers 9

runEngineFunction · 0.65
verifySHAFunction · 0.65
extractTarGzFunction · 0.65
extractZipFunction · 0.65
runEngineFunction · 0.65
OpenMethod · 0.65
TestDoubleCloseIsSafeFunction · 0.65
TestRawSocketAvailableFunction · 0.65

Implementers 3

fakeBackendcore/engine/engine_test.go
Backendplatform/windows/backend.go
Backendplatform/linux/nfqueue.go

Calls

no outgoing calls

Tested by 3

TestDoubleCloseIsSafeFunction · 0.52
TestRawSocketAvailableFunction · 0.52