mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2025-08-12 06:26:39 +00:00
v4 mpls实装显示
This commit is contained in:
@@ -108,4 +108,8 @@ func applyLangSetting(h *trace.Hop) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(h.MPLS) > 1 {
|
||||
h.Hostname += " [MPLS: " + h.MPLS + "]"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +47,10 @@ func HopPrinter(h trace.Hop, info HopInfo) {
|
||||
if h.Geo != nil {
|
||||
txt += " " + formatIpGeoData(h.Address.String(), h.Geo)
|
||||
}
|
||||
|
||||
if len(h.MPLS) > 1 {
|
||||
txt += " [MPLS: " + h.MPLS + "]"
|
||||
}
|
||||
switch info {
|
||||
case IXP:
|
||||
fmt.Print(CYAN_PREFIX)
|
||||
|
||||
Reference in New Issue
Block a user