Refactoring and more comments

This commit is contained in:
Vladimir
2022-11-02 15:03:26 -07:00
parent 1f677cb93f
commit 1ff27784c3
3 changed files with 32 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
//go:build windows
// +build windows
package windowskext
@@ -10,6 +11,7 @@ import (
"github.com/tevino/abool"
"github.com/safing/portbase/log"
"github.com/safing/portmaster/network"
"github.com/safing/portmaster/network/packet"
)
@@ -43,6 +45,11 @@ type VerdictRequest struct {
packetSize uint32
}
type VerdictInfo struct {
id uint32 // ID from RegisterPacket
verdict network.Verdict // verdict for the connection
}
// Handler transforms received packets to the Packet interface.
func Handler(packets chan packet.Packet) {
if !ready.IsSet() {