abbel: print SeqnoRequest
This commit is contained in:
parent
69e2890ea0
commit
39a56d1dd2
4
main.go
4
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:
|
||||
|
@ -108,6 +108,8 @@ func run(opt options) error {
|
|||
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)
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue