summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packet/bgp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp.go b/packet/bgp.go
index 9928ecce..1c6c883a 100644
--- a/packet/bgp.go
+++ b/packet/bgp.go
@@ -1587,7 +1587,7 @@ func (p *PathAttributeCommunities) MarshalJSON() ([]byte, error) {
if found {
l[i] = s
} else {
- l[i] = fmt.Sprintf("%x:%x", (v&0xffff0000)>>16, v&0xffff)
+ l[i] = fmt.Sprintf("%d:%d", (v&0xffff0000)>>16, v&0xffff)
}
}