diff --git a/firewall/interception/interception_linux.go b/firewall/interception/interception_linux.go index 5ee31eb2..be94e5b9 100644 --- a/firewall/interception/interception_linux.go +++ b/firewall/interception/interception_linux.go @@ -21,7 +21,7 @@ func ResetVerdictOfAllConnections() error { return nfq.DeleteAllMarkedConnection() } -// UpdateVerdictOfConnection deletes the verdict of specific connection so in can be initialized again with the next packet +// UpdateVerdictOfConnection deletes the verdict of specific connection so in can be initialized again with the next packet. func UpdateVerdictOfConnection(conn *network.Connection) error { return nfq.DeleteMarkedConnection(conn) } diff --git a/firewall/interception/interception_windows.go b/firewall/interception/interception_windows.go index 5a21f345..7a29affe 100644 --- a/firewall/interception/interception_windows.go +++ b/firewall/interception/interception_windows.go @@ -41,12 +41,12 @@ func ResetVerdictOfAllConnections() error { return windowskext.ClearCache() } -// UpdateVerdictOfConnection updates the verdict of specific connection in the kernel extension +// UpdateVerdictOfConnection updates the verdict of specific connection in the kernel extension. func UpdateVerdictOfConnection(conn *network.Connection) error { return windowskext.UpdateVerdict(conn) } -// GetKextVersion returns the version of the kernel extension +// GetKextVersion returns the version of the kernel extension. func GetKextVersion() (string, error) { version, err := windowskext.GetVersion() if err != nil { diff --git a/firewall/interception/nfq/conntrack.go b/firewall/interception/nfq/conntrack.go index bcb10101..b9a189a4 100644 --- a/firewall/interception/nfq/conntrack.go +++ b/firewall/interception/nfq/conntrack.go @@ -13,7 +13,7 @@ import ( "github.com/safing/portmaster/network" ) -var nfct *ct.Nfct // Conntrack handler. NFCT: Network Filter Connection Tracking +var nfct *ct.Nfct // Conntrack handler. NFCT: Network Filter Connection Tracking. // InitNFCT initializes the network filter conntrack library func InitNFCT() error { @@ -25,7 +25,7 @@ func InitNFCT() error { return nil } -// DeinitNFCT deinitializes the network filter conntrack library +// DeinitNFCT deinitializes the network filter conntrack library. func DeinitNFCT() { _ = nfct.Close() } @@ -82,7 +82,7 @@ func deleteMarkedConnections(nfct *ct.Nfct, f ct.Family) (deleted int) { return deleted } -// DeleteMarkedConnection removes a specific connection from the conntrack table +// DeleteMarkedConnection removes a specific connection from the conntrack table. func DeleteMarkedConnection(conn *network.Connection) error { if nfct == nil { return fmt.Errorf("nfq: nfct not initialized")