summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-06 23:28:15 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-06 23:28:15 +0900
commit5f7404c9a8fbb74a9942f27d1564223b694f72b3 (patch)
treee5fef44c0ff0d1428c19d167cdf79320497334fc /packet/bgp.go
parentedf0ca14a493b4e01bbb4279c1d282a20b2d4da5 (diff)
packet: set optional bit in AS4_PATH
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp.go')
-rw-r--r--packet/bgp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp.go b/packet/bgp.go
index c9ca21a4..26bdd6a6 100644
--- a/packet/bgp.go
+++ b/packet/bgp.go
@@ -1945,7 +1945,7 @@ func (p *PathAttributeAs4Path) Serialize() ([]byte, error) {
func NewPathAttributeAs4Path(value []*As4PathParam) *PathAttributeAs4Path {
return &PathAttributeAs4Path{
PathAttribute: PathAttribute{
- Flags: BGP_ATTR_FLAG_TRANSITIVE,
+ Flags: BGP_ATTR_FLAG_OPTIONAL | BGP_ATTR_FLAG_TRANSITIVE,
Type: BGP_ATTR_TYPE_AS4_PATH,
},
Value: value,