MCPcopy Create free account
hub / github.com/coreswitch/zebra / Serialize

Method Serialize

bgp/message.go:238–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236}
237
238func (c *CapMultiProtocol) Serialize() ([]byte, error) {
239 c.CapCode = BGP_CAP_MULTIPROTOCOL
240 buf := make([]byte, 4)
241 binary.BigEndian.PutUint32(buf[0:], uint32(c.AfiSafi))
242 c.CapValue = buf
243 return c.CapabilityBase.Serialize()
244}
245
246type CapRouteRefresh struct {
247 CapabilityBase

Callers

nothing calls this directly

Calls 1

SerializeMethod · 0.65

Tested by

no test coverage detected