diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-06-28 18:59:29 +0300 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2021-06-30 10:55:06 +0900 |
commit | c114e04958bf6f303395547a79fbee33a29c8a64 (patch) | |
tree | 38929102cea46e6fe670653ce2d804d7a3d29fab /internal/pkg/config | |
parent | 35ec732d85890c9039192ffa38943135d12b7bcb (diff) |
Handle ttl-security option correctly
It wasn't configurable at all.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'internal/pkg/config')
-rw-r--r-- | internal/pkg/config/util.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/pkg/config/util.go b/internal/pkg/config/util.go index e895d8de..00ddb2ba 100644 --- a/internal/pkg/config/util.go +++ b/internal/pkg/config/util.go @@ -512,6 +512,10 @@ func NewPeerFromConfigStruct(pconf *Neighbor) *api.Peer { Enabled: pconf.EbgpMultihop.Config.Enabled, MultihopTtl: uint32(pconf.EbgpMultihop.Config.MultihopTtl), }, + TtlSecurity: &api.TtlSecurity{ + Enabled: pconf.TtlSecurity.Config.Enabled, + TtlMin: uint32(pconf.TtlSecurity.Config.TtlMin), + }, Timers: &api.Timers{ Config: &api.TimersConfig{ ConnectRetry: uint64(timer.Config.ConnectRetry), @@ -586,6 +590,10 @@ func NewPeerGroupFromConfigStruct(pconf *PeerGroup) *api.PeerGroup { Enabled: pconf.EbgpMultihop.Config.Enabled, MultihopTtl: uint32(pconf.EbgpMultihop.Config.MultihopTtl), }, + TtlSecurity: &api.TtlSecurity{ + Enabled: pconf.TtlSecurity.Config.Enabled, + TtlMin: uint32(pconf.TtlSecurity.Config.TtlMin), + }, Timers: &api.Timers{ Config: &api.TimersConfig{ ConnectRetry: uint64(timer.Config.ConnectRetry), |