probe/discovery/protocol/icmp/icmp.go

16 lines
437 B
Go
Raw Normal View History

2018-08-31 10:05:49 +00:00
package icmp
import (
2018-09-01 02:19:03 +00:00
"git.loafle.net/overflow_scanner/probe/discovery/protocol/icmp/privileged"
"git.loafle.net/overflow_scanner/probe/discovery/protocol/icmp/unprivileged"
2018-08-31 10:05:49 +00:00
"git.loafle.net/overflow_scanner/probe/discovery/session"
)
func Scan(discoverySession session.DiscoverySession) error {
2018-09-04 18:58:33 +00:00
if nil != discoverySession.PCapScanner() {
2018-09-01 02:19:03 +00:00
return privileged.Scan(discoverySession)
2018-08-31 10:05:49 +00:00
}
2018-09-01 02:19:03 +00:00
return unprivileged.Scan(discoverySession)
2018-08-31 10:05:49 +00:00
}