diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-26 00:08:01 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-26 00:08:01 -0800 |
commit | f5447b5599060a60acbf61ab7310807d85799628 (patch) | |
tree | 6bace29e3ef49563211ea3261f7cd086e3c4012d /packet/bgp.go | |
parent | bfc0cd8da13bcc221e19717d37d9b7e5414e16c3 (diff) |
packet: improve PathAttributeCommunities JSON output again
use decimal.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp.go')
-rw-r--r-- | packet/bgp.go | 2 |
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) } } |