测试
This commit is contained in:
parent
b896363b34
commit
9a35a15897
5
main.go
5
main.go
|
@ -9,7 +9,6 @@ import (
|
|||
|
||||
"github.com/songgao/packets/ethernet"
|
||||
"github.com/songgao/water"
|
||||
"github.com/songgao/water/waterutil"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -68,8 +67,8 @@ func testmain() {
|
|||
log.Fatal(err)
|
||||
}
|
||||
frame = frame[:n]
|
||||
log.Printf("Dst: %s %s\n", waterutil.IPv4Destination(frame), frame.Destination())
|
||||
log.Printf("Src: %s %s\n", waterutil.IPv4Source(frame), frame.Source())
|
||||
|
||||
log.Printf("Dst: %s Src: %s\n", frame.Destination(), frame.Source())
|
||||
log.Printf("Ethertype: % x\n", frame.Ethertype())
|
||||
// log.Printf("Payload: % x\n", frame.Payload())
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user