summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packet/bgp.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/packet/bgp.go b/packet/bgp.go
index f7427973..c9ca21a4 100644
--- a/packet/bgp.go
+++ b/packet/bgp.go
@@ -1305,7 +1305,10 @@ func (p *PathAttributeAsPath) MarshalJSON() ([]byte, error) {
if y {
aslist = append(aslist, path.AS...)
} else {
- // TODO aspathparam
+ path := a.(*AsPathParam)
+ for _, v := range path.AS {
+ aslist = append(aslist, uint32(v))
+ }
}
}
return json.Marshal(struct {