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