summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp.go
diff options
context:
space:
mode:
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,