diff --git a/device.go b/device.go index 7ec9250..363b2a7 100644 --- a/device.go +++ b/device.go @@ -201,6 +201,7 @@ func (nc *NetCard) runRead() { return } }) + if realAddr == "" { log.Printf("%s is not exists", waterutil.IPv4Destination(rframe)) continue @@ -208,7 +209,7 @@ func (nc *NetCard) runRead() { // log.Printf("Payload: % x\n", rframe.Payload()) - log.Printf("Ethertype: % x %v\n", rframe.Ethertype(), waterutil.IsIPv4(rframe)) + log.Printf("Ethertype: % x %v realAddr %s\n", rframe.Ethertype(), waterutil.IsIPv4(rframe), realAddr) log.Printf("Dst: %s Src %s\n", waterutil.IPv4Destination(rframe), waterutil.IPv4Source(rframe)) var buffer *ExchangeBuffer