diff --git a/main.go b/main.go index 6d5eecf..d722992 100644 --- a/main.go +++ b/main.go @@ -25,7 +25,6 @@ func testmain() { var a chan bool = make(chan bool) go func() { <-a - cmdstr := fmt.Sprintf("ip addr add %s dev stun", config.Network.Self.Virt) log.Println(cmdstr) cmd := strings.Split(cmdstr, " ") @@ -61,8 +60,8 @@ func testmain() { log.Fatal(err) } frame = frame[:n] - log.Printf("Dst: %s\n", waterutil.IPv4Destination(frame)) - log.Printf("Src: %s\n", waterutil.IPv4Source(frame)) + log.Printf("Dst: %s %s\n", waterutil.IPv4Destination(frame), frame.Destination()) + log.Printf("Src: %s %s\n", waterutil.IPv4Source(frame), frame.Source()) log.Printf("Ethertype: % x\n", frame.Ethertype()) // log.Printf("Payload: % x\n", frame.Payload()) }