abbel: print SeqnoRequest

This commit is contained in:
Johannes Kimmel 2023-03-09 10:44:18 +01:00
parent 69e2890ea0
commit 39a56d1dd2
1 changed files with 4 additions and 2 deletions

View File

@ -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)