This commit is contained in:
crusader 2018-09-05 05:37:15 +09:00
parent 1aa43cf403
commit bf6b3901c2

View File

@ -3,6 +3,7 @@ package session
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"log"
"net" "net"
"strconv" "strconv"
"sync" "sync"
@ -176,6 +177,9 @@ func (ds *ofDiscoverySession) InitWithRequest(request types.DiscoveryRequest) er
_pCapScanner := pcap.NewPCapScanner(ds.zone) _pCapScanner := pcap.NewPCapScanner(ds.zone)
if err := _pCapScanner.Start(); nil == err { if err := _pCapScanner.Start(); nil == err {
ds.pCapScanner = _pCapScanner ds.pCapScanner = _pCapScanner
log.Print("Privileged mode")
} else {
log.Print("Unprivileged mode")
} }
return nil return nil