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

Method OnDNSResponse

daemon/statistics/stats.go:139–144  ·  view source on GitHub ↗

OnDNSResponse increases the counter of dns and accepted connections.

()

Source from the content-addressed store, hash-verified

137
138// OnDNSResponse increases the counter of dns and accepted connections.
139func (s *Statistics) OnDNSResponse() {
140 s.Lock()
141 defer s.Unlock()
142 s.DNSResponses++
143 s.Accepted++
144}
145
146// OnIgnored increases the counter of ignored and accepted connections.
147func (s *Statistics) OnIgnored() {

Callers 1

onPacketFunction · 0.80

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected