From bc3e06a55fbebd391525d8ce13f84e59cfe8060e Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Fri, 16 Jun 2017 09:19:58 +0900 Subject: config: TTL value for BGP packets Signed-off-by: IWASE Yusuke --- config/bgp_configs.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config') diff --git a/config/bgp_configs.go b/config/bgp_configs.go index a76708b6..f170e97c 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -2073,6 +2073,8 @@ type TransportConfig struct { // original -> gobgp:remote-port //gobgp:remote-port's original type is inet:port-number RemotePort uint16 `mapstructure:"remote-port" json:"remote-port,omitempty"` + // original -> gobgp:ttl + Ttl uint8 `mapstructure:"ttl" json:"ttl,omitempty"` } func (lhs *TransportConfig) Equal(rhs *TransportConfig) bool { @@ -2094,6 +2096,9 @@ func (lhs *TransportConfig) Equal(rhs *TransportConfig) bool { if lhs.RemotePort != rhs.RemotePort { return false } + if lhs.Ttl != rhs.Ttl { + return false + } return true } -- cgit v1.2.3