mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29:12 +00:00
35 lines
733 B
Go
35 lines
733 B
Go
// Copyright Safing ICS Technologies GmbH. Use of this source code is governed by the AGPL license that can be found in the LICENSE file.
|
|
|
|
package network
|
|
|
|
// Verdict describes the decision made about a connection or link.
|
|
type Verdict uint8
|
|
|
|
// List of values a Status can have
|
|
const (
|
|
// UNDECIDED is the default status of new connections
|
|
UNDECIDED Verdict = iota
|
|
ACCEPT
|
|
BLOCK
|
|
DROP
|
|
RerouteToNameserver
|
|
RerouteToTunnel
|
|
)
|
|
|
|
// Packer Directions
|
|
const (
|
|
Inbound = true
|
|
Outbound = false
|
|
)
|
|
|
|
// Non-Domain Connections
|
|
const (
|
|
IncomingHost = "IH"
|
|
IncomingLAN = "IL"
|
|
IncomingInternet = "II"
|
|
IncomingInvalid = "IX"
|
|
PeerHost = "PH"
|
|
PeerLAN = "PL"
|
|
PeerInternet = "PI"
|
|
PeerInvalid = "PX"
|
|
)
|