github.com/networkservicemesh/govpp@v0.0.0-20240328101142-8a444680fbba/binapi/bfd/bfd.ba.go (about) 1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT. 2 // versions: 3 // binapi-generator: v0.10.0-dev 4 // VPP: 23.10-rc0~170-g6f1548434 5 // source: core/bfd.api.json 6 7 // Package bfd contains generated bindings for API file bfd.api. 8 // 9 // Contents: 10 // - 1 enum 11 // - 31 messages 12 package bfd 13 14 import ( 15 "strconv" 16 17 interface_types "github.com/networkservicemesh/govpp/binapi/interface_types" 18 ip_types "github.com/networkservicemesh/govpp/binapi/ip_types" 19 api "go.fd.io/govpp/api" 20 codec "go.fd.io/govpp/codec" 21 ) 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the GoVPP api package it is being compiled against. 25 // A compilation error at this line likely means your copy of the 26 // GoVPP api package needs to be updated. 27 const _ = api.GoVppAPIPackageIsVersion2 28 29 const ( 30 APIFile = "bfd" 31 APIVersion = "2.0.0" 32 VersionCrc = 0xe65443a6 33 ) 34 35 // BfdState defines enum 'bfd_state'. 36 type BfdState uint32 37 38 const ( 39 BFD_STATE_API_ADMIN_DOWN BfdState = 0 40 BFD_STATE_API_DOWN BfdState = 1 41 BFD_STATE_API_INIT BfdState = 2 42 BFD_STATE_API_UP BfdState = 3 43 ) 44 45 var ( 46 BfdState_name = map[uint32]string{ 47 0: "BFD_STATE_API_ADMIN_DOWN", 48 1: "BFD_STATE_API_DOWN", 49 2: "BFD_STATE_API_INIT", 50 3: "BFD_STATE_API_UP", 51 } 52 BfdState_value = map[string]uint32{ 53 "BFD_STATE_API_ADMIN_DOWN": 0, 54 "BFD_STATE_API_DOWN": 1, 55 "BFD_STATE_API_INIT": 2, 56 "BFD_STATE_API_UP": 3, 57 } 58 ) 59 60 func (x BfdState) String() string { 61 s, ok := BfdState_name[uint32(x)] 62 if ok { 63 return s 64 } 65 return "BfdState(" + strconv.Itoa(int(x)) + ")" 66 } 67 68 // BFD UDP - delete key from configuration 69 // - conf_key_id - key ID to add/replace/delete 70 // - key_len - length of key (must be non-zero) 71 // - key - key data 72 // 73 // BfdAuthDelKey defines message 'bfd_auth_del_key'. 74 type BfdAuthDelKey struct { 75 ConfKeyID uint32 `binapi:"u32,name=conf_key_id" json:"conf_key_id,omitempty"` 76 } 77 78 func (m *BfdAuthDelKey) Reset() { *m = BfdAuthDelKey{} } 79 func (*BfdAuthDelKey) GetMessageName() string { return "bfd_auth_del_key" } 80 func (*BfdAuthDelKey) GetCrcString() string { return "65310b22" } 81 func (*BfdAuthDelKey) GetMessageType() api.MessageType { 82 return api.RequestMessage 83 } 84 85 func (m *BfdAuthDelKey) Size() (size int) { 86 if m == nil { 87 return 0 88 } 89 size += 4 // m.ConfKeyID 90 return size 91 } 92 func (m *BfdAuthDelKey) Marshal(b []byte) ([]byte, error) { 93 if b == nil { 94 b = make([]byte, m.Size()) 95 } 96 buf := codec.NewBuffer(b) 97 buf.EncodeUint32(m.ConfKeyID) 98 return buf.Bytes(), nil 99 } 100 func (m *BfdAuthDelKey) Unmarshal(b []byte) error { 101 buf := codec.NewBuffer(b) 102 m.ConfKeyID = buf.DecodeUint32() 103 return nil 104 } 105 106 // BfdAuthDelKeyReply defines message 'bfd_auth_del_key_reply'. 107 type BfdAuthDelKeyReply struct { 108 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 109 } 110 111 func (m *BfdAuthDelKeyReply) Reset() { *m = BfdAuthDelKeyReply{} } 112 func (*BfdAuthDelKeyReply) GetMessageName() string { return "bfd_auth_del_key_reply" } 113 func (*BfdAuthDelKeyReply) GetCrcString() string { return "e8d4e804" } 114 func (*BfdAuthDelKeyReply) GetMessageType() api.MessageType { 115 return api.ReplyMessage 116 } 117 118 func (m *BfdAuthDelKeyReply) Size() (size int) { 119 if m == nil { 120 return 0 121 } 122 size += 4 // m.Retval 123 return size 124 } 125 func (m *BfdAuthDelKeyReply) Marshal(b []byte) ([]byte, error) { 126 if b == nil { 127 b = make([]byte, m.Size()) 128 } 129 buf := codec.NewBuffer(b) 130 buf.EncodeInt32(m.Retval) 131 return buf.Bytes(), nil 132 } 133 func (m *BfdAuthDelKeyReply) Unmarshal(b []byte) error { 134 buf := codec.NewBuffer(b) 135 m.Retval = buf.DecodeInt32() 136 return nil 137 } 138 139 // BFD authentication key details 140 // - conf_key_id - configured key ID 141 // - use_count - how many BFD sessions currently use this key 142 // - auth_type - authentication type (RFC 5880/4.1/Auth Type) 143 // 144 // BfdAuthKeysDetails defines message 'bfd_auth_keys_details'. 145 type BfdAuthKeysDetails struct { 146 ConfKeyID uint32 `binapi:"u32,name=conf_key_id" json:"conf_key_id,omitempty"` 147 UseCount uint32 `binapi:"u32,name=use_count" json:"use_count,omitempty"` 148 AuthType uint8 `binapi:"u8,name=auth_type" json:"auth_type,omitempty"` 149 } 150 151 func (m *BfdAuthKeysDetails) Reset() { *m = BfdAuthKeysDetails{} } 152 func (*BfdAuthKeysDetails) GetMessageName() string { return "bfd_auth_keys_details" } 153 func (*BfdAuthKeysDetails) GetCrcString() string { return "84130e9f" } 154 func (*BfdAuthKeysDetails) GetMessageType() api.MessageType { 155 return api.ReplyMessage 156 } 157 158 func (m *BfdAuthKeysDetails) Size() (size int) { 159 if m == nil { 160 return 0 161 } 162 size += 4 // m.ConfKeyID 163 size += 4 // m.UseCount 164 size += 1 // m.AuthType 165 return size 166 } 167 func (m *BfdAuthKeysDetails) Marshal(b []byte) ([]byte, error) { 168 if b == nil { 169 b = make([]byte, m.Size()) 170 } 171 buf := codec.NewBuffer(b) 172 buf.EncodeUint32(m.ConfKeyID) 173 buf.EncodeUint32(m.UseCount) 174 buf.EncodeUint8(m.AuthType) 175 return buf.Bytes(), nil 176 } 177 func (m *BfdAuthKeysDetails) Unmarshal(b []byte) error { 178 buf := codec.NewBuffer(b) 179 m.ConfKeyID = buf.DecodeUint32() 180 m.UseCount = buf.DecodeUint32() 181 m.AuthType = buf.DecodeUint8() 182 return nil 183 } 184 185 // Get a list of configured authentication keys 186 // BfdAuthKeysDump defines message 'bfd_auth_keys_dump'. 187 type BfdAuthKeysDump struct{} 188 189 func (m *BfdAuthKeysDump) Reset() { *m = BfdAuthKeysDump{} } 190 func (*BfdAuthKeysDump) GetMessageName() string { return "bfd_auth_keys_dump" } 191 func (*BfdAuthKeysDump) GetCrcString() string { return "51077d14" } 192 func (*BfdAuthKeysDump) GetMessageType() api.MessageType { 193 return api.RequestMessage 194 } 195 196 func (m *BfdAuthKeysDump) Size() (size int) { 197 if m == nil { 198 return 0 199 } 200 return size 201 } 202 func (m *BfdAuthKeysDump) Marshal(b []byte) ([]byte, error) { 203 if b == nil { 204 b = make([]byte, m.Size()) 205 } 206 buf := codec.NewBuffer(b) 207 return buf.Bytes(), nil 208 } 209 func (m *BfdAuthKeysDump) Unmarshal(b []byte) error { 210 return nil 211 } 212 213 // BFD UDP - add/replace key to configuration 214 // - conf_key_id - key ID to add/replace/delete 215 // - key_len - length of key (must be non-zero) 216 // - auth_type - authentication type (RFC 5880/4.1/Auth Type) 217 // - key - key data 218 // 219 // BfdAuthSetKey defines message 'bfd_auth_set_key'. 220 type BfdAuthSetKey struct { 221 ConfKeyID uint32 `binapi:"u32,name=conf_key_id" json:"conf_key_id,omitempty"` 222 KeyLen uint8 `binapi:"u8,name=key_len" json:"key_len,omitempty"` 223 AuthType uint8 `binapi:"u8,name=auth_type" json:"auth_type,omitempty"` 224 Key []byte `binapi:"u8[20],name=key" json:"key,omitempty"` 225 } 226 227 func (m *BfdAuthSetKey) Reset() { *m = BfdAuthSetKey{} } 228 func (*BfdAuthSetKey) GetMessageName() string { return "bfd_auth_set_key" } 229 func (*BfdAuthSetKey) GetCrcString() string { return "690b8877" } 230 func (*BfdAuthSetKey) GetMessageType() api.MessageType { 231 return api.RequestMessage 232 } 233 234 func (m *BfdAuthSetKey) Size() (size int) { 235 if m == nil { 236 return 0 237 } 238 size += 4 // m.ConfKeyID 239 size += 1 // m.KeyLen 240 size += 1 // m.AuthType 241 size += 1 * 20 // m.Key 242 return size 243 } 244 func (m *BfdAuthSetKey) Marshal(b []byte) ([]byte, error) { 245 if b == nil { 246 b = make([]byte, m.Size()) 247 } 248 buf := codec.NewBuffer(b) 249 buf.EncodeUint32(m.ConfKeyID) 250 buf.EncodeUint8(m.KeyLen) 251 buf.EncodeUint8(m.AuthType) 252 buf.EncodeBytes(m.Key, 20) 253 return buf.Bytes(), nil 254 } 255 func (m *BfdAuthSetKey) Unmarshal(b []byte) error { 256 buf := codec.NewBuffer(b) 257 m.ConfKeyID = buf.DecodeUint32() 258 m.KeyLen = buf.DecodeUint8() 259 m.AuthType = buf.DecodeUint8() 260 m.Key = make([]byte, 20) 261 copy(m.Key, buf.DecodeBytes(len(m.Key))) 262 return nil 263 } 264 265 // BfdAuthSetKeyReply defines message 'bfd_auth_set_key_reply'. 266 type BfdAuthSetKeyReply struct { 267 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 268 } 269 270 func (m *BfdAuthSetKeyReply) Reset() { *m = BfdAuthSetKeyReply{} } 271 func (*BfdAuthSetKeyReply) GetMessageName() string { return "bfd_auth_set_key_reply" } 272 func (*BfdAuthSetKeyReply) GetCrcString() string { return "e8d4e804" } 273 func (*BfdAuthSetKeyReply) GetMessageType() api.MessageType { 274 return api.ReplyMessage 275 } 276 277 func (m *BfdAuthSetKeyReply) Size() (size int) { 278 if m == nil { 279 return 0 280 } 281 size += 4 // m.Retval 282 return size 283 } 284 func (m *BfdAuthSetKeyReply) Marshal(b []byte) ([]byte, error) { 285 if b == nil { 286 b = make([]byte, m.Size()) 287 } 288 buf := codec.NewBuffer(b) 289 buf.EncodeInt32(m.Retval) 290 return buf.Bytes(), nil 291 } 292 func (m *BfdAuthSetKeyReply) Unmarshal(b []byte) error { 293 buf := codec.NewBuffer(b) 294 m.Retval = buf.DecodeInt32() 295 return nil 296 } 297 298 // Add UDP BFD session on interface 299 // - sw_if_index - sw index of the interface 300 // - desired_min_tx - desired min transmit interval (microseconds) 301 // - required_min_rx - required min receive interval (microseconds) 302 // - local_addr - local address 303 // - peer_addr - peer address 304 // - is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 305 // - detect_mult - detect multiplier (# of packets missed before connection goes down) 306 // - is_authenticated - non-zero if authentication is required 307 // - bfd_key_id - key id sent out in BFD packets (if is_authenticated) 308 // - conf_key_id - id of already configured key (if is_authenticated) 309 // 310 // BfdUDPAdd defines message 'bfd_udp_add'. 311 type BfdUDPAdd struct { 312 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 313 DesiredMinTx uint32 `binapi:"u32,name=desired_min_tx" json:"desired_min_tx,omitempty"` 314 RequiredMinRx uint32 `binapi:"u32,name=required_min_rx" json:"required_min_rx,omitempty"` 315 LocalAddr ip_types.Address `binapi:"address,name=local_addr" json:"local_addr,omitempty"` 316 PeerAddr ip_types.Address `binapi:"address,name=peer_addr" json:"peer_addr,omitempty"` 317 DetectMult uint8 `binapi:"u8,name=detect_mult" json:"detect_mult,omitempty"` 318 IsAuthenticated bool `binapi:"bool,name=is_authenticated" json:"is_authenticated,omitempty"` 319 BfdKeyID uint8 `binapi:"u8,name=bfd_key_id" json:"bfd_key_id,omitempty"` 320 ConfKeyID uint32 `binapi:"u32,name=conf_key_id" json:"conf_key_id,omitempty"` 321 } 322 323 func (m *BfdUDPAdd) Reset() { *m = BfdUDPAdd{} } 324 func (*BfdUDPAdd) GetMessageName() string { return "bfd_udp_add" } 325 func (*BfdUDPAdd) GetCrcString() string { return "939cd26a" } 326 func (*BfdUDPAdd) GetMessageType() api.MessageType { 327 return api.RequestMessage 328 } 329 330 func (m *BfdUDPAdd) Size() (size int) { 331 if m == nil { 332 return 0 333 } 334 size += 4 // m.SwIfIndex 335 size += 4 // m.DesiredMinTx 336 size += 4 // m.RequiredMinRx 337 size += 1 // m.LocalAddr.Af 338 size += 1 * 16 // m.LocalAddr.Un 339 size += 1 // m.PeerAddr.Af 340 size += 1 * 16 // m.PeerAddr.Un 341 size += 1 // m.DetectMult 342 size += 1 // m.IsAuthenticated 343 size += 1 // m.BfdKeyID 344 size += 4 // m.ConfKeyID 345 return size 346 } 347 func (m *BfdUDPAdd) Marshal(b []byte) ([]byte, error) { 348 if b == nil { 349 b = make([]byte, m.Size()) 350 } 351 buf := codec.NewBuffer(b) 352 buf.EncodeUint32(uint32(m.SwIfIndex)) 353 buf.EncodeUint32(m.DesiredMinTx) 354 buf.EncodeUint32(m.RequiredMinRx) 355 buf.EncodeUint8(uint8(m.LocalAddr.Af)) 356 buf.EncodeBytes(m.LocalAddr.Un.XXX_UnionData[:], 16) 357 buf.EncodeUint8(uint8(m.PeerAddr.Af)) 358 buf.EncodeBytes(m.PeerAddr.Un.XXX_UnionData[:], 16) 359 buf.EncodeUint8(m.DetectMult) 360 buf.EncodeBool(m.IsAuthenticated) 361 buf.EncodeUint8(m.BfdKeyID) 362 buf.EncodeUint32(m.ConfKeyID) 363 return buf.Bytes(), nil 364 } 365 func (m *BfdUDPAdd) Unmarshal(b []byte) error { 366 buf := codec.NewBuffer(b) 367 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 368 m.DesiredMinTx = buf.DecodeUint32() 369 m.RequiredMinRx = buf.DecodeUint32() 370 m.LocalAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 371 copy(m.LocalAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 372 m.PeerAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 373 copy(m.PeerAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 374 m.DetectMult = buf.DecodeUint8() 375 m.IsAuthenticated = buf.DecodeBool() 376 m.BfdKeyID = buf.DecodeUint8() 377 m.ConfKeyID = buf.DecodeUint32() 378 return nil 379 } 380 381 // BfdUDPAddReply defines message 'bfd_udp_add_reply'. 382 type BfdUDPAddReply struct { 383 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 384 } 385 386 func (m *BfdUDPAddReply) Reset() { *m = BfdUDPAddReply{} } 387 func (*BfdUDPAddReply) GetMessageName() string { return "bfd_udp_add_reply" } 388 func (*BfdUDPAddReply) GetCrcString() string { return "e8d4e804" } 389 func (*BfdUDPAddReply) GetMessageType() api.MessageType { 390 return api.ReplyMessage 391 } 392 393 func (m *BfdUDPAddReply) Size() (size int) { 394 if m == nil { 395 return 0 396 } 397 size += 4 // m.Retval 398 return size 399 } 400 func (m *BfdUDPAddReply) Marshal(b []byte) ([]byte, error) { 401 if b == nil { 402 b = make([]byte, m.Size()) 403 } 404 buf := codec.NewBuffer(b) 405 buf.EncodeInt32(m.Retval) 406 return buf.Bytes(), nil 407 } 408 func (m *BfdUDPAddReply) Unmarshal(b []byte) error { 409 buf := codec.NewBuffer(b) 410 m.Retval = buf.DecodeInt32() 411 return nil 412 } 413 414 // BFD UDP - activate/change authentication 415 // - sw_if_index - sw index of the interface 416 // - local_addr - local address 417 // - peer_addr - peer address 418 // - is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 419 // - is_delayed - change is applied once peer applies the change (on first received packet with this auth) 420 // - bfd_key_id - key id sent out in BFD packets 421 // - conf_key_id - id of already configured key 422 // 423 // BfdUDPAuthActivate defines message 'bfd_udp_auth_activate'. 424 type BfdUDPAuthActivate struct { 425 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 426 LocalAddr ip_types.Address `binapi:"address,name=local_addr" json:"local_addr,omitempty"` 427 PeerAddr ip_types.Address `binapi:"address,name=peer_addr" json:"peer_addr,omitempty"` 428 IsDelayed bool `binapi:"bool,name=is_delayed" json:"is_delayed,omitempty"` 429 BfdKeyID uint8 `binapi:"u8,name=bfd_key_id" json:"bfd_key_id,omitempty"` 430 ConfKeyID uint32 `binapi:"u32,name=conf_key_id" json:"conf_key_id,omitempty"` 431 } 432 433 func (m *BfdUDPAuthActivate) Reset() { *m = BfdUDPAuthActivate{} } 434 func (*BfdUDPAuthActivate) GetMessageName() string { return "bfd_udp_auth_activate" } 435 func (*BfdUDPAuthActivate) GetCrcString() string { return "21fd1bdb" } 436 func (*BfdUDPAuthActivate) GetMessageType() api.MessageType { 437 return api.RequestMessage 438 } 439 440 func (m *BfdUDPAuthActivate) Size() (size int) { 441 if m == nil { 442 return 0 443 } 444 size += 4 // m.SwIfIndex 445 size += 1 // m.LocalAddr.Af 446 size += 1 * 16 // m.LocalAddr.Un 447 size += 1 // m.PeerAddr.Af 448 size += 1 * 16 // m.PeerAddr.Un 449 size += 1 // m.IsDelayed 450 size += 1 // m.BfdKeyID 451 size += 4 // m.ConfKeyID 452 return size 453 } 454 func (m *BfdUDPAuthActivate) Marshal(b []byte) ([]byte, error) { 455 if b == nil { 456 b = make([]byte, m.Size()) 457 } 458 buf := codec.NewBuffer(b) 459 buf.EncodeUint32(uint32(m.SwIfIndex)) 460 buf.EncodeUint8(uint8(m.LocalAddr.Af)) 461 buf.EncodeBytes(m.LocalAddr.Un.XXX_UnionData[:], 16) 462 buf.EncodeUint8(uint8(m.PeerAddr.Af)) 463 buf.EncodeBytes(m.PeerAddr.Un.XXX_UnionData[:], 16) 464 buf.EncodeBool(m.IsDelayed) 465 buf.EncodeUint8(m.BfdKeyID) 466 buf.EncodeUint32(m.ConfKeyID) 467 return buf.Bytes(), nil 468 } 469 func (m *BfdUDPAuthActivate) Unmarshal(b []byte) error { 470 buf := codec.NewBuffer(b) 471 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 472 m.LocalAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 473 copy(m.LocalAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 474 m.PeerAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 475 copy(m.PeerAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 476 m.IsDelayed = buf.DecodeBool() 477 m.BfdKeyID = buf.DecodeUint8() 478 m.ConfKeyID = buf.DecodeUint32() 479 return nil 480 } 481 482 // BfdUDPAuthActivateReply defines message 'bfd_udp_auth_activate_reply'. 483 type BfdUDPAuthActivateReply struct { 484 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 485 } 486 487 func (m *BfdUDPAuthActivateReply) Reset() { *m = BfdUDPAuthActivateReply{} } 488 func (*BfdUDPAuthActivateReply) GetMessageName() string { return "bfd_udp_auth_activate_reply" } 489 func (*BfdUDPAuthActivateReply) GetCrcString() string { return "e8d4e804" } 490 func (*BfdUDPAuthActivateReply) GetMessageType() api.MessageType { 491 return api.ReplyMessage 492 } 493 494 func (m *BfdUDPAuthActivateReply) Size() (size int) { 495 if m == nil { 496 return 0 497 } 498 size += 4 // m.Retval 499 return size 500 } 501 func (m *BfdUDPAuthActivateReply) Marshal(b []byte) ([]byte, error) { 502 if b == nil { 503 b = make([]byte, m.Size()) 504 } 505 buf := codec.NewBuffer(b) 506 buf.EncodeInt32(m.Retval) 507 return buf.Bytes(), nil 508 } 509 func (m *BfdUDPAuthActivateReply) Unmarshal(b []byte) error { 510 buf := codec.NewBuffer(b) 511 m.Retval = buf.DecodeInt32() 512 return nil 513 } 514 515 // BFD UDP - deactivate authentication 516 // - sw_if_index - sw index of the interface 517 // - local_addr - local address 518 // - peer_addr - peer address 519 // - is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 520 // - is_delayed - change is applied once peer applies the change (on first received non-authenticated packet) 521 // 522 // BfdUDPAuthDeactivate defines message 'bfd_udp_auth_deactivate'. 523 type BfdUDPAuthDeactivate struct { 524 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 525 LocalAddr ip_types.Address `binapi:"address,name=local_addr" json:"local_addr,omitempty"` 526 PeerAddr ip_types.Address `binapi:"address,name=peer_addr" json:"peer_addr,omitempty"` 527 IsDelayed bool `binapi:"bool,name=is_delayed" json:"is_delayed,omitempty"` 528 } 529 530 func (m *BfdUDPAuthDeactivate) Reset() { *m = BfdUDPAuthDeactivate{} } 531 func (*BfdUDPAuthDeactivate) GetMessageName() string { return "bfd_udp_auth_deactivate" } 532 func (*BfdUDPAuthDeactivate) GetCrcString() string { return "9a05e2e0" } 533 func (*BfdUDPAuthDeactivate) GetMessageType() api.MessageType { 534 return api.RequestMessage 535 } 536 537 func (m *BfdUDPAuthDeactivate) Size() (size int) { 538 if m == nil { 539 return 0 540 } 541 size += 4 // m.SwIfIndex 542 size += 1 // m.LocalAddr.Af 543 size += 1 * 16 // m.LocalAddr.Un 544 size += 1 // m.PeerAddr.Af 545 size += 1 * 16 // m.PeerAddr.Un 546 size += 1 // m.IsDelayed 547 return size 548 } 549 func (m *BfdUDPAuthDeactivate) Marshal(b []byte) ([]byte, error) { 550 if b == nil { 551 b = make([]byte, m.Size()) 552 } 553 buf := codec.NewBuffer(b) 554 buf.EncodeUint32(uint32(m.SwIfIndex)) 555 buf.EncodeUint8(uint8(m.LocalAddr.Af)) 556 buf.EncodeBytes(m.LocalAddr.Un.XXX_UnionData[:], 16) 557 buf.EncodeUint8(uint8(m.PeerAddr.Af)) 558 buf.EncodeBytes(m.PeerAddr.Un.XXX_UnionData[:], 16) 559 buf.EncodeBool(m.IsDelayed) 560 return buf.Bytes(), nil 561 } 562 func (m *BfdUDPAuthDeactivate) Unmarshal(b []byte) error { 563 buf := codec.NewBuffer(b) 564 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 565 m.LocalAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 566 copy(m.LocalAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 567 m.PeerAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 568 copy(m.PeerAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 569 m.IsDelayed = buf.DecodeBool() 570 return nil 571 } 572 573 // BfdUDPAuthDeactivateReply defines message 'bfd_udp_auth_deactivate_reply'. 574 type BfdUDPAuthDeactivateReply struct { 575 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 576 } 577 578 func (m *BfdUDPAuthDeactivateReply) Reset() { *m = BfdUDPAuthDeactivateReply{} } 579 func (*BfdUDPAuthDeactivateReply) GetMessageName() string { return "bfd_udp_auth_deactivate_reply" } 580 func (*BfdUDPAuthDeactivateReply) GetCrcString() string { return "e8d4e804" } 581 func (*BfdUDPAuthDeactivateReply) GetMessageType() api.MessageType { 582 return api.ReplyMessage 583 } 584 585 func (m *BfdUDPAuthDeactivateReply) Size() (size int) { 586 if m == nil { 587 return 0 588 } 589 size += 4 // m.Retval 590 return size 591 } 592 func (m *BfdUDPAuthDeactivateReply) Marshal(b []byte) ([]byte, error) { 593 if b == nil { 594 b = make([]byte, m.Size()) 595 } 596 buf := codec.NewBuffer(b) 597 buf.EncodeInt32(m.Retval) 598 return buf.Bytes(), nil 599 } 600 func (m *BfdUDPAuthDeactivateReply) Unmarshal(b []byte) error { 601 buf := codec.NewBuffer(b) 602 m.Retval = buf.DecodeInt32() 603 return nil 604 } 605 606 // Delete UDP BFD session on interface 607 // - sw_if_index - sw index of the interface 608 // - local_addr - local address 609 // - peer_addr - peer address 610 // - is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 611 // 612 // BfdUDPDel defines message 'bfd_udp_del'. 613 type BfdUDPDel struct { 614 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 615 LocalAddr ip_types.Address `binapi:"address,name=local_addr" json:"local_addr,omitempty"` 616 PeerAddr ip_types.Address `binapi:"address,name=peer_addr" json:"peer_addr,omitempty"` 617 } 618 619 func (m *BfdUDPDel) Reset() { *m = BfdUDPDel{} } 620 func (*BfdUDPDel) GetMessageName() string { return "bfd_udp_del" } 621 func (*BfdUDPDel) GetCrcString() string { return "dcb13a89" } 622 func (*BfdUDPDel) GetMessageType() api.MessageType { 623 return api.RequestMessage 624 } 625 626 func (m *BfdUDPDel) Size() (size int) { 627 if m == nil { 628 return 0 629 } 630 size += 4 // m.SwIfIndex 631 size += 1 // m.LocalAddr.Af 632 size += 1 * 16 // m.LocalAddr.Un 633 size += 1 // m.PeerAddr.Af 634 size += 1 * 16 // m.PeerAddr.Un 635 return size 636 } 637 func (m *BfdUDPDel) Marshal(b []byte) ([]byte, error) { 638 if b == nil { 639 b = make([]byte, m.Size()) 640 } 641 buf := codec.NewBuffer(b) 642 buf.EncodeUint32(uint32(m.SwIfIndex)) 643 buf.EncodeUint8(uint8(m.LocalAddr.Af)) 644 buf.EncodeBytes(m.LocalAddr.Un.XXX_UnionData[:], 16) 645 buf.EncodeUint8(uint8(m.PeerAddr.Af)) 646 buf.EncodeBytes(m.PeerAddr.Un.XXX_UnionData[:], 16) 647 return buf.Bytes(), nil 648 } 649 func (m *BfdUDPDel) Unmarshal(b []byte) error { 650 buf := codec.NewBuffer(b) 651 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 652 m.LocalAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 653 copy(m.LocalAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 654 m.PeerAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 655 copy(m.PeerAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 656 return nil 657 } 658 659 // Delete BFD echo source 660 // BfdUDPDelEchoSource defines message 'bfd_udp_del_echo_source'. 661 type BfdUDPDelEchoSource struct{} 662 663 func (m *BfdUDPDelEchoSource) Reset() { *m = BfdUDPDelEchoSource{} } 664 func (*BfdUDPDelEchoSource) GetMessageName() string { return "bfd_udp_del_echo_source" } 665 func (*BfdUDPDelEchoSource) GetCrcString() string { return "51077d14" } 666 func (*BfdUDPDelEchoSource) GetMessageType() api.MessageType { 667 return api.RequestMessage 668 } 669 670 func (m *BfdUDPDelEchoSource) Size() (size int) { 671 if m == nil { 672 return 0 673 } 674 return size 675 } 676 func (m *BfdUDPDelEchoSource) Marshal(b []byte) ([]byte, error) { 677 if b == nil { 678 b = make([]byte, m.Size()) 679 } 680 buf := codec.NewBuffer(b) 681 return buf.Bytes(), nil 682 } 683 func (m *BfdUDPDelEchoSource) Unmarshal(b []byte) error { 684 return nil 685 } 686 687 // BfdUDPDelEchoSourceReply defines message 'bfd_udp_del_echo_source_reply'. 688 type BfdUDPDelEchoSourceReply struct { 689 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 690 } 691 692 func (m *BfdUDPDelEchoSourceReply) Reset() { *m = BfdUDPDelEchoSourceReply{} } 693 func (*BfdUDPDelEchoSourceReply) GetMessageName() string { return "bfd_udp_del_echo_source_reply" } 694 func (*BfdUDPDelEchoSourceReply) GetCrcString() string { return "e8d4e804" } 695 func (*BfdUDPDelEchoSourceReply) GetMessageType() api.MessageType { 696 return api.ReplyMessage 697 } 698 699 func (m *BfdUDPDelEchoSourceReply) Size() (size int) { 700 if m == nil { 701 return 0 702 } 703 size += 4 // m.Retval 704 return size 705 } 706 func (m *BfdUDPDelEchoSourceReply) Marshal(b []byte) ([]byte, error) { 707 if b == nil { 708 b = make([]byte, m.Size()) 709 } 710 buf := codec.NewBuffer(b) 711 buf.EncodeInt32(m.Retval) 712 return buf.Bytes(), nil 713 } 714 func (m *BfdUDPDelEchoSourceReply) Unmarshal(b []byte) error { 715 buf := codec.NewBuffer(b) 716 m.Retval = buf.DecodeInt32() 717 return nil 718 } 719 720 // BfdUDPDelReply defines message 'bfd_udp_del_reply'. 721 type BfdUDPDelReply struct { 722 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 723 } 724 725 func (m *BfdUDPDelReply) Reset() { *m = BfdUDPDelReply{} } 726 func (*BfdUDPDelReply) GetMessageName() string { return "bfd_udp_del_reply" } 727 func (*BfdUDPDelReply) GetCrcString() string { return "e8d4e804" } 728 func (*BfdUDPDelReply) GetMessageType() api.MessageType { 729 return api.ReplyMessage 730 } 731 732 func (m *BfdUDPDelReply) Size() (size int) { 733 if m == nil { 734 return 0 735 } 736 size += 4 // m.Retval 737 return size 738 } 739 func (m *BfdUDPDelReply) Marshal(b []byte) ([]byte, error) { 740 if b == nil { 741 b = make([]byte, m.Size()) 742 } 743 buf := codec.NewBuffer(b) 744 buf.EncodeInt32(m.Retval) 745 return buf.Bytes(), nil 746 } 747 func (m *BfdUDPDelReply) Unmarshal(b []byte) error { 748 buf := codec.NewBuffer(b) 749 m.Retval = buf.DecodeInt32() 750 return nil 751 } 752 753 // Get BFD echo source 754 // BfdUDPGetEchoSource defines message 'bfd_udp_get_echo_source'. 755 type BfdUDPGetEchoSource struct{} 756 757 func (m *BfdUDPGetEchoSource) Reset() { *m = BfdUDPGetEchoSource{} } 758 func (*BfdUDPGetEchoSource) GetMessageName() string { return "bfd_udp_get_echo_source" } 759 func (*BfdUDPGetEchoSource) GetCrcString() string { return "51077d14" } 760 func (*BfdUDPGetEchoSource) GetMessageType() api.MessageType { 761 return api.RequestMessage 762 } 763 764 func (m *BfdUDPGetEchoSource) Size() (size int) { 765 if m == nil { 766 return 0 767 } 768 return size 769 } 770 func (m *BfdUDPGetEchoSource) Marshal(b []byte) ([]byte, error) { 771 if b == nil { 772 b = make([]byte, m.Size()) 773 } 774 buf := codec.NewBuffer(b) 775 return buf.Bytes(), nil 776 } 777 func (m *BfdUDPGetEchoSource) Unmarshal(b []byte) error { 778 return nil 779 } 780 781 // Get BFD echo source reply 782 // - retval - return code 783 // - sw_if_index - interface to use as echo source 784 // - is_set - non-zero if set 785 // - have_usable_ip4 - non-zero if have usable IPv4 address 786 // - ip4_addr - IPv4 address 787 // - have_usable_ip6 - non-zero if have usable IPv6 address 788 // - ip6_addr - IPv6 address 789 // 790 // BfdUDPGetEchoSourceReply defines message 'bfd_udp_get_echo_source_reply'. 791 type BfdUDPGetEchoSourceReply struct { 792 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 793 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 794 IsSet bool `binapi:"bool,name=is_set" json:"is_set,omitempty"` 795 HaveUsableIP4 bool `binapi:"bool,name=have_usable_ip4" json:"have_usable_ip4,omitempty"` 796 IP4Addr ip_types.IP4Address `binapi:"ip4_address,name=ip4_addr" json:"ip4_addr,omitempty"` 797 HaveUsableIP6 bool `binapi:"bool,name=have_usable_ip6" json:"have_usable_ip6,omitempty"` 798 IP6Addr ip_types.IP6Address `binapi:"ip6_address,name=ip6_addr" json:"ip6_addr,omitempty"` 799 } 800 801 func (m *BfdUDPGetEchoSourceReply) Reset() { *m = BfdUDPGetEchoSourceReply{} } 802 func (*BfdUDPGetEchoSourceReply) GetMessageName() string { return "bfd_udp_get_echo_source_reply" } 803 func (*BfdUDPGetEchoSourceReply) GetCrcString() string { return "e3d736a1" } 804 func (*BfdUDPGetEchoSourceReply) GetMessageType() api.MessageType { 805 return api.ReplyMessage 806 } 807 808 func (m *BfdUDPGetEchoSourceReply) Size() (size int) { 809 if m == nil { 810 return 0 811 } 812 size += 4 // m.Retval 813 size += 4 // m.SwIfIndex 814 size += 1 // m.IsSet 815 size += 1 // m.HaveUsableIP4 816 size += 1 * 4 // m.IP4Addr 817 size += 1 // m.HaveUsableIP6 818 size += 1 * 16 // m.IP6Addr 819 return size 820 } 821 func (m *BfdUDPGetEchoSourceReply) Marshal(b []byte) ([]byte, error) { 822 if b == nil { 823 b = make([]byte, m.Size()) 824 } 825 buf := codec.NewBuffer(b) 826 buf.EncodeInt32(m.Retval) 827 buf.EncodeUint32(uint32(m.SwIfIndex)) 828 buf.EncodeBool(m.IsSet) 829 buf.EncodeBool(m.HaveUsableIP4) 830 buf.EncodeBytes(m.IP4Addr[:], 4) 831 buf.EncodeBool(m.HaveUsableIP6) 832 buf.EncodeBytes(m.IP6Addr[:], 16) 833 return buf.Bytes(), nil 834 } 835 func (m *BfdUDPGetEchoSourceReply) Unmarshal(b []byte) error { 836 buf := codec.NewBuffer(b) 837 m.Retval = buf.DecodeInt32() 838 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 839 m.IsSet = buf.DecodeBool() 840 m.HaveUsableIP4 = buf.DecodeBool() 841 copy(m.IP4Addr[:], buf.DecodeBytes(4)) 842 m.HaveUsableIP6 = buf.DecodeBool() 843 copy(m.IP6Addr[:], buf.DecodeBytes(16)) 844 return nil 845 } 846 847 // Modify UDP BFD session on interface 848 // - sw_if_index - sw index of the interface 849 // - desired_min_tx - desired min transmit interval (microseconds) 850 // - required_min_rx - required min receive interval (microseconds) 851 // - local_addr - local address 852 // - peer_addr - peer address 853 // - is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 854 // - detect_mult - detect multiplier (# of packets missed before connection goes down) 855 // 856 // BfdUDPMod defines message 'bfd_udp_mod'. 857 type BfdUDPMod struct { 858 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 859 DesiredMinTx uint32 `binapi:"u32,name=desired_min_tx" json:"desired_min_tx,omitempty"` 860 RequiredMinRx uint32 `binapi:"u32,name=required_min_rx" json:"required_min_rx,omitempty"` 861 LocalAddr ip_types.Address `binapi:"address,name=local_addr" json:"local_addr,omitempty"` 862 PeerAddr ip_types.Address `binapi:"address,name=peer_addr" json:"peer_addr,omitempty"` 863 DetectMult uint8 `binapi:"u8,name=detect_mult" json:"detect_mult,omitempty"` 864 } 865 866 func (m *BfdUDPMod) Reset() { *m = BfdUDPMod{} } 867 func (*BfdUDPMod) GetMessageName() string { return "bfd_udp_mod" } 868 func (*BfdUDPMod) GetCrcString() string { return "913df085" } 869 func (*BfdUDPMod) GetMessageType() api.MessageType { 870 return api.RequestMessage 871 } 872 873 func (m *BfdUDPMod) Size() (size int) { 874 if m == nil { 875 return 0 876 } 877 size += 4 // m.SwIfIndex 878 size += 4 // m.DesiredMinTx 879 size += 4 // m.RequiredMinRx 880 size += 1 // m.LocalAddr.Af 881 size += 1 * 16 // m.LocalAddr.Un 882 size += 1 // m.PeerAddr.Af 883 size += 1 * 16 // m.PeerAddr.Un 884 size += 1 // m.DetectMult 885 return size 886 } 887 func (m *BfdUDPMod) Marshal(b []byte) ([]byte, error) { 888 if b == nil { 889 b = make([]byte, m.Size()) 890 } 891 buf := codec.NewBuffer(b) 892 buf.EncodeUint32(uint32(m.SwIfIndex)) 893 buf.EncodeUint32(m.DesiredMinTx) 894 buf.EncodeUint32(m.RequiredMinRx) 895 buf.EncodeUint8(uint8(m.LocalAddr.Af)) 896 buf.EncodeBytes(m.LocalAddr.Un.XXX_UnionData[:], 16) 897 buf.EncodeUint8(uint8(m.PeerAddr.Af)) 898 buf.EncodeBytes(m.PeerAddr.Un.XXX_UnionData[:], 16) 899 buf.EncodeUint8(m.DetectMult) 900 return buf.Bytes(), nil 901 } 902 func (m *BfdUDPMod) Unmarshal(b []byte) error { 903 buf := codec.NewBuffer(b) 904 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 905 m.DesiredMinTx = buf.DecodeUint32() 906 m.RequiredMinRx = buf.DecodeUint32() 907 m.LocalAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 908 copy(m.LocalAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 909 m.PeerAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 910 copy(m.PeerAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 911 m.DetectMult = buf.DecodeUint8() 912 return nil 913 } 914 915 // BfdUDPModReply defines message 'bfd_udp_mod_reply'. 916 type BfdUDPModReply struct { 917 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 918 } 919 920 func (m *BfdUDPModReply) Reset() { *m = BfdUDPModReply{} } 921 func (*BfdUDPModReply) GetMessageName() string { return "bfd_udp_mod_reply" } 922 func (*BfdUDPModReply) GetCrcString() string { return "e8d4e804" } 923 func (*BfdUDPModReply) GetMessageType() api.MessageType { 924 return api.ReplyMessage 925 } 926 927 func (m *BfdUDPModReply) Size() (size int) { 928 if m == nil { 929 return 0 930 } 931 size += 4 // m.Retval 932 return size 933 } 934 func (m *BfdUDPModReply) Marshal(b []byte) ([]byte, error) { 935 if b == nil { 936 b = make([]byte, m.Size()) 937 } 938 buf := codec.NewBuffer(b) 939 buf.EncodeInt32(m.Retval) 940 return buf.Bytes(), nil 941 } 942 func (m *BfdUDPModReply) Unmarshal(b []byte) error { 943 buf := codec.NewBuffer(b) 944 m.Retval = buf.DecodeInt32() 945 return nil 946 } 947 948 // BFD session details structure 949 // - sw_if_index - sw index of the interface 950 // - local_addr - local address 951 // - peer_addr - peer address 952 // - is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 953 // - state - session state 954 // - is_authenticated - non-zero if authentication in-use, zero otherwise 955 // - bfd_key_id - ID of key currently in-use if auth is on 956 // - conf_key_id - configured key ID for this session 957 // - required_min_rx - required min receive interval (microseconds) 958 // - desired_min_tx - desired min transmit interval (microseconds) 959 // - detect_mult - detect multiplier (# of packets missed before connection goes down) 960 // 961 // BfdUDPSessionDetails defines message 'bfd_udp_session_details'. 962 type BfdUDPSessionDetails struct { 963 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 964 LocalAddr ip_types.Address `binapi:"address,name=local_addr" json:"local_addr,omitempty"` 965 PeerAddr ip_types.Address `binapi:"address,name=peer_addr" json:"peer_addr,omitempty"` 966 State BfdState `binapi:"bfd_state,name=state" json:"state,omitempty"` 967 IsAuthenticated bool `binapi:"bool,name=is_authenticated" json:"is_authenticated,omitempty"` 968 BfdKeyID uint8 `binapi:"u8,name=bfd_key_id" json:"bfd_key_id,omitempty"` 969 ConfKeyID uint32 `binapi:"u32,name=conf_key_id" json:"conf_key_id,omitempty"` 970 RequiredMinRx uint32 `binapi:"u32,name=required_min_rx" json:"required_min_rx,omitempty"` 971 DesiredMinTx uint32 `binapi:"u32,name=desired_min_tx" json:"desired_min_tx,omitempty"` 972 DetectMult uint8 `binapi:"u8,name=detect_mult" json:"detect_mult,omitempty"` 973 } 974 975 func (m *BfdUDPSessionDetails) Reset() { *m = BfdUDPSessionDetails{} } 976 func (*BfdUDPSessionDetails) GetMessageName() string { return "bfd_udp_session_details" } 977 func (*BfdUDPSessionDetails) GetCrcString() string { return "09fb2f2d" } 978 func (*BfdUDPSessionDetails) GetMessageType() api.MessageType { 979 return api.ReplyMessage 980 } 981 982 func (m *BfdUDPSessionDetails) Size() (size int) { 983 if m == nil { 984 return 0 985 } 986 size += 4 // m.SwIfIndex 987 size += 1 // m.LocalAddr.Af 988 size += 1 * 16 // m.LocalAddr.Un 989 size += 1 // m.PeerAddr.Af 990 size += 1 * 16 // m.PeerAddr.Un 991 size += 4 // m.State 992 size += 1 // m.IsAuthenticated 993 size += 1 // m.BfdKeyID 994 size += 4 // m.ConfKeyID 995 size += 4 // m.RequiredMinRx 996 size += 4 // m.DesiredMinTx 997 size += 1 // m.DetectMult 998 return size 999 } 1000 func (m *BfdUDPSessionDetails) Marshal(b []byte) ([]byte, error) { 1001 if b == nil { 1002 b = make([]byte, m.Size()) 1003 } 1004 buf := codec.NewBuffer(b) 1005 buf.EncodeUint32(uint32(m.SwIfIndex)) 1006 buf.EncodeUint8(uint8(m.LocalAddr.Af)) 1007 buf.EncodeBytes(m.LocalAddr.Un.XXX_UnionData[:], 16) 1008 buf.EncodeUint8(uint8(m.PeerAddr.Af)) 1009 buf.EncodeBytes(m.PeerAddr.Un.XXX_UnionData[:], 16) 1010 buf.EncodeUint32(uint32(m.State)) 1011 buf.EncodeBool(m.IsAuthenticated) 1012 buf.EncodeUint8(m.BfdKeyID) 1013 buf.EncodeUint32(m.ConfKeyID) 1014 buf.EncodeUint32(m.RequiredMinRx) 1015 buf.EncodeUint32(m.DesiredMinTx) 1016 buf.EncodeUint8(m.DetectMult) 1017 return buf.Bytes(), nil 1018 } 1019 func (m *BfdUDPSessionDetails) Unmarshal(b []byte) error { 1020 buf := codec.NewBuffer(b) 1021 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 1022 m.LocalAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 1023 copy(m.LocalAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 1024 m.PeerAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 1025 copy(m.PeerAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 1026 m.State = BfdState(buf.DecodeUint32()) 1027 m.IsAuthenticated = buf.DecodeBool() 1028 m.BfdKeyID = buf.DecodeUint8() 1029 m.ConfKeyID = buf.DecodeUint32() 1030 m.RequiredMinRx = buf.DecodeUint32() 1031 m.DesiredMinTx = buf.DecodeUint32() 1032 m.DetectMult = buf.DecodeUint8() 1033 return nil 1034 } 1035 1036 // Get all BFD sessions 1037 // BfdUDPSessionDump defines message 'bfd_udp_session_dump'. 1038 type BfdUDPSessionDump struct{} 1039 1040 func (m *BfdUDPSessionDump) Reset() { *m = BfdUDPSessionDump{} } 1041 func (*BfdUDPSessionDump) GetMessageName() string { return "bfd_udp_session_dump" } 1042 func (*BfdUDPSessionDump) GetCrcString() string { return "51077d14" } 1043 func (*BfdUDPSessionDump) GetMessageType() api.MessageType { 1044 return api.RequestMessage 1045 } 1046 1047 func (m *BfdUDPSessionDump) Size() (size int) { 1048 if m == nil { 1049 return 0 1050 } 1051 return size 1052 } 1053 func (m *BfdUDPSessionDump) Marshal(b []byte) ([]byte, error) { 1054 if b == nil { 1055 b = make([]byte, m.Size()) 1056 } 1057 buf := codec.NewBuffer(b) 1058 return buf.Bytes(), nil 1059 } 1060 func (m *BfdUDPSessionDump) Unmarshal(b []byte) error { 1061 return nil 1062 } 1063 1064 // BfdUDPSessionEvent defines message 'bfd_udp_session_event'. 1065 type BfdUDPSessionEvent struct { 1066 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"` 1067 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 1068 LocalAddr ip_types.Address `binapi:"address,name=local_addr" json:"local_addr,omitempty"` 1069 PeerAddr ip_types.Address `binapi:"address,name=peer_addr" json:"peer_addr,omitempty"` 1070 State BfdState `binapi:"bfd_state,name=state" json:"state,omitempty"` 1071 IsAuthenticated bool `binapi:"bool,name=is_authenticated" json:"is_authenticated,omitempty"` 1072 BfdKeyID uint8 `binapi:"u8,name=bfd_key_id" json:"bfd_key_id,omitempty"` 1073 ConfKeyID uint32 `binapi:"u32,name=conf_key_id" json:"conf_key_id,omitempty"` 1074 RequiredMinRx uint32 `binapi:"u32,name=required_min_rx" json:"required_min_rx,omitempty"` 1075 DesiredMinTx uint32 `binapi:"u32,name=desired_min_tx" json:"desired_min_tx,omitempty"` 1076 DetectMult uint8 `binapi:"u8,name=detect_mult" json:"detect_mult,omitempty"` 1077 } 1078 1079 func (m *BfdUDPSessionEvent) Reset() { *m = BfdUDPSessionEvent{} } 1080 func (*BfdUDPSessionEvent) GetMessageName() string { return "bfd_udp_session_event" } 1081 func (*BfdUDPSessionEvent) GetCrcString() string { return "8eaaf062" } 1082 func (*BfdUDPSessionEvent) GetMessageType() api.MessageType { 1083 return api.EventMessage 1084 } 1085 1086 func (m *BfdUDPSessionEvent) Size() (size int) { 1087 if m == nil { 1088 return 0 1089 } 1090 size += 4 // m.PID 1091 size += 4 // m.SwIfIndex 1092 size += 1 // m.LocalAddr.Af 1093 size += 1 * 16 // m.LocalAddr.Un 1094 size += 1 // m.PeerAddr.Af 1095 size += 1 * 16 // m.PeerAddr.Un 1096 size += 4 // m.State 1097 size += 1 // m.IsAuthenticated 1098 size += 1 // m.BfdKeyID 1099 size += 4 // m.ConfKeyID 1100 size += 4 // m.RequiredMinRx 1101 size += 4 // m.DesiredMinTx 1102 size += 1 // m.DetectMult 1103 return size 1104 } 1105 func (m *BfdUDPSessionEvent) Marshal(b []byte) ([]byte, error) { 1106 if b == nil { 1107 b = make([]byte, m.Size()) 1108 } 1109 buf := codec.NewBuffer(b) 1110 buf.EncodeUint32(m.PID) 1111 buf.EncodeUint32(uint32(m.SwIfIndex)) 1112 buf.EncodeUint8(uint8(m.LocalAddr.Af)) 1113 buf.EncodeBytes(m.LocalAddr.Un.XXX_UnionData[:], 16) 1114 buf.EncodeUint8(uint8(m.PeerAddr.Af)) 1115 buf.EncodeBytes(m.PeerAddr.Un.XXX_UnionData[:], 16) 1116 buf.EncodeUint32(uint32(m.State)) 1117 buf.EncodeBool(m.IsAuthenticated) 1118 buf.EncodeUint8(m.BfdKeyID) 1119 buf.EncodeUint32(m.ConfKeyID) 1120 buf.EncodeUint32(m.RequiredMinRx) 1121 buf.EncodeUint32(m.DesiredMinTx) 1122 buf.EncodeUint8(m.DetectMult) 1123 return buf.Bytes(), nil 1124 } 1125 func (m *BfdUDPSessionEvent) Unmarshal(b []byte) error { 1126 buf := codec.NewBuffer(b) 1127 m.PID = buf.DecodeUint32() 1128 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 1129 m.LocalAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 1130 copy(m.LocalAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 1131 m.PeerAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 1132 copy(m.PeerAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 1133 m.State = BfdState(buf.DecodeUint32()) 1134 m.IsAuthenticated = buf.DecodeBool() 1135 m.BfdKeyID = buf.DecodeUint8() 1136 m.ConfKeyID = buf.DecodeUint32() 1137 m.RequiredMinRx = buf.DecodeUint32() 1138 m.DesiredMinTx = buf.DecodeUint32() 1139 m.DetectMult = buf.DecodeUint8() 1140 return nil 1141 } 1142 1143 // Set flags of BFD UDP session 1144 // - sw_if_index - sw index of the interface 1145 // - local_addr - local address 1146 // - peer_addr - peer address 1147 // - is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4 1148 // - flags - set the admin state, 1 = up, 0 = down 1149 // 1150 // BfdUDPSessionSetFlags defines message 'bfd_udp_session_set_flags'. 1151 type BfdUDPSessionSetFlags struct { 1152 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 1153 LocalAddr ip_types.Address `binapi:"address,name=local_addr" json:"local_addr,omitempty"` 1154 PeerAddr ip_types.Address `binapi:"address,name=peer_addr" json:"peer_addr,omitempty"` 1155 Flags interface_types.IfStatusFlags `binapi:"if_status_flags,name=flags" json:"flags,omitempty"` 1156 } 1157 1158 func (m *BfdUDPSessionSetFlags) Reset() { *m = BfdUDPSessionSetFlags{} } 1159 func (*BfdUDPSessionSetFlags) GetMessageName() string { return "bfd_udp_session_set_flags" } 1160 func (*BfdUDPSessionSetFlags) GetCrcString() string { return "04b4bdfd" } 1161 func (*BfdUDPSessionSetFlags) GetMessageType() api.MessageType { 1162 return api.RequestMessage 1163 } 1164 1165 func (m *BfdUDPSessionSetFlags) Size() (size int) { 1166 if m == nil { 1167 return 0 1168 } 1169 size += 4 // m.SwIfIndex 1170 size += 1 // m.LocalAddr.Af 1171 size += 1 * 16 // m.LocalAddr.Un 1172 size += 1 // m.PeerAddr.Af 1173 size += 1 * 16 // m.PeerAddr.Un 1174 size += 4 // m.Flags 1175 return size 1176 } 1177 func (m *BfdUDPSessionSetFlags) Marshal(b []byte) ([]byte, error) { 1178 if b == nil { 1179 b = make([]byte, m.Size()) 1180 } 1181 buf := codec.NewBuffer(b) 1182 buf.EncodeUint32(uint32(m.SwIfIndex)) 1183 buf.EncodeUint8(uint8(m.LocalAddr.Af)) 1184 buf.EncodeBytes(m.LocalAddr.Un.XXX_UnionData[:], 16) 1185 buf.EncodeUint8(uint8(m.PeerAddr.Af)) 1186 buf.EncodeBytes(m.PeerAddr.Un.XXX_UnionData[:], 16) 1187 buf.EncodeUint32(uint32(m.Flags)) 1188 return buf.Bytes(), nil 1189 } 1190 func (m *BfdUDPSessionSetFlags) Unmarshal(b []byte) error { 1191 buf := codec.NewBuffer(b) 1192 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 1193 m.LocalAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 1194 copy(m.LocalAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 1195 m.PeerAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 1196 copy(m.PeerAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 1197 m.Flags = interface_types.IfStatusFlags(buf.DecodeUint32()) 1198 return nil 1199 } 1200 1201 // BfdUDPSessionSetFlagsReply defines message 'bfd_udp_session_set_flags_reply'. 1202 type BfdUDPSessionSetFlagsReply struct { 1203 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1204 } 1205 1206 func (m *BfdUDPSessionSetFlagsReply) Reset() { *m = BfdUDPSessionSetFlagsReply{} } 1207 func (*BfdUDPSessionSetFlagsReply) GetMessageName() string { return "bfd_udp_session_set_flags_reply" } 1208 func (*BfdUDPSessionSetFlagsReply) GetCrcString() string { return "e8d4e804" } 1209 func (*BfdUDPSessionSetFlagsReply) GetMessageType() api.MessageType { 1210 return api.ReplyMessage 1211 } 1212 1213 func (m *BfdUDPSessionSetFlagsReply) Size() (size int) { 1214 if m == nil { 1215 return 0 1216 } 1217 size += 4 // m.Retval 1218 return size 1219 } 1220 func (m *BfdUDPSessionSetFlagsReply) Marshal(b []byte) ([]byte, error) { 1221 if b == nil { 1222 b = make([]byte, m.Size()) 1223 } 1224 buf := codec.NewBuffer(b) 1225 buf.EncodeInt32(m.Retval) 1226 return buf.Bytes(), nil 1227 } 1228 func (m *BfdUDPSessionSetFlagsReply) Unmarshal(b []byte) error { 1229 buf := codec.NewBuffer(b) 1230 m.Retval = buf.DecodeInt32() 1231 return nil 1232 } 1233 1234 // Set BFD echo source 1235 // - sw_if_index - interface to use as echo source 1236 // 1237 // BfdUDPSetEchoSource defines message 'bfd_udp_set_echo_source'. 1238 type BfdUDPSetEchoSource struct { 1239 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 1240 } 1241 1242 func (m *BfdUDPSetEchoSource) Reset() { *m = BfdUDPSetEchoSource{} } 1243 func (*BfdUDPSetEchoSource) GetMessageName() string { return "bfd_udp_set_echo_source" } 1244 func (*BfdUDPSetEchoSource) GetCrcString() string { return "f9e6675e" } 1245 func (*BfdUDPSetEchoSource) GetMessageType() api.MessageType { 1246 return api.RequestMessage 1247 } 1248 1249 func (m *BfdUDPSetEchoSource) Size() (size int) { 1250 if m == nil { 1251 return 0 1252 } 1253 size += 4 // m.SwIfIndex 1254 return size 1255 } 1256 func (m *BfdUDPSetEchoSource) Marshal(b []byte) ([]byte, error) { 1257 if b == nil { 1258 b = make([]byte, m.Size()) 1259 } 1260 buf := codec.NewBuffer(b) 1261 buf.EncodeUint32(uint32(m.SwIfIndex)) 1262 return buf.Bytes(), nil 1263 } 1264 func (m *BfdUDPSetEchoSource) Unmarshal(b []byte) error { 1265 buf := codec.NewBuffer(b) 1266 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 1267 return nil 1268 } 1269 1270 // BfdUDPSetEchoSourceReply defines message 'bfd_udp_set_echo_source_reply'. 1271 type BfdUDPSetEchoSourceReply struct { 1272 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1273 } 1274 1275 func (m *BfdUDPSetEchoSourceReply) Reset() { *m = BfdUDPSetEchoSourceReply{} } 1276 func (*BfdUDPSetEchoSourceReply) GetMessageName() string { return "bfd_udp_set_echo_source_reply" } 1277 func (*BfdUDPSetEchoSourceReply) GetCrcString() string { return "e8d4e804" } 1278 func (*BfdUDPSetEchoSourceReply) GetMessageType() api.MessageType { 1279 return api.ReplyMessage 1280 } 1281 1282 func (m *BfdUDPSetEchoSourceReply) Size() (size int) { 1283 if m == nil { 1284 return 0 1285 } 1286 size += 4 // m.Retval 1287 return size 1288 } 1289 func (m *BfdUDPSetEchoSourceReply) Marshal(b []byte) ([]byte, error) { 1290 if b == nil { 1291 b = make([]byte, m.Size()) 1292 } 1293 buf := codec.NewBuffer(b) 1294 buf.EncodeInt32(m.Retval) 1295 return buf.Bytes(), nil 1296 } 1297 func (m *BfdUDPSetEchoSourceReply) Unmarshal(b []byte) error { 1298 buf := codec.NewBuffer(b) 1299 m.Retval = buf.DecodeInt32() 1300 return nil 1301 } 1302 1303 // BfdUDPUpd defines message 'bfd_udp_upd'. 1304 type BfdUDPUpd struct { 1305 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 1306 DesiredMinTx uint32 `binapi:"u32,name=desired_min_tx" json:"desired_min_tx,omitempty"` 1307 RequiredMinRx uint32 `binapi:"u32,name=required_min_rx" json:"required_min_rx,omitempty"` 1308 LocalAddr ip_types.Address `binapi:"address,name=local_addr" json:"local_addr,omitempty"` 1309 PeerAddr ip_types.Address `binapi:"address,name=peer_addr" json:"peer_addr,omitempty"` 1310 DetectMult uint8 `binapi:"u8,name=detect_mult" json:"detect_mult,omitempty"` 1311 IsAuthenticated bool `binapi:"bool,name=is_authenticated" json:"is_authenticated,omitempty"` 1312 BfdKeyID uint8 `binapi:"u8,name=bfd_key_id" json:"bfd_key_id,omitempty"` 1313 ConfKeyID uint32 `binapi:"u32,name=conf_key_id" json:"conf_key_id,omitempty"` 1314 } 1315 1316 func (m *BfdUDPUpd) Reset() { *m = BfdUDPUpd{} } 1317 func (*BfdUDPUpd) GetMessageName() string { return "bfd_udp_upd" } 1318 func (*BfdUDPUpd) GetCrcString() string { return "939cd26a" } 1319 func (*BfdUDPUpd) GetMessageType() api.MessageType { 1320 return api.RequestMessage 1321 } 1322 1323 func (m *BfdUDPUpd) Size() (size int) { 1324 if m == nil { 1325 return 0 1326 } 1327 size += 4 // m.SwIfIndex 1328 size += 4 // m.DesiredMinTx 1329 size += 4 // m.RequiredMinRx 1330 size += 1 // m.LocalAddr.Af 1331 size += 1 * 16 // m.LocalAddr.Un 1332 size += 1 // m.PeerAddr.Af 1333 size += 1 * 16 // m.PeerAddr.Un 1334 size += 1 // m.DetectMult 1335 size += 1 // m.IsAuthenticated 1336 size += 1 // m.BfdKeyID 1337 size += 4 // m.ConfKeyID 1338 return size 1339 } 1340 func (m *BfdUDPUpd) Marshal(b []byte) ([]byte, error) { 1341 if b == nil { 1342 b = make([]byte, m.Size()) 1343 } 1344 buf := codec.NewBuffer(b) 1345 buf.EncodeUint32(uint32(m.SwIfIndex)) 1346 buf.EncodeUint32(m.DesiredMinTx) 1347 buf.EncodeUint32(m.RequiredMinRx) 1348 buf.EncodeUint8(uint8(m.LocalAddr.Af)) 1349 buf.EncodeBytes(m.LocalAddr.Un.XXX_UnionData[:], 16) 1350 buf.EncodeUint8(uint8(m.PeerAddr.Af)) 1351 buf.EncodeBytes(m.PeerAddr.Un.XXX_UnionData[:], 16) 1352 buf.EncodeUint8(m.DetectMult) 1353 buf.EncodeBool(m.IsAuthenticated) 1354 buf.EncodeUint8(m.BfdKeyID) 1355 buf.EncodeUint32(m.ConfKeyID) 1356 return buf.Bytes(), nil 1357 } 1358 func (m *BfdUDPUpd) Unmarshal(b []byte) error { 1359 buf := codec.NewBuffer(b) 1360 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 1361 m.DesiredMinTx = buf.DecodeUint32() 1362 m.RequiredMinRx = buf.DecodeUint32() 1363 m.LocalAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 1364 copy(m.LocalAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 1365 m.PeerAddr.Af = ip_types.AddressFamily(buf.DecodeUint8()) 1366 copy(m.PeerAddr.Un.XXX_UnionData[:], buf.DecodeBytes(16)) 1367 m.DetectMult = buf.DecodeUint8() 1368 m.IsAuthenticated = buf.DecodeBool() 1369 m.BfdKeyID = buf.DecodeUint8() 1370 m.ConfKeyID = buf.DecodeUint32() 1371 return nil 1372 } 1373 1374 // BfdUDPUpdReply defines message 'bfd_udp_upd_reply'. 1375 type BfdUDPUpdReply struct { 1376 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1377 StatsIndex uint32 `binapi:"u32,name=stats_index" json:"stats_index,omitempty"` 1378 } 1379 1380 func (m *BfdUDPUpdReply) Reset() { *m = BfdUDPUpdReply{} } 1381 func (*BfdUDPUpdReply) GetMessageName() string { return "bfd_udp_upd_reply" } 1382 func (*BfdUDPUpdReply) GetCrcString() string { return "1992deab" } 1383 func (*BfdUDPUpdReply) GetMessageType() api.MessageType { 1384 return api.ReplyMessage 1385 } 1386 1387 func (m *BfdUDPUpdReply) Size() (size int) { 1388 if m == nil { 1389 return 0 1390 } 1391 size += 4 // m.Retval 1392 size += 4 // m.StatsIndex 1393 return size 1394 } 1395 func (m *BfdUDPUpdReply) Marshal(b []byte) ([]byte, error) { 1396 if b == nil { 1397 b = make([]byte, m.Size()) 1398 } 1399 buf := codec.NewBuffer(b) 1400 buf.EncodeInt32(m.Retval) 1401 buf.EncodeUint32(m.StatsIndex) 1402 return buf.Bytes(), nil 1403 } 1404 func (m *BfdUDPUpdReply) Unmarshal(b []byte) error { 1405 buf := codec.NewBuffer(b) 1406 m.Retval = buf.DecodeInt32() 1407 m.StatsIndex = buf.DecodeUint32() 1408 return nil 1409 } 1410 1411 // Register for BFD events 1412 // - enable_disable - 1 => register for events, 0 => cancel registration 1413 // - pid - sender's pid 1414 // 1415 // WantBfdEvents defines message 'want_bfd_events'. 1416 type WantBfdEvents struct { 1417 EnableDisable bool `binapi:"bool,name=enable_disable" json:"enable_disable,omitempty"` 1418 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"` 1419 } 1420 1421 func (m *WantBfdEvents) Reset() { *m = WantBfdEvents{} } 1422 func (*WantBfdEvents) GetMessageName() string { return "want_bfd_events" } 1423 func (*WantBfdEvents) GetCrcString() string { return "c5e2af94" } 1424 func (*WantBfdEvents) GetMessageType() api.MessageType { 1425 return api.RequestMessage 1426 } 1427 1428 func (m *WantBfdEvents) Size() (size int) { 1429 if m == nil { 1430 return 0 1431 } 1432 size += 1 // m.EnableDisable 1433 size += 4 // m.PID 1434 return size 1435 } 1436 func (m *WantBfdEvents) Marshal(b []byte) ([]byte, error) { 1437 if b == nil { 1438 b = make([]byte, m.Size()) 1439 } 1440 buf := codec.NewBuffer(b) 1441 buf.EncodeBool(m.EnableDisable) 1442 buf.EncodeUint32(m.PID) 1443 return buf.Bytes(), nil 1444 } 1445 func (m *WantBfdEvents) Unmarshal(b []byte) error { 1446 buf := codec.NewBuffer(b) 1447 m.EnableDisable = buf.DecodeBool() 1448 m.PID = buf.DecodeUint32() 1449 return nil 1450 } 1451 1452 // WantBfdEventsReply defines message 'want_bfd_events_reply'. 1453 type WantBfdEventsReply struct { 1454 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1455 } 1456 1457 func (m *WantBfdEventsReply) Reset() { *m = WantBfdEventsReply{} } 1458 func (*WantBfdEventsReply) GetMessageName() string { return "want_bfd_events_reply" } 1459 func (*WantBfdEventsReply) GetCrcString() string { return "e8d4e804" } 1460 func (*WantBfdEventsReply) GetMessageType() api.MessageType { 1461 return api.ReplyMessage 1462 } 1463 1464 func (m *WantBfdEventsReply) Size() (size int) { 1465 if m == nil { 1466 return 0 1467 } 1468 size += 4 // m.Retval 1469 return size 1470 } 1471 func (m *WantBfdEventsReply) Marshal(b []byte) ([]byte, error) { 1472 if b == nil { 1473 b = make([]byte, m.Size()) 1474 } 1475 buf := codec.NewBuffer(b) 1476 buf.EncodeInt32(m.Retval) 1477 return buf.Bytes(), nil 1478 } 1479 func (m *WantBfdEventsReply) Unmarshal(b []byte) error { 1480 buf := codec.NewBuffer(b) 1481 m.Retval = buf.DecodeInt32() 1482 return nil 1483 } 1484 1485 func init() { file_bfd_binapi_init() } 1486 func file_bfd_binapi_init() { 1487 api.RegisterMessage((*BfdAuthDelKey)(nil), "bfd_auth_del_key_65310b22") 1488 api.RegisterMessage((*BfdAuthDelKeyReply)(nil), "bfd_auth_del_key_reply_e8d4e804") 1489 api.RegisterMessage((*BfdAuthKeysDetails)(nil), "bfd_auth_keys_details_84130e9f") 1490 api.RegisterMessage((*BfdAuthKeysDump)(nil), "bfd_auth_keys_dump_51077d14") 1491 api.RegisterMessage((*BfdAuthSetKey)(nil), "bfd_auth_set_key_690b8877") 1492 api.RegisterMessage((*BfdAuthSetKeyReply)(nil), "bfd_auth_set_key_reply_e8d4e804") 1493 api.RegisterMessage((*BfdUDPAdd)(nil), "bfd_udp_add_939cd26a") 1494 api.RegisterMessage((*BfdUDPAddReply)(nil), "bfd_udp_add_reply_e8d4e804") 1495 api.RegisterMessage((*BfdUDPAuthActivate)(nil), "bfd_udp_auth_activate_21fd1bdb") 1496 api.RegisterMessage((*BfdUDPAuthActivateReply)(nil), "bfd_udp_auth_activate_reply_e8d4e804") 1497 api.RegisterMessage((*BfdUDPAuthDeactivate)(nil), "bfd_udp_auth_deactivate_9a05e2e0") 1498 api.RegisterMessage((*BfdUDPAuthDeactivateReply)(nil), "bfd_udp_auth_deactivate_reply_e8d4e804") 1499 api.RegisterMessage((*BfdUDPDel)(nil), "bfd_udp_del_dcb13a89") 1500 api.RegisterMessage((*BfdUDPDelEchoSource)(nil), "bfd_udp_del_echo_source_51077d14") 1501 api.RegisterMessage((*BfdUDPDelEchoSourceReply)(nil), "bfd_udp_del_echo_source_reply_e8d4e804") 1502 api.RegisterMessage((*BfdUDPDelReply)(nil), "bfd_udp_del_reply_e8d4e804") 1503 api.RegisterMessage((*BfdUDPGetEchoSource)(nil), "bfd_udp_get_echo_source_51077d14") 1504 api.RegisterMessage((*BfdUDPGetEchoSourceReply)(nil), "bfd_udp_get_echo_source_reply_e3d736a1") 1505 api.RegisterMessage((*BfdUDPMod)(nil), "bfd_udp_mod_913df085") 1506 api.RegisterMessage((*BfdUDPModReply)(nil), "bfd_udp_mod_reply_e8d4e804") 1507 api.RegisterMessage((*BfdUDPSessionDetails)(nil), "bfd_udp_session_details_09fb2f2d") 1508 api.RegisterMessage((*BfdUDPSessionDump)(nil), "bfd_udp_session_dump_51077d14") 1509 api.RegisterMessage((*BfdUDPSessionEvent)(nil), "bfd_udp_session_event_8eaaf062") 1510 api.RegisterMessage((*BfdUDPSessionSetFlags)(nil), "bfd_udp_session_set_flags_04b4bdfd") 1511 api.RegisterMessage((*BfdUDPSessionSetFlagsReply)(nil), "bfd_udp_session_set_flags_reply_e8d4e804") 1512 api.RegisterMessage((*BfdUDPSetEchoSource)(nil), "bfd_udp_set_echo_source_f9e6675e") 1513 api.RegisterMessage((*BfdUDPSetEchoSourceReply)(nil), "bfd_udp_set_echo_source_reply_e8d4e804") 1514 api.RegisterMessage((*BfdUDPUpd)(nil), "bfd_udp_upd_939cd26a") 1515 api.RegisterMessage((*BfdUDPUpdReply)(nil), "bfd_udp_upd_reply_1992deab") 1516 api.RegisterMessage((*WantBfdEvents)(nil), "want_bfd_events_c5e2af94") 1517 api.RegisterMessage((*WantBfdEventsReply)(nil), "want_bfd_events_reply_e8d4e804") 1518 } 1519 1520 // Messages returns list of all messages in this module. 1521 func AllMessages() []api.Message { 1522 return []api.Message{ 1523 (*BfdAuthDelKey)(nil), 1524 (*BfdAuthDelKeyReply)(nil), 1525 (*BfdAuthKeysDetails)(nil), 1526 (*BfdAuthKeysDump)(nil), 1527 (*BfdAuthSetKey)(nil), 1528 (*BfdAuthSetKeyReply)(nil), 1529 (*BfdUDPAdd)(nil), 1530 (*BfdUDPAddReply)(nil), 1531 (*BfdUDPAuthActivate)(nil), 1532 (*BfdUDPAuthActivateReply)(nil), 1533 (*BfdUDPAuthDeactivate)(nil), 1534 (*BfdUDPAuthDeactivateReply)(nil), 1535 (*BfdUDPDel)(nil), 1536 (*BfdUDPDelEchoSource)(nil), 1537 (*BfdUDPDelEchoSourceReply)(nil), 1538 (*BfdUDPDelReply)(nil), 1539 (*BfdUDPGetEchoSource)(nil), 1540 (*BfdUDPGetEchoSourceReply)(nil), 1541 (*BfdUDPMod)(nil), 1542 (*BfdUDPModReply)(nil), 1543 (*BfdUDPSessionDetails)(nil), 1544 (*BfdUDPSessionDump)(nil), 1545 (*BfdUDPSessionEvent)(nil), 1546 (*BfdUDPSessionSetFlags)(nil), 1547 (*BfdUDPSessionSetFlagsReply)(nil), 1548 (*BfdUDPSetEchoSource)(nil), 1549 (*BfdUDPSetEchoSourceReply)(nil), 1550 (*BfdUDPUpd)(nil), 1551 (*BfdUDPUpdReply)(nil), 1552 (*WantBfdEvents)(nil), 1553 (*WantBfdEventsReply)(nil), 1554 } 1555 }