Skip to content
Snippets Groups Projects
Commit 7fe22926 authored by Daniel Czerwonk's avatar Daniel Czerwonk
Browse files

removed 32bit check

parent 3becaf75
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,6 @@ import ( ...@@ -14,7 +14,6 @@ import (
) )
const ( const (
uint16max = 65535
BGPVersion = 4 BGPVersion = 4
) )
...@@ -114,10 +113,6 @@ func (b *bgpServer) incomingConnectionWorker() { ...@@ -114,10 +113,6 @@ func (b *bgpServer) incomingConnectionWorker() {
} }
func (b *bgpServer) AddPeer(c config.Peer, rib routingtable.RouteTableClient) error { func (b *bgpServer) AddPeer(c config.Peer, rib routingtable.RouteTableClient) error {
if c.LocalAS > uint16max || c.PeerAS > uint16max {
return fmt.Errorf("32bit ASNs are not supported yet")
}
peer, err := newPeer(c, rib, b) peer, err := newPeer(c, rib, b)
if err != nil { if err != nil {
return err return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment