Increase verbosity, add comments

This commit is contained in:
Raskaro 2019-08-21 14:19:02 +02:00
parent 984a06cb8f
commit a560f52b42
2 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -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 {