测试
This commit is contained in:
parent
02f46a1894
commit
c95bce2b8e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user