From 9a35a15897725926da30551b2300b03b68422757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=80=9D=E6=95=8F?= Date: Mon, 29 Aug 2022 09:15:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index ba1d5eb..7b6d867 100644 --- a/main.go +++ b/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())