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 return
} }
}) })
if realAddr == "" { if realAddr == "" {
log.Printf("%s is not exists", waterutil.IPv4Destination(rframe)) log.Printf("%s is not exists", waterutil.IPv4Destination(rframe))
continue continue
@ -208,7 +209,7 @@ func (nc *NetCard) runRead() {
// log.Printf("Payload: % x\n", rframe.Payload()) // 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)) log.Printf("Dst: %s Src %s\n", waterutil.IPv4Destination(rframe), waterutil.IPv4Source(rframe))
var buffer *ExchangeBuffer var buffer *ExchangeBuffer