Skip to content
Snippets Groups Projects
Unverified Commit 934e4a2c authored by Daniel Czerwonk's avatar Daniel Czerwonk Committed by GitHub
Browse files

Merge pull request #52 from bio-routing/feature/rs

Implemented Route Server support
parents d873c951 b54ca9e1
No related branches found
No related tags found
No related merge requests found
package filter package filter
import ( /*func TestNewAcceptAllFilter(t *testing.T) {
"testing"
"github.com/bio-routing/bio-rd/net"
"github.com/bio-routing/bio-rd/route"
)
func TestNewAcceptAllFilter(t *testing.T) {
f := NewAcceptAllFilter() f := NewAcceptAllFilter()
m := &clientMock{} m := &clientMock{}
...@@ -31,4 +24,4 @@ func TestNewDrainFilter(t *testing.T) { ...@@ -31,4 +24,4 @@ func TestNewDrainFilter(t *testing.T) {
if m.addPathCalled { if m.addPathCalled {
t.Fatalf("expected filtered, but was accepted") t.Fatalf("expected filtered, but was accepted")
} }
} }*/
...@@ -5,6 +5,9 @@ type Neighbor struct { ...@@ -5,6 +5,9 @@ type Neighbor struct {
// Addres is the IPv4 address of the neighbor as integer representation // Addres is the IPv4 address of the neighbor as integer representation
Address uint32 Address uint32
// Local address is the local address of the BGP TCP connection
LocalAddress uint32
// Type is the type / protocol used for routing inforation communitation // Type is the type / protocol used for routing inforation communitation
Type uint8 Type uint8
...@@ -13,4 +16,10 @@ type Neighbor struct { ...@@ -13,4 +16,10 @@ type Neighbor struct {
// Local ASN of session // Local ASN of session
LocalASN uint32 LocalASN uint32
// Peer is a route server client
RouteServerClient bool
// CapAddPathRX indicates if the peer supports receiving multiple BGP paths
CapAddPathRX bool
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment