mirror of
https://github.com/safing/portmaster
synced 2025-09-01 10:09:11 +00:00
Increase verbosity, add comments
This commit is contained in:
parent
984a06cb8f
commit
a560f52b42
2 changed files with 4 additions and 2 deletions
|
@ -146,6 +146,7 @@ func handlePacket(pkt packet.Packet) {
|
|||
pkt.PermanentAccept()
|
||||
return
|
||||
}
|
||||
// TODO: Howto handle NetBios?
|
||||
}
|
||||
|
||||
// log.Debugf("firewall: pkt %s has ID %s", pkt, pkt.GetLinkID())
|
||||
|
@ -268,8 +269,9 @@ func initialHandler(pkt packet.Packet, link *network.Link) {
|
|||
// link.StopFirewallHandler()
|
||||
// permanentVerdict(pkt, network.VerdictAccept)
|
||||
case link.Inspect:
|
||||
log.Tracer(pkt.Ctx()).Trace("firewall: start inspecting")
|
||||
link.SetFirewallHandler(inspectThenVerdict)
|
||||
inspectThenVerdict(pkt, link)
|
||||
inspectThenVerdict(pkt, link) // TODO: corrent?: concurrently also called in link.SetFirewallHandler->go link.packetHandler()->fwH(pkt, link)
|
||||
default:
|
||||
link.StopFirewallHandler()
|
||||
issueVerdict(pkt, link, 0, true)
|
||||
|
|
|
@ -64,7 +64,7 @@ func RunInspectors(pkt packet.Packet, link *network.Link) (network.Verdict, bool
|
|||
continue
|
||||
}
|
||||
|
||||
action := inspectors[key](pkt, link)
|
||||
action := inspectors[key](pkt, link) // Actually run inspector
|
||||
switch action {
|
||||
case DO_NOTHING:
|
||||
if verdict < network.VerdictAccept {
|
||||
|
|
Loading…
Add table
Reference in a new issue