MCPcopy Create free account
hub / github.com/google/gopacket / Length

Method Length

layers/bfd.go:286–292  ·  view source on GitHub ↗

Length returns the data length of a BFD Control message which changes based on the presence and type of authentication contained in the message

()

Source from the content-addressed store, hash-verified

284// changes based on the presence and type of authentication
285// contained in the message
286func (d *BFD) Length() int {
287 if d.AuthPresent && (d.AuthHeader != nil) {
288 return bfdMinimumRecordSizeInBytes + d.AuthHeader.Length()
289 }
290
291 return bfdMinimumRecordSizeInBytes
292}
293
294// LayerType returns the layer type of the BFD object, which is LayerTypeBFD.
295func (d *BFD) LayerType() gopacket.LayerType {

Callers 1

SerializeToMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected