probe/discovery/protocol/icmp/icmp.go
crusader 7535e7ffc1 ing
2018-09-05 03:58:33 +09:00

16 lines
437 B
Go

package icmp
import (
"git.loafle.net/overflow_scanner/probe/discovery/protocol/icmp/privileged"
"git.loafle.net/overflow_scanner/probe/discovery/protocol/icmp/unprivileged"
"git.loafle.net/overflow_scanner/probe/discovery/session"
)
func Scan(discoverySession session.DiscoverySession) error {
if nil != discoverySession.PCapScanner() {
return privileged.Scan(discoverySession)
}
return unprivileged.Scan(discoverySession)
}