abbel: print SeqnoRequest
This commit is contained in:
parent
69e2890ea0
commit
39a56d1dd2
6
main.go
6
main.go
|
@ -99,7 +99,7 @@ func run(opt options) error {
|
||||||
} else {
|
} else {
|
||||||
fmt.Print("\x1B[36m")
|
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:
|
case tlv.RouterID:
|
||||||
//fmt.Printf("%12s %s\n", t.T(), t)
|
//fmt.Printf("%12s %s\n", t.T(), t)
|
||||||
case tlv.RouteRequest:
|
case tlv.RouteRequest:
|
||||||
|
@ -107,7 +107,9 @@ func run(opt options) error {
|
||||||
case tlv.Raw:
|
case tlv.Raw:
|
||||||
fmt.Printf(" T: %12s (%2d), L: %3d\n", t.T(), t.T(), len(t.V()))
|
fmt.Printf(" T: %12s (%2d), L: %3d\n", t.T(), t.T(), len(t.V()))
|
||||||
case tlv.IHU:
|
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:
|
default:
|
||||||
if t != nil {
|
if t != nil {
|
||||||
fmt.Println("Unknown TLV", t.T(), t)
|
fmt.Println("Unknown TLV", t.T(), t)
|
||||||
|
|
Loading…
Reference in New Issue