This commit is contained in:
黄思敏 2022-08-29 11:00:37 +08:00
parent 02f46a1894
commit c95bce2b8e

View File

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