summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp/helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'packet/bgp/helper.go')
-rw-r--r--packet/bgp/helper.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/packet/bgp/helper.go b/packet/bgp/helper.go
index 5271a70c..34648b2d 100644
--- a/packet/bgp/helper.go
+++ b/packet/bgp/helper.go
@@ -119,13 +119,7 @@ func NewTestBGPUpdateMessage() *BGPMessage {
NewPathAttributeMpUnreachNLRI(prefixes1),
//NewPathAttributeMpReachNLRI("112.22.2.0", []AddrPrefixInterface{}),
//NewPathAttributeMpUnreachNLRI([]AddrPrefixInterface{}),
- &PathAttributeUnknown{
- PathAttribute: PathAttribute{
- Flags: BGP_ATTR_FLAG_TRANSITIVE,
- Type: 100,
- },
- Value: []byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9},
- },
+ NewPathAttributeUnknown(BGP_ATTR_FLAG_TRANSITIVE, 100, []byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}),
}
n := []*IPAddrPrefix{NewIPAddrPrefix(24, "13.2.3.1")}
return NewBGPUpdateMessage(w, p, n)