()
| 236 | } |
| 237 | |
| 238 | func (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 | |
| 246 | type CapRouteRefresh struct { |
| 247 | CapabilityBase |