MCPcopy
hub / github.com/evilsocket/opensnitch / Reload

Function Reload

daemon/firewall/rules.go:118–122  ·  view source on GitHub ↗

Reload stops current firewall and initializes a new one.

(fwtype, configPath, monitorInterval string, bypassQueue bool, queueNum uint16)

Source from the content-addressed store, hash-verified

116
117// Reload stops current firewall and initializes a new one.
118func Reload(fwtype, configPath, monitorInterval string, bypassQueue bool, queueNum uint16) (err error) {
119 Stop()
120 err = Init(fwtype, configPath, monitorInterval, bypassQueue, queueNum)
121 return
122}
123
124// ReloadSystemRules deletes existing rules, and add them again
125func ReloadSystemRules() {

Callers

nothing calls this directly

Calls 2

StopFunction · 0.70
InitFunction · 0.70

Tested by

no test coverage detected