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

removed 32bit check

parent 3becaf75
Branches
Tags
No related merge requests found
......@@ -14,7 +14,6 @@ import (
)
const (
uint16max = 65535
BGPVersion = 4
)
......@@ -114,10 +113,6 @@ func (b *bgpServer) incomingConnectionWorker() {
}
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)
if err != nil {
return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment