From 39a56d1dd2b86f6dfee9920b185bac76e0f5e855 Mon Sep 17 00:00:00 2001 From: Johannes Kimmel Date: Thu, 9 Mar 2023 10:44:18 +0100 Subject: [PATCH] abbel: print SeqnoRequest --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 6ebdcfd..3288a9d 100644 --- a/main.go +++ b/main.go @@ -99,7 +99,7 @@ func run(opt options) error { } else { fmt.Print("\x1B[36m") } - fmt.Printf("% 12s %-43s%+d %s\x1B[0m\n", t.T(), t.Prefix, diff, t.FormatHeader()) + fmt.Printf("% 12s %-43s%+6d %s\x1B[0m\n", t.T(), t.Prefix, diff, t.FormatHeader()) case tlv.RouterID: //fmt.Printf("%12s %s\n", t.T(), t) case tlv.RouteRequest: @@ -107,7 +107,9 @@ func run(opt options) error { case tlv.Raw: fmt.Printf(" T: %12s (%2d), L: %3d\n", t.T(), t.T(), len(t.V())) case tlv.IHU: - fmt.Printf("%12s %-43sRxcost %5d Interval %4d \n", t.T(), t.Address, t.Rxcost, t.Interval) + fmt.Printf("%12s %-43sRxcost %5d Interval %4d\n", t.T(), t.Address, t.Rxcost, t.Interval) + case tlv.SeqnoRequest: + fmt.Printf("%12s %-43sSeqno %5d HopCount %3d RouterID %s\n", t.T(), t.Prefix, t.Seqno, t.HopCount, t.RouterID) default: if t != nil { fmt.Println("Unknown TLV", t.T(), t)