Documentation
¶
Overview ¶
Package speaker provides a very basic BGP speaker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // seen a message that is too long EVENT_TOO_LONG = "bgpfix/speaker.TOO_LONG" // message parse error EVENT_PARSE_ERROR = "bgpfix/speaker.PARSE_ERROR" // remote hold timer expired // val[0] = nanoseconds till last R message EVENT_PEER_TIMEOUT = "bgpfix/speaker.PEER_TIMEOUT" )
View Source
var DefaultOptions = Options{ Logger: &log.Logger, Passive: true, LocalASN: -1, LocalHoldTime: msg.OPEN_HOLDTIME, RemoteASN: -1, }
Default BGP speaker options
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Logger *zerolog.Logger // if nil logging is disabled NewMsg func() *msg.Msg // optional source of new messages Passive bool // if true, expect the peer to go first with OPEN ErrorDrop bool // drop erronous messages? LocalASN int // local ASN; -1 means use remote (if Passive) LocalHoldTime int // local hold time (s); -1 means use a default LocalId netip.Addr // local identifier; unspecified means use remote-1 (if Passive) LocalCaps caps.Caps // additional local capabilities; set to nil to block a capability RemoteASN int // expected remote ASN; -1 means accept any RemoteHoldTime int // minimum remote hold time (s); <= 0 means any RemoteId netip.Addr // expected remote identifier; unspecified means any RemoteCaps caps.Caps // minimum remote capabilities; set to nil to block a capability }
Options are BGP speaker options, see also DefaultOptions
Click to show internal directories.
Click to hide internal directories.