MCPcopy
hub / github.com/google/gopacket / BFD

Struct BFD

layers/bfd.go:262–281  ·  view source on GitHub ↗

BFD represents a BFD control message packet whose payload contains the control information required to for a BFD session. References ---------- Wikipedia's BFD entry: https://en.wikipedia.org/wiki/Bidirectional_Forwarding_Detection This is the best place to get an overview of BFD. RFC 5880 "Bidir

Source from the content-addressed store, hash-verified

260// Describes the use of the Bidirectional Forwarding Detection (BFD)
261// protocol over IPv4 and IPv6 for single IP hops.
262type BFD struct {
263 BaseLayer // Stores the packet bytes and payload bytes.
264
265 Version BFDVersion // Version of the BFD protocol.
266 Diagnostic BFDDiagnostic // Diagnostic code for last state change
267 State BFDState // Current state
268 Poll bool // Requesting verification
269 Final bool // Responding to a received BFD Control packet that had the Poll (P) bit set.
270 ControlPlaneIndependent bool // BFD implementation does not share fate with its control plane
271 AuthPresent bool // Authentication Section is present and the session is to be authenticated
272 Demand bool // Demand mode is active
273 Multipoint bool // For future point-to-multipoint extensions. Must always be zero
274 DetectMultiplier BFDDetectMultiplier // Detection time multiplier
275 MyDiscriminator BFDDiscriminator // A unique, nonzero discriminator value
276 YourDiscriminator BFDDiscriminator // discriminator received from the remote system.
277 DesiredMinTxInterval BFDTimeInterval // Minimum interval, in microseconds, the local system would like to use when transmitting BFD Control packets
278 RequiredMinRxInterval BFDTimeInterval // Minimum interval, in microseconds, between received BFD Control packets that this system is capable of supporting
279 RequiredMinEchoRxInterval BFDTimeInterval // Minimum interval, in microseconds, between received BFD Echo packets that this system is capable of supporting
280 AuthHeader *BFDAuthHeader // Authentication data, variable length.
281}
282
283// Length returns the data length of a BFD Control message which
284// changes based on the presence and type of authentication

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected