go.ligato.io/vpp-agent/v3@v3.5.0/plugins/vpp/binapi/vpp2106/nat44_ei/nat44_ei.ba.go (about) 1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT. 2 3 // Package nat44_ei contains generated bindings for API file nat44_ei.api. 4 // 5 // Contents: 6 // - 1 enum 7 // - 73 messages 8 package nat44_ei 9 10 import ( 11 "strconv" 12 13 api "go.fd.io/govpp/api" 14 codec "go.fd.io/govpp/codec" 15 interface_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2106/interface_types" 16 ip_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2106/ip_types" 17 nat_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2106/nat_types" 18 ) 19 20 // This is a compile-time assertion to ensure that this generated file 21 // is compatible with the GoVPP api package it is being compiled against. 22 // A compilation error at this line likely means your copy of the 23 // GoVPP api package needs to be updated. 24 const _ = api.GoVppAPIPackageIsVersion2 25 26 const ( 27 APIFile = "nat44_ei" 28 APIVersion = "1.1.1" 29 VersionCrc = 0x62d113ee 30 ) 31 32 // Nat44EiConfigFlags defines enum 'nat44_ei_config_flags'. 33 type Nat44EiConfigFlags uint8 34 35 const ( 36 NAT44_EI_NONE Nat44EiConfigFlags = 0 37 NAT44_EI_STATIC_MAPPING_ONLY Nat44EiConfigFlags = 1 38 NAT44_EI_CONNECTION_TRACKING Nat44EiConfigFlags = 2 39 NAT44_EI_OUT2IN_DPO Nat44EiConfigFlags = 4 40 NAT44_EI_ADDR_ONLY_MAPPING Nat44EiConfigFlags = 8 41 NAT44_EI_IF_INSIDE Nat44EiConfigFlags = 16 42 NAT44_EI_IF_OUTSIDE Nat44EiConfigFlags = 32 43 NAT44_EI_STATIC_MAPPING Nat44EiConfigFlags = 64 44 ) 45 46 var ( 47 Nat44EiConfigFlags_name = map[uint8]string{ 48 0: "NAT44_EI_NONE", 49 1: "NAT44_EI_STATIC_MAPPING_ONLY", 50 2: "NAT44_EI_CONNECTION_TRACKING", 51 4: "NAT44_EI_OUT2IN_DPO", 52 8: "NAT44_EI_ADDR_ONLY_MAPPING", 53 16: "NAT44_EI_IF_INSIDE", 54 32: "NAT44_EI_IF_OUTSIDE", 55 64: "NAT44_EI_STATIC_MAPPING", 56 } 57 Nat44EiConfigFlags_value = map[string]uint8{ 58 "NAT44_EI_NONE": 0, 59 "NAT44_EI_STATIC_MAPPING_ONLY": 1, 60 "NAT44_EI_CONNECTION_TRACKING": 2, 61 "NAT44_EI_OUT2IN_DPO": 4, 62 "NAT44_EI_ADDR_ONLY_MAPPING": 8, 63 "NAT44_EI_IF_INSIDE": 16, 64 "NAT44_EI_IF_OUTSIDE": 32, 65 "NAT44_EI_STATIC_MAPPING": 64, 66 } 67 ) 68 69 func (x Nat44EiConfigFlags) String() string { 70 s, ok := Nat44EiConfigFlags_name[uint8(x)] 71 if ok { 72 return s 73 } 74 str := func(n uint8) string { 75 s, ok := Nat44EiConfigFlags_name[uint8(n)] 76 if ok { 77 return s 78 } 79 return "Nat44EiConfigFlags(" + strconv.Itoa(int(n)) + ")" 80 } 81 for i := uint8(0); i <= 8; i++ { 82 val := uint8(x) 83 if val&(1<<i) != 0 { 84 if s != "" { 85 s += "|" 86 } 87 s += str(1 << i) 88 } 89 } 90 if s == "" { 91 return str(uint8(x)) 92 } 93 return s 94 } 95 96 // Nat44EiAddDelAddressRange defines message 'nat44_ei_add_del_address_range'. 97 // InProgress: the message form may change in the future versions 98 type Nat44EiAddDelAddressRange struct { 99 FirstIPAddress ip_types.IP4Address `binapi:"ip4_address,name=first_ip_address" json:"first_ip_address,omitempty"` 100 LastIPAddress ip_types.IP4Address `binapi:"ip4_address,name=last_ip_address" json:"last_ip_address,omitempty"` 101 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 102 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` 103 } 104 105 func (m *Nat44EiAddDelAddressRange) Reset() { *m = Nat44EiAddDelAddressRange{} } 106 func (*Nat44EiAddDelAddressRange) GetMessageName() string { return "nat44_ei_add_del_address_range" } 107 func (*Nat44EiAddDelAddressRange) GetCrcString() string { return "35f21abc" } 108 func (*Nat44EiAddDelAddressRange) GetMessageType() api.MessageType { 109 return api.RequestMessage 110 } 111 112 func (m *Nat44EiAddDelAddressRange) Size() (size int) { 113 if m == nil { 114 return 0 115 } 116 size += 1 * 4 // m.FirstIPAddress 117 size += 1 * 4 // m.LastIPAddress 118 size += 4 // m.VrfID 119 size += 1 // m.IsAdd 120 return size 121 } 122 func (m *Nat44EiAddDelAddressRange) Marshal(b []byte) ([]byte, error) { 123 if b == nil { 124 b = make([]byte, m.Size()) 125 } 126 buf := codec.NewBuffer(b) 127 buf.EncodeBytes(m.FirstIPAddress[:], 4) 128 buf.EncodeBytes(m.LastIPAddress[:], 4) 129 buf.EncodeUint32(m.VrfID) 130 buf.EncodeBool(m.IsAdd) 131 return buf.Bytes(), nil 132 } 133 func (m *Nat44EiAddDelAddressRange) Unmarshal(b []byte) error { 134 buf := codec.NewBuffer(b) 135 copy(m.FirstIPAddress[:], buf.DecodeBytes(4)) 136 copy(m.LastIPAddress[:], buf.DecodeBytes(4)) 137 m.VrfID = buf.DecodeUint32() 138 m.IsAdd = buf.DecodeBool() 139 return nil 140 } 141 142 // Nat44EiAddDelAddressRangeReply defines message 'nat44_ei_add_del_address_range_reply'. 143 // InProgress: the message form may change in the future versions 144 type Nat44EiAddDelAddressRangeReply struct { 145 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 146 } 147 148 func (m *Nat44EiAddDelAddressRangeReply) Reset() { *m = Nat44EiAddDelAddressRangeReply{} } 149 func (*Nat44EiAddDelAddressRangeReply) GetMessageName() string { 150 return "nat44_ei_add_del_address_range_reply" 151 } 152 func (*Nat44EiAddDelAddressRangeReply) GetCrcString() string { return "e8d4e804" } 153 func (*Nat44EiAddDelAddressRangeReply) GetMessageType() api.MessageType { 154 return api.ReplyMessage 155 } 156 157 func (m *Nat44EiAddDelAddressRangeReply) Size() (size int) { 158 if m == nil { 159 return 0 160 } 161 size += 4 // m.Retval 162 return size 163 } 164 func (m *Nat44EiAddDelAddressRangeReply) Marshal(b []byte) ([]byte, error) { 165 if b == nil { 166 b = make([]byte, m.Size()) 167 } 168 buf := codec.NewBuffer(b) 169 buf.EncodeInt32(m.Retval) 170 return buf.Bytes(), nil 171 } 172 func (m *Nat44EiAddDelAddressRangeReply) Unmarshal(b []byte) error { 173 buf := codec.NewBuffer(b) 174 m.Retval = buf.DecodeInt32() 175 return nil 176 } 177 178 // Nat44EiAddDelIdentityMapping defines message 'nat44_ei_add_del_identity_mapping'. 179 // Deprecated: the message will be removed in the future versions 180 type Nat44EiAddDelIdentityMapping struct { 181 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` 182 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 183 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` 184 Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"` 185 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` 186 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 187 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 188 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"` 189 } 190 191 func (m *Nat44EiAddDelIdentityMapping) Reset() { *m = Nat44EiAddDelIdentityMapping{} } 192 func (*Nat44EiAddDelIdentityMapping) GetMessageName() string { 193 return "nat44_ei_add_del_identity_mapping" 194 } 195 func (*Nat44EiAddDelIdentityMapping) GetCrcString() string { return "cb8606b9" } 196 func (*Nat44EiAddDelIdentityMapping) GetMessageType() api.MessageType { 197 return api.RequestMessage 198 } 199 200 func (m *Nat44EiAddDelIdentityMapping) Size() (size int) { 201 if m == nil { 202 return 0 203 } 204 size += 1 // m.IsAdd 205 size += 1 // m.Flags 206 size += 1 * 4 // m.IPAddress 207 size += 1 // m.Protocol 208 size += 2 // m.Port 209 size += 4 // m.SwIfIndex 210 size += 4 // m.VrfID 211 size += 64 // m.Tag 212 return size 213 } 214 func (m *Nat44EiAddDelIdentityMapping) Marshal(b []byte) ([]byte, error) { 215 if b == nil { 216 b = make([]byte, m.Size()) 217 } 218 buf := codec.NewBuffer(b) 219 buf.EncodeBool(m.IsAdd) 220 buf.EncodeUint8(uint8(m.Flags)) 221 buf.EncodeBytes(m.IPAddress[:], 4) 222 buf.EncodeUint8(m.Protocol) 223 buf.EncodeUint16(m.Port) 224 buf.EncodeUint32(uint32(m.SwIfIndex)) 225 buf.EncodeUint32(m.VrfID) 226 buf.EncodeString(m.Tag, 64) 227 return buf.Bytes(), nil 228 } 229 func (m *Nat44EiAddDelIdentityMapping) Unmarshal(b []byte) error { 230 buf := codec.NewBuffer(b) 231 m.IsAdd = buf.DecodeBool() 232 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 233 copy(m.IPAddress[:], buf.DecodeBytes(4)) 234 m.Protocol = buf.DecodeUint8() 235 m.Port = buf.DecodeUint16() 236 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 237 m.VrfID = buf.DecodeUint32() 238 m.Tag = buf.DecodeString(64) 239 return nil 240 } 241 242 // Nat44EiAddDelIdentityMappingReply defines message 'nat44_ei_add_del_identity_mapping_reply'. 243 // Deprecated: the message will be removed in the future versions 244 type Nat44EiAddDelIdentityMappingReply struct { 245 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 246 } 247 248 func (m *Nat44EiAddDelIdentityMappingReply) Reset() { *m = Nat44EiAddDelIdentityMappingReply{} } 249 func (*Nat44EiAddDelIdentityMappingReply) GetMessageName() string { 250 return "nat44_ei_add_del_identity_mapping_reply" 251 } 252 func (*Nat44EiAddDelIdentityMappingReply) GetCrcString() string { return "e8d4e804" } 253 func (*Nat44EiAddDelIdentityMappingReply) GetMessageType() api.MessageType { 254 return api.ReplyMessage 255 } 256 257 func (m *Nat44EiAddDelIdentityMappingReply) Size() (size int) { 258 if m == nil { 259 return 0 260 } 261 size += 4 // m.Retval 262 return size 263 } 264 func (m *Nat44EiAddDelIdentityMappingReply) Marshal(b []byte) ([]byte, error) { 265 if b == nil { 266 b = make([]byte, m.Size()) 267 } 268 buf := codec.NewBuffer(b) 269 buf.EncodeInt32(m.Retval) 270 return buf.Bytes(), nil 271 } 272 func (m *Nat44EiAddDelIdentityMappingReply) Unmarshal(b []byte) error { 273 buf := codec.NewBuffer(b) 274 m.Retval = buf.DecodeInt32() 275 return nil 276 } 277 278 // Nat44EiAddDelInterfaceAddr defines message 'nat44_ei_add_del_interface_addr'. 279 // Deprecated: the message will be removed in the future versions 280 type Nat44EiAddDelInterfaceAddr struct { 281 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` 282 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 283 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 284 } 285 286 func (m *Nat44EiAddDelInterfaceAddr) Reset() { *m = Nat44EiAddDelInterfaceAddr{} } 287 func (*Nat44EiAddDelInterfaceAddr) GetMessageName() string { return "nat44_ei_add_del_interface_addr" } 288 func (*Nat44EiAddDelInterfaceAddr) GetCrcString() string { return "883abbcc" } 289 func (*Nat44EiAddDelInterfaceAddr) GetMessageType() api.MessageType { 290 return api.RequestMessage 291 } 292 293 func (m *Nat44EiAddDelInterfaceAddr) Size() (size int) { 294 if m == nil { 295 return 0 296 } 297 size += 1 // m.IsAdd 298 size += 4 // m.SwIfIndex 299 size += 1 // m.Flags 300 return size 301 } 302 func (m *Nat44EiAddDelInterfaceAddr) Marshal(b []byte) ([]byte, error) { 303 if b == nil { 304 b = make([]byte, m.Size()) 305 } 306 buf := codec.NewBuffer(b) 307 buf.EncodeBool(m.IsAdd) 308 buf.EncodeUint32(uint32(m.SwIfIndex)) 309 buf.EncodeUint8(uint8(m.Flags)) 310 return buf.Bytes(), nil 311 } 312 func (m *Nat44EiAddDelInterfaceAddr) Unmarshal(b []byte) error { 313 buf := codec.NewBuffer(b) 314 m.IsAdd = buf.DecodeBool() 315 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 316 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 317 return nil 318 } 319 320 // Nat44EiAddDelInterfaceAddrReply defines message 'nat44_ei_add_del_interface_addr_reply'. 321 // Deprecated: the message will be removed in the future versions 322 type Nat44EiAddDelInterfaceAddrReply struct { 323 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 324 } 325 326 func (m *Nat44EiAddDelInterfaceAddrReply) Reset() { *m = Nat44EiAddDelInterfaceAddrReply{} } 327 func (*Nat44EiAddDelInterfaceAddrReply) GetMessageName() string { 328 return "nat44_ei_add_del_interface_addr_reply" 329 } 330 func (*Nat44EiAddDelInterfaceAddrReply) GetCrcString() string { return "e8d4e804" } 331 func (*Nat44EiAddDelInterfaceAddrReply) GetMessageType() api.MessageType { 332 return api.ReplyMessage 333 } 334 335 func (m *Nat44EiAddDelInterfaceAddrReply) Size() (size int) { 336 if m == nil { 337 return 0 338 } 339 size += 4 // m.Retval 340 return size 341 } 342 func (m *Nat44EiAddDelInterfaceAddrReply) Marshal(b []byte) ([]byte, error) { 343 if b == nil { 344 b = make([]byte, m.Size()) 345 } 346 buf := codec.NewBuffer(b) 347 buf.EncodeInt32(m.Retval) 348 return buf.Bytes(), nil 349 } 350 func (m *Nat44EiAddDelInterfaceAddrReply) Unmarshal(b []byte) error { 351 buf := codec.NewBuffer(b) 352 m.Retval = buf.DecodeInt32() 353 return nil 354 } 355 356 // Nat44EiAddDelStaticMapping defines message 'nat44_ei_add_del_static_mapping'. 357 // InProgress: the message form may change in the future versions 358 type Nat44EiAddDelStaticMapping struct { 359 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` 360 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 361 LocalIPAddress ip_types.IP4Address `binapi:"ip4_address,name=local_ip_address" json:"local_ip_address,omitempty"` 362 ExternalIPAddress ip_types.IP4Address `binapi:"ip4_address,name=external_ip_address" json:"external_ip_address,omitempty"` 363 Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"` 364 LocalPort uint16 `binapi:"u16,name=local_port" json:"local_port,omitempty"` 365 ExternalPort uint16 `binapi:"u16,name=external_port" json:"external_port,omitempty"` 366 ExternalSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=external_sw_if_index" json:"external_sw_if_index,omitempty"` 367 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 368 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"` 369 } 370 371 func (m *Nat44EiAddDelStaticMapping) Reset() { *m = Nat44EiAddDelStaticMapping{} } 372 func (*Nat44EiAddDelStaticMapping) GetMessageName() string { return "nat44_ei_add_del_static_mapping" } 373 func (*Nat44EiAddDelStaticMapping) GetCrcString() string { return "b404b7fe" } 374 func (*Nat44EiAddDelStaticMapping) GetMessageType() api.MessageType { 375 return api.RequestMessage 376 } 377 378 func (m *Nat44EiAddDelStaticMapping) Size() (size int) { 379 if m == nil { 380 return 0 381 } 382 size += 1 // m.IsAdd 383 size += 1 // m.Flags 384 size += 1 * 4 // m.LocalIPAddress 385 size += 1 * 4 // m.ExternalIPAddress 386 size += 1 // m.Protocol 387 size += 2 // m.LocalPort 388 size += 2 // m.ExternalPort 389 size += 4 // m.ExternalSwIfIndex 390 size += 4 // m.VrfID 391 size += 64 // m.Tag 392 return size 393 } 394 func (m *Nat44EiAddDelStaticMapping) Marshal(b []byte) ([]byte, error) { 395 if b == nil { 396 b = make([]byte, m.Size()) 397 } 398 buf := codec.NewBuffer(b) 399 buf.EncodeBool(m.IsAdd) 400 buf.EncodeUint8(uint8(m.Flags)) 401 buf.EncodeBytes(m.LocalIPAddress[:], 4) 402 buf.EncodeBytes(m.ExternalIPAddress[:], 4) 403 buf.EncodeUint8(m.Protocol) 404 buf.EncodeUint16(m.LocalPort) 405 buf.EncodeUint16(m.ExternalPort) 406 buf.EncodeUint32(uint32(m.ExternalSwIfIndex)) 407 buf.EncodeUint32(m.VrfID) 408 buf.EncodeString(m.Tag, 64) 409 return buf.Bytes(), nil 410 } 411 func (m *Nat44EiAddDelStaticMapping) Unmarshal(b []byte) error { 412 buf := codec.NewBuffer(b) 413 m.IsAdd = buf.DecodeBool() 414 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 415 copy(m.LocalIPAddress[:], buf.DecodeBytes(4)) 416 copy(m.ExternalIPAddress[:], buf.DecodeBytes(4)) 417 m.Protocol = buf.DecodeUint8() 418 m.LocalPort = buf.DecodeUint16() 419 m.ExternalPort = buf.DecodeUint16() 420 m.ExternalSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 421 m.VrfID = buf.DecodeUint32() 422 m.Tag = buf.DecodeString(64) 423 return nil 424 } 425 426 // Nat44EiAddDelStaticMappingReply defines message 'nat44_ei_add_del_static_mapping_reply'. 427 // InProgress: the message form may change in the future versions 428 type Nat44EiAddDelStaticMappingReply struct { 429 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 430 } 431 432 func (m *Nat44EiAddDelStaticMappingReply) Reset() { *m = Nat44EiAddDelStaticMappingReply{} } 433 func (*Nat44EiAddDelStaticMappingReply) GetMessageName() string { 434 return "nat44_ei_add_del_static_mapping_reply" 435 } 436 func (*Nat44EiAddDelStaticMappingReply) GetCrcString() string { return "e8d4e804" } 437 func (*Nat44EiAddDelStaticMappingReply) GetMessageType() api.MessageType { 438 return api.ReplyMessage 439 } 440 441 func (m *Nat44EiAddDelStaticMappingReply) Size() (size int) { 442 if m == nil { 443 return 0 444 } 445 size += 4 // m.Retval 446 return size 447 } 448 func (m *Nat44EiAddDelStaticMappingReply) Marshal(b []byte) ([]byte, error) { 449 if b == nil { 450 b = make([]byte, m.Size()) 451 } 452 buf := codec.NewBuffer(b) 453 buf.EncodeInt32(m.Retval) 454 return buf.Bytes(), nil 455 } 456 func (m *Nat44EiAddDelStaticMappingReply) Unmarshal(b []byte) error { 457 buf := codec.NewBuffer(b) 458 m.Retval = buf.DecodeInt32() 459 return nil 460 } 461 462 // Nat44EiAddressDetails defines message 'nat44_ei_address_details'. 463 // InProgress: the message form may change in the future versions 464 type Nat44EiAddressDetails struct { 465 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` 466 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 467 } 468 469 func (m *Nat44EiAddressDetails) Reset() { *m = Nat44EiAddressDetails{} } 470 func (*Nat44EiAddressDetails) GetMessageName() string { return "nat44_ei_address_details" } 471 func (*Nat44EiAddressDetails) GetCrcString() string { return "318f1202" } 472 func (*Nat44EiAddressDetails) GetMessageType() api.MessageType { 473 return api.ReplyMessage 474 } 475 476 func (m *Nat44EiAddressDetails) Size() (size int) { 477 if m == nil { 478 return 0 479 } 480 size += 1 * 4 // m.IPAddress 481 size += 4 // m.VrfID 482 return size 483 } 484 func (m *Nat44EiAddressDetails) Marshal(b []byte) ([]byte, error) { 485 if b == nil { 486 b = make([]byte, m.Size()) 487 } 488 buf := codec.NewBuffer(b) 489 buf.EncodeBytes(m.IPAddress[:], 4) 490 buf.EncodeUint32(m.VrfID) 491 return buf.Bytes(), nil 492 } 493 func (m *Nat44EiAddressDetails) Unmarshal(b []byte) error { 494 buf := codec.NewBuffer(b) 495 copy(m.IPAddress[:], buf.DecodeBytes(4)) 496 m.VrfID = buf.DecodeUint32() 497 return nil 498 } 499 500 // Nat44EiAddressDump defines message 'nat44_ei_address_dump'. 501 // InProgress: the message form may change in the future versions 502 type Nat44EiAddressDump struct{} 503 504 func (m *Nat44EiAddressDump) Reset() { *m = Nat44EiAddressDump{} } 505 func (*Nat44EiAddressDump) GetMessageName() string { return "nat44_ei_address_dump" } 506 func (*Nat44EiAddressDump) GetCrcString() string { return "51077d14" } 507 func (*Nat44EiAddressDump) GetMessageType() api.MessageType { 508 return api.RequestMessage 509 } 510 511 func (m *Nat44EiAddressDump) Size() (size int) { 512 if m == nil { 513 return 0 514 } 515 return size 516 } 517 func (m *Nat44EiAddressDump) Marshal(b []byte) ([]byte, error) { 518 if b == nil { 519 b = make([]byte, m.Size()) 520 } 521 buf := codec.NewBuffer(b) 522 return buf.Bytes(), nil 523 } 524 func (m *Nat44EiAddressDump) Unmarshal(b []byte) error { 525 return nil 526 } 527 528 // Nat44EiDelSession defines message 'nat44_ei_del_session'. 529 // InProgress: the message form may change in the future versions 530 type Nat44EiDelSession struct { 531 Address ip_types.IP4Address `binapi:"ip4_address,name=address" json:"address,omitempty"` 532 Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"` 533 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` 534 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 535 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 536 ExtHostAddress ip_types.IP4Address `binapi:"ip4_address,name=ext_host_address" json:"ext_host_address,omitempty"` 537 ExtHostPort uint16 `binapi:"u16,name=ext_host_port" json:"ext_host_port,omitempty"` 538 } 539 540 func (m *Nat44EiDelSession) Reset() { *m = Nat44EiDelSession{} } 541 func (*Nat44EiDelSession) GetMessageName() string { return "nat44_ei_del_session" } 542 func (*Nat44EiDelSession) GetCrcString() string { return "74969ffe" } 543 func (*Nat44EiDelSession) GetMessageType() api.MessageType { 544 return api.RequestMessage 545 } 546 547 func (m *Nat44EiDelSession) Size() (size int) { 548 if m == nil { 549 return 0 550 } 551 size += 1 * 4 // m.Address 552 size += 1 // m.Protocol 553 size += 2 // m.Port 554 size += 4 // m.VrfID 555 size += 1 // m.Flags 556 size += 1 * 4 // m.ExtHostAddress 557 size += 2 // m.ExtHostPort 558 return size 559 } 560 func (m *Nat44EiDelSession) Marshal(b []byte) ([]byte, error) { 561 if b == nil { 562 b = make([]byte, m.Size()) 563 } 564 buf := codec.NewBuffer(b) 565 buf.EncodeBytes(m.Address[:], 4) 566 buf.EncodeUint8(m.Protocol) 567 buf.EncodeUint16(m.Port) 568 buf.EncodeUint32(m.VrfID) 569 buf.EncodeUint8(uint8(m.Flags)) 570 buf.EncodeBytes(m.ExtHostAddress[:], 4) 571 buf.EncodeUint16(m.ExtHostPort) 572 return buf.Bytes(), nil 573 } 574 func (m *Nat44EiDelSession) Unmarshal(b []byte) error { 575 buf := codec.NewBuffer(b) 576 copy(m.Address[:], buf.DecodeBytes(4)) 577 m.Protocol = buf.DecodeUint8() 578 m.Port = buf.DecodeUint16() 579 m.VrfID = buf.DecodeUint32() 580 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 581 copy(m.ExtHostAddress[:], buf.DecodeBytes(4)) 582 m.ExtHostPort = buf.DecodeUint16() 583 return nil 584 } 585 586 // Nat44EiDelSessionReply defines message 'nat44_ei_del_session_reply'. 587 // InProgress: the message form may change in the future versions 588 type Nat44EiDelSessionReply struct { 589 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 590 } 591 592 func (m *Nat44EiDelSessionReply) Reset() { *m = Nat44EiDelSessionReply{} } 593 func (*Nat44EiDelSessionReply) GetMessageName() string { return "nat44_ei_del_session_reply" } 594 func (*Nat44EiDelSessionReply) GetCrcString() string { return "e8d4e804" } 595 func (*Nat44EiDelSessionReply) GetMessageType() api.MessageType { 596 return api.ReplyMessage 597 } 598 599 func (m *Nat44EiDelSessionReply) Size() (size int) { 600 if m == nil { 601 return 0 602 } 603 size += 4 // m.Retval 604 return size 605 } 606 func (m *Nat44EiDelSessionReply) Marshal(b []byte) ([]byte, error) { 607 if b == nil { 608 b = make([]byte, m.Size()) 609 } 610 buf := codec.NewBuffer(b) 611 buf.EncodeInt32(m.Retval) 612 return buf.Bytes(), nil 613 } 614 func (m *Nat44EiDelSessionReply) Unmarshal(b []byte) error { 615 buf := codec.NewBuffer(b) 616 m.Retval = buf.DecodeInt32() 617 return nil 618 } 619 620 // Nat44EiDelUser defines message 'nat44_ei_del_user'. 621 // InProgress: the message form may change in the future versions 622 type Nat44EiDelUser struct { 623 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` 624 FibIndex uint32 `binapi:"u32,name=fib_index" json:"fib_index,omitempty"` 625 } 626 627 func (m *Nat44EiDelUser) Reset() { *m = Nat44EiDelUser{} } 628 func (*Nat44EiDelUser) GetMessageName() string { return "nat44_ei_del_user" } 629 func (*Nat44EiDelUser) GetCrcString() string { return "99a9f998" } 630 func (*Nat44EiDelUser) GetMessageType() api.MessageType { 631 return api.RequestMessage 632 } 633 634 func (m *Nat44EiDelUser) Size() (size int) { 635 if m == nil { 636 return 0 637 } 638 size += 1 * 4 // m.IPAddress 639 size += 4 // m.FibIndex 640 return size 641 } 642 func (m *Nat44EiDelUser) Marshal(b []byte) ([]byte, error) { 643 if b == nil { 644 b = make([]byte, m.Size()) 645 } 646 buf := codec.NewBuffer(b) 647 buf.EncodeBytes(m.IPAddress[:], 4) 648 buf.EncodeUint32(m.FibIndex) 649 return buf.Bytes(), nil 650 } 651 func (m *Nat44EiDelUser) Unmarshal(b []byte) error { 652 buf := codec.NewBuffer(b) 653 copy(m.IPAddress[:], buf.DecodeBytes(4)) 654 m.FibIndex = buf.DecodeUint32() 655 return nil 656 } 657 658 // Nat44EiDelUserReply defines message 'nat44_ei_del_user_reply'. 659 // InProgress: the message form may change in the future versions 660 type Nat44EiDelUserReply struct { 661 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 662 } 663 664 func (m *Nat44EiDelUserReply) Reset() { *m = Nat44EiDelUserReply{} } 665 func (*Nat44EiDelUserReply) GetMessageName() string { return "nat44_ei_del_user_reply" } 666 func (*Nat44EiDelUserReply) GetCrcString() string { return "e8d4e804" } 667 func (*Nat44EiDelUserReply) GetMessageType() api.MessageType { 668 return api.ReplyMessage 669 } 670 671 func (m *Nat44EiDelUserReply) Size() (size int) { 672 if m == nil { 673 return 0 674 } 675 size += 4 // m.Retval 676 return size 677 } 678 func (m *Nat44EiDelUserReply) Marshal(b []byte) ([]byte, error) { 679 if b == nil { 680 b = make([]byte, m.Size()) 681 } 682 buf := codec.NewBuffer(b) 683 buf.EncodeInt32(m.Retval) 684 return buf.Bytes(), nil 685 } 686 func (m *Nat44EiDelUserReply) Unmarshal(b []byte) error { 687 buf := codec.NewBuffer(b) 688 m.Retval = buf.DecodeInt32() 689 return nil 690 } 691 692 // Nat44EiForwardingEnableDisable defines message 'nat44_ei_forwarding_enable_disable'. 693 // InProgress: the message form may change in the future versions 694 type Nat44EiForwardingEnableDisable struct { 695 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"` 696 } 697 698 func (m *Nat44EiForwardingEnableDisable) Reset() { *m = Nat44EiForwardingEnableDisable{} } 699 func (*Nat44EiForwardingEnableDisable) GetMessageName() string { 700 return "nat44_ei_forwarding_enable_disable" 701 } 702 func (*Nat44EiForwardingEnableDisable) GetCrcString() string { return "b3e225d2" } 703 func (*Nat44EiForwardingEnableDisable) GetMessageType() api.MessageType { 704 return api.RequestMessage 705 } 706 707 func (m *Nat44EiForwardingEnableDisable) Size() (size int) { 708 if m == nil { 709 return 0 710 } 711 size += 1 // m.Enable 712 return size 713 } 714 func (m *Nat44EiForwardingEnableDisable) Marshal(b []byte) ([]byte, error) { 715 if b == nil { 716 b = make([]byte, m.Size()) 717 } 718 buf := codec.NewBuffer(b) 719 buf.EncodeBool(m.Enable) 720 return buf.Bytes(), nil 721 } 722 func (m *Nat44EiForwardingEnableDisable) Unmarshal(b []byte) error { 723 buf := codec.NewBuffer(b) 724 m.Enable = buf.DecodeBool() 725 return nil 726 } 727 728 // Nat44EiForwardingEnableDisableReply defines message 'nat44_ei_forwarding_enable_disable_reply'. 729 // InProgress: the message form may change in the future versions 730 type Nat44EiForwardingEnableDisableReply struct { 731 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 732 } 733 734 func (m *Nat44EiForwardingEnableDisableReply) Reset() { *m = Nat44EiForwardingEnableDisableReply{} } 735 func (*Nat44EiForwardingEnableDisableReply) GetMessageName() string { 736 return "nat44_ei_forwarding_enable_disable_reply" 737 } 738 func (*Nat44EiForwardingEnableDisableReply) GetCrcString() string { return "e8d4e804" } 739 func (*Nat44EiForwardingEnableDisableReply) GetMessageType() api.MessageType { 740 return api.ReplyMessage 741 } 742 743 func (m *Nat44EiForwardingEnableDisableReply) Size() (size int) { 744 if m == nil { 745 return 0 746 } 747 size += 4 // m.Retval 748 return size 749 } 750 func (m *Nat44EiForwardingEnableDisableReply) Marshal(b []byte) ([]byte, error) { 751 if b == nil { 752 b = make([]byte, m.Size()) 753 } 754 buf := codec.NewBuffer(b) 755 buf.EncodeInt32(m.Retval) 756 return buf.Bytes(), nil 757 } 758 func (m *Nat44EiForwardingEnableDisableReply) Unmarshal(b []byte) error { 759 buf := codec.NewBuffer(b) 760 m.Retval = buf.DecodeInt32() 761 return nil 762 } 763 764 // Nat44EiGetAddrAndPortAllocAlg defines message 'nat44_ei_get_addr_and_port_alloc_alg'. 765 // Deprecated: the message will be removed in the future versions 766 type Nat44EiGetAddrAndPortAllocAlg struct{} 767 768 func (m *Nat44EiGetAddrAndPortAllocAlg) Reset() { *m = Nat44EiGetAddrAndPortAllocAlg{} } 769 func (*Nat44EiGetAddrAndPortAllocAlg) GetMessageName() string { 770 return "nat44_ei_get_addr_and_port_alloc_alg" 771 } 772 func (*Nat44EiGetAddrAndPortAllocAlg) GetCrcString() string { return "51077d14" } 773 func (*Nat44EiGetAddrAndPortAllocAlg) GetMessageType() api.MessageType { 774 return api.RequestMessage 775 } 776 777 func (m *Nat44EiGetAddrAndPortAllocAlg) Size() (size int) { 778 if m == nil { 779 return 0 780 } 781 return size 782 } 783 func (m *Nat44EiGetAddrAndPortAllocAlg) Marshal(b []byte) ([]byte, error) { 784 if b == nil { 785 b = make([]byte, m.Size()) 786 } 787 buf := codec.NewBuffer(b) 788 return buf.Bytes(), nil 789 } 790 func (m *Nat44EiGetAddrAndPortAllocAlg) Unmarshal(b []byte) error { 791 return nil 792 } 793 794 // Nat44EiGetAddrAndPortAllocAlgReply defines message 'nat44_ei_get_addr_and_port_alloc_alg_reply'. 795 // Deprecated: the message will be removed in the future versions 796 type Nat44EiGetAddrAndPortAllocAlgReply struct { 797 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 798 Alg uint8 `binapi:"u8,name=alg" json:"alg,omitempty"` 799 PsidOffset uint8 `binapi:"u8,name=psid_offset" json:"psid_offset,omitempty"` 800 PsidLength uint8 `binapi:"u8,name=psid_length" json:"psid_length,omitempty"` 801 Psid uint16 `binapi:"u16,name=psid" json:"psid,omitempty"` 802 StartPort uint16 `binapi:"u16,name=start_port" json:"start_port,omitempty"` 803 EndPort uint16 `binapi:"u16,name=end_port" json:"end_port,omitempty"` 804 } 805 806 func (m *Nat44EiGetAddrAndPortAllocAlgReply) Reset() { *m = Nat44EiGetAddrAndPortAllocAlgReply{} } 807 func (*Nat44EiGetAddrAndPortAllocAlgReply) GetMessageName() string { 808 return "nat44_ei_get_addr_and_port_alloc_alg_reply" 809 } 810 func (*Nat44EiGetAddrAndPortAllocAlgReply) GetCrcString() string { return "3607a7d0" } 811 func (*Nat44EiGetAddrAndPortAllocAlgReply) GetMessageType() api.MessageType { 812 return api.ReplyMessage 813 } 814 815 func (m *Nat44EiGetAddrAndPortAllocAlgReply) Size() (size int) { 816 if m == nil { 817 return 0 818 } 819 size += 4 // m.Retval 820 size += 1 // m.Alg 821 size += 1 // m.PsidOffset 822 size += 1 // m.PsidLength 823 size += 2 // m.Psid 824 size += 2 // m.StartPort 825 size += 2 // m.EndPort 826 return size 827 } 828 func (m *Nat44EiGetAddrAndPortAllocAlgReply) Marshal(b []byte) ([]byte, error) { 829 if b == nil { 830 b = make([]byte, m.Size()) 831 } 832 buf := codec.NewBuffer(b) 833 buf.EncodeInt32(m.Retval) 834 buf.EncodeUint8(m.Alg) 835 buf.EncodeUint8(m.PsidOffset) 836 buf.EncodeUint8(m.PsidLength) 837 buf.EncodeUint16(m.Psid) 838 buf.EncodeUint16(m.StartPort) 839 buf.EncodeUint16(m.EndPort) 840 return buf.Bytes(), nil 841 } 842 func (m *Nat44EiGetAddrAndPortAllocAlgReply) Unmarshal(b []byte) error { 843 buf := codec.NewBuffer(b) 844 m.Retval = buf.DecodeInt32() 845 m.Alg = buf.DecodeUint8() 846 m.PsidOffset = buf.DecodeUint8() 847 m.PsidLength = buf.DecodeUint8() 848 m.Psid = buf.DecodeUint16() 849 m.StartPort = buf.DecodeUint16() 850 m.EndPort = buf.DecodeUint16() 851 return nil 852 } 853 854 // Nat44EiGetMssClamping defines message 'nat44_ei_get_mss_clamping'. 855 // Deprecated: the message will be removed in the future versions 856 type Nat44EiGetMssClamping struct{} 857 858 func (m *Nat44EiGetMssClamping) Reset() { *m = Nat44EiGetMssClamping{} } 859 func (*Nat44EiGetMssClamping) GetMessageName() string { return "nat44_ei_get_mss_clamping" } 860 func (*Nat44EiGetMssClamping) GetCrcString() string { return "51077d14" } 861 func (*Nat44EiGetMssClamping) GetMessageType() api.MessageType { 862 return api.RequestMessage 863 } 864 865 func (m *Nat44EiGetMssClamping) Size() (size int) { 866 if m == nil { 867 return 0 868 } 869 return size 870 } 871 func (m *Nat44EiGetMssClamping) Marshal(b []byte) ([]byte, error) { 872 if b == nil { 873 b = make([]byte, m.Size()) 874 } 875 buf := codec.NewBuffer(b) 876 return buf.Bytes(), nil 877 } 878 func (m *Nat44EiGetMssClamping) Unmarshal(b []byte) error { 879 return nil 880 } 881 882 // Nat44EiGetMssClampingReply defines message 'nat44_ei_get_mss_clamping_reply'. 883 // Deprecated: the message will be removed in the future versions 884 type Nat44EiGetMssClampingReply struct { 885 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 886 MssValue uint16 `binapi:"u16,name=mss_value" json:"mss_value,omitempty"` 887 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"` 888 } 889 890 func (m *Nat44EiGetMssClampingReply) Reset() { *m = Nat44EiGetMssClampingReply{} } 891 func (*Nat44EiGetMssClampingReply) GetMessageName() string { return "nat44_ei_get_mss_clamping_reply" } 892 func (*Nat44EiGetMssClampingReply) GetCrcString() string { return "1c0b2a78" } 893 func (*Nat44EiGetMssClampingReply) GetMessageType() api.MessageType { 894 return api.ReplyMessage 895 } 896 897 func (m *Nat44EiGetMssClampingReply) Size() (size int) { 898 if m == nil { 899 return 0 900 } 901 size += 4 // m.Retval 902 size += 2 // m.MssValue 903 size += 1 // m.Enable 904 return size 905 } 906 func (m *Nat44EiGetMssClampingReply) Marshal(b []byte) ([]byte, error) { 907 if b == nil { 908 b = make([]byte, m.Size()) 909 } 910 buf := codec.NewBuffer(b) 911 buf.EncodeInt32(m.Retval) 912 buf.EncodeUint16(m.MssValue) 913 buf.EncodeBool(m.Enable) 914 return buf.Bytes(), nil 915 } 916 func (m *Nat44EiGetMssClampingReply) Unmarshal(b []byte) error { 917 buf := codec.NewBuffer(b) 918 m.Retval = buf.DecodeInt32() 919 m.MssValue = buf.DecodeUint16() 920 m.Enable = buf.DecodeBool() 921 return nil 922 } 923 924 // Nat44EiHaFlush defines message 'nat44_ei_ha_flush'. 925 // InProgress: the message form may change in the future versions 926 type Nat44EiHaFlush struct{} 927 928 func (m *Nat44EiHaFlush) Reset() { *m = Nat44EiHaFlush{} } 929 func (*Nat44EiHaFlush) GetMessageName() string { return "nat44_ei_ha_flush" } 930 func (*Nat44EiHaFlush) GetCrcString() string { return "51077d14" } 931 func (*Nat44EiHaFlush) GetMessageType() api.MessageType { 932 return api.RequestMessage 933 } 934 935 func (m *Nat44EiHaFlush) Size() (size int) { 936 if m == nil { 937 return 0 938 } 939 return size 940 } 941 func (m *Nat44EiHaFlush) Marshal(b []byte) ([]byte, error) { 942 if b == nil { 943 b = make([]byte, m.Size()) 944 } 945 buf := codec.NewBuffer(b) 946 return buf.Bytes(), nil 947 } 948 func (m *Nat44EiHaFlush) Unmarshal(b []byte) error { 949 return nil 950 } 951 952 // Nat44EiHaFlushReply defines message 'nat44_ei_ha_flush_reply'. 953 // InProgress: the message form may change in the future versions 954 type Nat44EiHaFlushReply struct { 955 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 956 } 957 958 func (m *Nat44EiHaFlushReply) Reset() { *m = Nat44EiHaFlushReply{} } 959 func (*Nat44EiHaFlushReply) GetMessageName() string { return "nat44_ei_ha_flush_reply" } 960 func (*Nat44EiHaFlushReply) GetCrcString() string { return "e8d4e804" } 961 func (*Nat44EiHaFlushReply) GetMessageType() api.MessageType { 962 return api.ReplyMessage 963 } 964 965 func (m *Nat44EiHaFlushReply) Size() (size int) { 966 if m == nil { 967 return 0 968 } 969 size += 4 // m.Retval 970 return size 971 } 972 func (m *Nat44EiHaFlushReply) Marshal(b []byte) ([]byte, error) { 973 if b == nil { 974 b = make([]byte, m.Size()) 975 } 976 buf := codec.NewBuffer(b) 977 buf.EncodeInt32(m.Retval) 978 return buf.Bytes(), nil 979 } 980 func (m *Nat44EiHaFlushReply) Unmarshal(b []byte) error { 981 buf := codec.NewBuffer(b) 982 m.Retval = buf.DecodeInt32() 983 return nil 984 } 985 986 // Nat44EiHaGetFailover defines message 'nat44_ei_ha_get_failover'. 987 // Deprecated: the message will be removed in the future versions 988 type Nat44EiHaGetFailover struct{} 989 990 func (m *Nat44EiHaGetFailover) Reset() { *m = Nat44EiHaGetFailover{} } 991 func (*Nat44EiHaGetFailover) GetMessageName() string { return "nat44_ei_ha_get_failover" } 992 func (*Nat44EiHaGetFailover) GetCrcString() string { return "51077d14" } 993 func (*Nat44EiHaGetFailover) GetMessageType() api.MessageType { 994 return api.RequestMessage 995 } 996 997 func (m *Nat44EiHaGetFailover) Size() (size int) { 998 if m == nil { 999 return 0 1000 } 1001 return size 1002 } 1003 func (m *Nat44EiHaGetFailover) Marshal(b []byte) ([]byte, error) { 1004 if b == nil { 1005 b = make([]byte, m.Size()) 1006 } 1007 buf := codec.NewBuffer(b) 1008 return buf.Bytes(), nil 1009 } 1010 func (m *Nat44EiHaGetFailover) Unmarshal(b []byte) error { 1011 return nil 1012 } 1013 1014 // Nat44EiHaGetFailoverReply defines message 'nat44_ei_ha_get_failover_reply'. 1015 // Deprecated: the message will be removed in the future versions 1016 type Nat44EiHaGetFailoverReply struct { 1017 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1018 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` 1019 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` 1020 SessionRefreshInterval uint32 `binapi:"u32,name=session_refresh_interval" json:"session_refresh_interval,omitempty"` 1021 } 1022 1023 func (m *Nat44EiHaGetFailoverReply) Reset() { *m = Nat44EiHaGetFailoverReply{} } 1024 func (*Nat44EiHaGetFailoverReply) GetMessageName() string { return "nat44_ei_ha_get_failover_reply" } 1025 func (*Nat44EiHaGetFailoverReply) GetCrcString() string { return "a67d8752" } 1026 func (*Nat44EiHaGetFailoverReply) GetMessageType() api.MessageType { 1027 return api.ReplyMessage 1028 } 1029 1030 func (m *Nat44EiHaGetFailoverReply) Size() (size int) { 1031 if m == nil { 1032 return 0 1033 } 1034 size += 4 // m.Retval 1035 size += 1 * 4 // m.IPAddress 1036 size += 2 // m.Port 1037 size += 4 // m.SessionRefreshInterval 1038 return size 1039 } 1040 func (m *Nat44EiHaGetFailoverReply) Marshal(b []byte) ([]byte, error) { 1041 if b == nil { 1042 b = make([]byte, m.Size()) 1043 } 1044 buf := codec.NewBuffer(b) 1045 buf.EncodeInt32(m.Retval) 1046 buf.EncodeBytes(m.IPAddress[:], 4) 1047 buf.EncodeUint16(m.Port) 1048 buf.EncodeUint32(m.SessionRefreshInterval) 1049 return buf.Bytes(), nil 1050 } 1051 func (m *Nat44EiHaGetFailoverReply) Unmarshal(b []byte) error { 1052 buf := codec.NewBuffer(b) 1053 m.Retval = buf.DecodeInt32() 1054 copy(m.IPAddress[:], buf.DecodeBytes(4)) 1055 m.Port = buf.DecodeUint16() 1056 m.SessionRefreshInterval = buf.DecodeUint32() 1057 return nil 1058 } 1059 1060 // Nat44EiHaGetListener defines message 'nat44_ei_ha_get_listener'. 1061 // Deprecated: the message will be removed in the future versions 1062 type Nat44EiHaGetListener struct{} 1063 1064 func (m *Nat44EiHaGetListener) Reset() { *m = Nat44EiHaGetListener{} } 1065 func (*Nat44EiHaGetListener) GetMessageName() string { return "nat44_ei_ha_get_listener" } 1066 func (*Nat44EiHaGetListener) GetCrcString() string { return "51077d14" } 1067 func (*Nat44EiHaGetListener) GetMessageType() api.MessageType { 1068 return api.RequestMessage 1069 } 1070 1071 func (m *Nat44EiHaGetListener) Size() (size int) { 1072 if m == nil { 1073 return 0 1074 } 1075 return size 1076 } 1077 func (m *Nat44EiHaGetListener) Marshal(b []byte) ([]byte, error) { 1078 if b == nil { 1079 b = make([]byte, m.Size()) 1080 } 1081 buf := codec.NewBuffer(b) 1082 return buf.Bytes(), nil 1083 } 1084 func (m *Nat44EiHaGetListener) Unmarshal(b []byte) error { 1085 return nil 1086 } 1087 1088 // Nat44EiHaGetListenerReply defines message 'nat44_ei_ha_get_listener_reply'. 1089 // Deprecated: the message will be removed in the future versions 1090 type Nat44EiHaGetListenerReply struct { 1091 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1092 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` 1093 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` 1094 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"` 1095 } 1096 1097 func (m *Nat44EiHaGetListenerReply) Reset() { *m = Nat44EiHaGetListenerReply{} } 1098 func (*Nat44EiHaGetListenerReply) GetMessageName() string { return "nat44_ei_ha_get_listener_reply" } 1099 func (*Nat44EiHaGetListenerReply) GetCrcString() string { return "123ea41f" } 1100 func (*Nat44EiHaGetListenerReply) GetMessageType() api.MessageType { 1101 return api.ReplyMessage 1102 } 1103 1104 func (m *Nat44EiHaGetListenerReply) Size() (size int) { 1105 if m == nil { 1106 return 0 1107 } 1108 size += 4 // m.Retval 1109 size += 1 * 4 // m.IPAddress 1110 size += 2 // m.Port 1111 size += 4 // m.PathMtu 1112 return size 1113 } 1114 func (m *Nat44EiHaGetListenerReply) Marshal(b []byte) ([]byte, error) { 1115 if b == nil { 1116 b = make([]byte, m.Size()) 1117 } 1118 buf := codec.NewBuffer(b) 1119 buf.EncodeInt32(m.Retval) 1120 buf.EncodeBytes(m.IPAddress[:], 4) 1121 buf.EncodeUint16(m.Port) 1122 buf.EncodeUint32(m.PathMtu) 1123 return buf.Bytes(), nil 1124 } 1125 func (m *Nat44EiHaGetListenerReply) Unmarshal(b []byte) error { 1126 buf := codec.NewBuffer(b) 1127 m.Retval = buf.DecodeInt32() 1128 copy(m.IPAddress[:], buf.DecodeBytes(4)) 1129 m.Port = buf.DecodeUint16() 1130 m.PathMtu = buf.DecodeUint32() 1131 return nil 1132 } 1133 1134 // Nat44EiHaResync defines message 'nat44_ei_ha_resync'. 1135 // InProgress: the message form may change in the future versions 1136 type Nat44EiHaResync struct { 1137 WantResyncEvent uint8 `binapi:"u8,name=want_resync_event" json:"want_resync_event,omitempty"` 1138 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"` 1139 } 1140 1141 func (m *Nat44EiHaResync) Reset() { *m = Nat44EiHaResync{} } 1142 func (*Nat44EiHaResync) GetMessageName() string { return "nat44_ei_ha_resync" } 1143 func (*Nat44EiHaResync) GetCrcString() string { return "c8ab9e03" } 1144 func (*Nat44EiHaResync) GetMessageType() api.MessageType { 1145 return api.RequestMessage 1146 } 1147 1148 func (m *Nat44EiHaResync) Size() (size int) { 1149 if m == nil { 1150 return 0 1151 } 1152 size += 1 // m.WantResyncEvent 1153 size += 4 // m.PID 1154 return size 1155 } 1156 func (m *Nat44EiHaResync) Marshal(b []byte) ([]byte, error) { 1157 if b == nil { 1158 b = make([]byte, m.Size()) 1159 } 1160 buf := codec.NewBuffer(b) 1161 buf.EncodeUint8(m.WantResyncEvent) 1162 buf.EncodeUint32(m.PID) 1163 return buf.Bytes(), nil 1164 } 1165 func (m *Nat44EiHaResync) Unmarshal(b []byte) error { 1166 buf := codec.NewBuffer(b) 1167 m.WantResyncEvent = buf.DecodeUint8() 1168 m.PID = buf.DecodeUint32() 1169 return nil 1170 } 1171 1172 // Nat44EiHaResyncCompletedEvent defines message 'nat44_ei_ha_resync_completed_event'. 1173 // InProgress: the message form may change in the future versions 1174 type Nat44EiHaResyncCompletedEvent struct { 1175 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"` 1176 MissedCount uint32 `binapi:"u32,name=missed_count" json:"missed_count,omitempty"` 1177 } 1178 1179 func (m *Nat44EiHaResyncCompletedEvent) Reset() { *m = Nat44EiHaResyncCompletedEvent{} } 1180 func (*Nat44EiHaResyncCompletedEvent) GetMessageName() string { 1181 return "nat44_ei_ha_resync_completed_event" 1182 } 1183 func (*Nat44EiHaResyncCompletedEvent) GetCrcString() string { return "fdc598fb" } 1184 func (*Nat44EiHaResyncCompletedEvent) GetMessageType() api.MessageType { 1185 return api.EventMessage 1186 } 1187 1188 func (m *Nat44EiHaResyncCompletedEvent) Size() (size int) { 1189 if m == nil { 1190 return 0 1191 } 1192 size += 4 // m.PID 1193 size += 4 // m.MissedCount 1194 return size 1195 } 1196 func (m *Nat44EiHaResyncCompletedEvent) Marshal(b []byte) ([]byte, error) { 1197 if b == nil { 1198 b = make([]byte, m.Size()) 1199 } 1200 buf := codec.NewBuffer(b) 1201 buf.EncodeUint32(m.PID) 1202 buf.EncodeUint32(m.MissedCount) 1203 return buf.Bytes(), nil 1204 } 1205 func (m *Nat44EiHaResyncCompletedEvent) Unmarshal(b []byte) error { 1206 buf := codec.NewBuffer(b) 1207 m.PID = buf.DecodeUint32() 1208 m.MissedCount = buf.DecodeUint32() 1209 return nil 1210 } 1211 1212 // Nat44EiHaResyncReply defines message 'nat44_ei_ha_resync_reply'. 1213 // InProgress: the message form may change in the future versions 1214 type Nat44EiHaResyncReply struct { 1215 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1216 } 1217 1218 func (m *Nat44EiHaResyncReply) Reset() { *m = Nat44EiHaResyncReply{} } 1219 func (*Nat44EiHaResyncReply) GetMessageName() string { return "nat44_ei_ha_resync_reply" } 1220 func (*Nat44EiHaResyncReply) GetCrcString() string { return "e8d4e804" } 1221 func (*Nat44EiHaResyncReply) GetMessageType() api.MessageType { 1222 return api.ReplyMessage 1223 } 1224 1225 func (m *Nat44EiHaResyncReply) Size() (size int) { 1226 if m == nil { 1227 return 0 1228 } 1229 size += 4 // m.Retval 1230 return size 1231 } 1232 func (m *Nat44EiHaResyncReply) Marshal(b []byte) ([]byte, error) { 1233 if b == nil { 1234 b = make([]byte, m.Size()) 1235 } 1236 buf := codec.NewBuffer(b) 1237 buf.EncodeInt32(m.Retval) 1238 return buf.Bytes(), nil 1239 } 1240 func (m *Nat44EiHaResyncReply) Unmarshal(b []byte) error { 1241 buf := codec.NewBuffer(b) 1242 m.Retval = buf.DecodeInt32() 1243 return nil 1244 } 1245 1246 // Nat44EiHaSetFailover defines message 'nat44_ei_ha_set_failover'. 1247 // InProgress: the message form may change in the future versions 1248 type Nat44EiHaSetFailover struct { 1249 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` 1250 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` 1251 SessionRefreshInterval uint32 `binapi:"u32,name=session_refresh_interval" json:"session_refresh_interval,omitempty"` 1252 } 1253 1254 func (m *Nat44EiHaSetFailover) Reset() { *m = Nat44EiHaSetFailover{} } 1255 func (*Nat44EiHaSetFailover) GetMessageName() string { return "nat44_ei_ha_set_failover" } 1256 func (*Nat44EiHaSetFailover) GetCrcString() string { return "718246af" } 1257 func (*Nat44EiHaSetFailover) GetMessageType() api.MessageType { 1258 return api.RequestMessage 1259 } 1260 1261 func (m *Nat44EiHaSetFailover) Size() (size int) { 1262 if m == nil { 1263 return 0 1264 } 1265 size += 1 * 4 // m.IPAddress 1266 size += 2 // m.Port 1267 size += 4 // m.SessionRefreshInterval 1268 return size 1269 } 1270 func (m *Nat44EiHaSetFailover) Marshal(b []byte) ([]byte, error) { 1271 if b == nil { 1272 b = make([]byte, m.Size()) 1273 } 1274 buf := codec.NewBuffer(b) 1275 buf.EncodeBytes(m.IPAddress[:], 4) 1276 buf.EncodeUint16(m.Port) 1277 buf.EncodeUint32(m.SessionRefreshInterval) 1278 return buf.Bytes(), nil 1279 } 1280 func (m *Nat44EiHaSetFailover) Unmarshal(b []byte) error { 1281 buf := codec.NewBuffer(b) 1282 copy(m.IPAddress[:], buf.DecodeBytes(4)) 1283 m.Port = buf.DecodeUint16() 1284 m.SessionRefreshInterval = buf.DecodeUint32() 1285 return nil 1286 } 1287 1288 // Nat44EiHaSetFailoverReply defines message 'nat44_ei_ha_set_failover_reply'. 1289 // InProgress: the message form may change in the future versions 1290 type Nat44EiHaSetFailoverReply struct { 1291 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1292 } 1293 1294 func (m *Nat44EiHaSetFailoverReply) Reset() { *m = Nat44EiHaSetFailoverReply{} } 1295 func (*Nat44EiHaSetFailoverReply) GetMessageName() string { return "nat44_ei_ha_set_failover_reply" } 1296 func (*Nat44EiHaSetFailoverReply) GetCrcString() string { return "e8d4e804" } 1297 func (*Nat44EiHaSetFailoverReply) GetMessageType() api.MessageType { 1298 return api.ReplyMessage 1299 } 1300 1301 func (m *Nat44EiHaSetFailoverReply) Size() (size int) { 1302 if m == nil { 1303 return 0 1304 } 1305 size += 4 // m.Retval 1306 return size 1307 } 1308 func (m *Nat44EiHaSetFailoverReply) Marshal(b []byte) ([]byte, error) { 1309 if b == nil { 1310 b = make([]byte, m.Size()) 1311 } 1312 buf := codec.NewBuffer(b) 1313 buf.EncodeInt32(m.Retval) 1314 return buf.Bytes(), nil 1315 } 1316 func (m *Nat44EiHaSetFailoverReply) Unmarshal(b []byte) error { 1317 buf := codec.NewBuffer(b) 1318 m.Retval = buf.DecodeInt32() 1319 return nil 1320 } 1321 1322 // Nat44EiHaSetListener defines message 'nat44_ei_ha_set_listener'. 1323 // InProgress: the message form may change in the future versions 1324 type Nat44EiHaSetListener struct { 1325 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` 1326 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` 1327 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"` 1328 } 1329 1330 func (m *Nat44EiHaSetListener) Reset() { *m = Nat44EiHaSetListener{} } 1331 func (*Nat44EiHaSetListener) GetMessageName() string { return "nat44_ei_ha_set_listener" } 1332 func (*Nat44EiHaSetListener) GetCrcString() string { return "e4a8cb4e" } 1333 func (*Nat44EiHaSetListener) GetMessageType() api.MessageType { 1334 return api.RequestMessage 1335 } 1336 1337 func (m *Nat44EiHaSetListener) Size() (size int) { 1338 if m == nil { 1339 return 0 1340 } 1341 size += 1 * 4 // m.IPAddress 1342 size += 2 // m.Port 1343 size += 4 // m.PathMtu 1344 return size 1345 } 1346 func (m *Nat44EiHaSetListener) Marshal(b []byte) ([]byte, error) { 1347 if b == nil { 1348 b = make([]byte, m.Size()) 1349 } 1350 buf := codec.NewBuffer(b) 1351 buf.EncodeBytes(m.IPAddress[:], 4) 1352 buf.EncodeUint16(m.Port) 1353 buf.EncodeUint32(m.PathMtu) 1354 return buf.Bytes(), nil 1355 } 1356 func (m *Nat44EiHaSetListener) Unmarshal(b []byte) error { 1357 buf := codec.NewBuffer(b) 1358 copy(m.IPAddress[:], buf.DecodeBytes(4)) 1359 m.Port = buf.DecodeUint16() 1360 m.PathMtu = buf.DecodeUint32() 1361 return nil 1362 } 1363 1364 // Nat44EiHaSetListenerReply defines message 'nat44_ei_ha_set_listener_reply'. 1365 // InProgress: the message form may change in the future versions 1366 type Nat44EiHaSetListenerReply struct { 1367 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1368 } 1369 1370 func (m *Nat44EiHaSetListenerReply) Reset() { *m = Nat44EiHaSetListenerReply{} } 1371 func (*Nat44EiHaSetListenerReply) GetMessageName() string { return "nat44_ei_ha_set_listener_reply" } 1372 func (*Nat44EiHaSetListenerReply) GetCrcString() string { return "e8d4e804" } 1373 func (*Nat44EiHaSetListenerReply) GetMessageType() api.MessageType { 1374 return api.ReplyMessage 1375 } 1376 1377 func (m *Nat44EiHaSetListenerReply) Size() (size int) { 1378 if m == nil { 1379 return 0 1380 } 1381 size += 4 // m.Retval 1382 return size 1383 } 1384 func (m *Nat44EiHaSetListenerReply) Marshal(b []byte) ([]byte, error) { 1385 if b == nil { 1386 b = make([]byte, m.Size()) 1387 } 1388 buf := codec.NewBuffer(b) 1389 buf.EncodeInt32(m.Retval) 1390 return buf.Bytes(), nil 1391 } 1392 func (m *Nat44EiHaSetListenerReply) Unmarshal(b []byte) error { 1393 buf := codec.NewBuffer(b) 1394 m.Retval = buf.DecodeInt32() 1395 return nil 1396 } 1397 1398 // Nat44EiIdentityMappingDetails defines message 'nat44_ei_identity_mapping_details'. 1399 // Deprecated: the message will be removed in the future versions 1400 type Nat44EiIdentityMappingDetails struct { 1401 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 1402 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` 1403 Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"` 1404 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"` 1405 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 1406 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 1407 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"` 1408 } 1409 1410 func (m *Nat44EiIdentityMappingDetails) Reset() { *m = Nat44EiIdentityMappingDetails{} } 1411 func (*Nat44EiIdentityMappingDetails) GetMessageName() string { 1412 return "nat44_ei_identity_mapping_details" 1413 } 1414 func (*Nat44EiIdentityMappingDetails) GetCrcString() string { return "30d53e26" } 1415 func (*Nat44EiIdentityMappingDetails) GetMessageType() api.MessageType { 1416 return api.ReplyMessage 1417 } 1418 1419 func (m *Nat44EiIdentityMappingDetails) Size() (size int) { 1420 if m == nil { 1421 return 0 1422 } 1423 size += 1 // m.Flags 1424 size += 1 * 4 // m.IPAddress 1425 size += 1 // m.Protocol 1426 size += 2 // m.Port 1427 size += 4 // m.SwIfIndex 1428 size += 4 // m.VrfID 1429 size += 64 // m.Tag 1430 return size 1431 } 1432 func (m *Nat44EiIdentityMappingDetails) Marshal(b []byte) ([]byte, error) { 1433 if b == nil { 1434 b = make([]byte, m.Size()) 1435 } 1436 buf := codec.NewBuffer(b) 1437 buf.EncodeUint8(uint8(m.Flags)) 1438 buf.EncodeBytes(m.IPAddress[:], 4) 1439 buf.EncodeUint8(m.Protocol) 1440 buf.EncodeUint16(m.Port) 1441 buf.EncodeUint32(uint32(m.SwIfIndex)) 1442 buf.EncodeUint32(m.VrfID) 1443 buf.EncodeString(m.Tag, 64) 1444 return buf.Bytes(), nil 1445 } 1446 func (m *Nat44EiIdentityMappingDetails) Unmarshal(b []byte) error { 1447 buf := codec.NewBuffer(b) 1448 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 1449 copy(m.IPAddress[:], buf.DecodeBytes(4)) 1450 m.Protocol = buf.DecodeUint8() 1451 m.Port = buf.DecodeUint16() 1452 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 1453 m.VrfID = buf.DecodeUint32() 1454 m.Tag = buf.DecodeString(64) 1455 return nil 1456 } 1457 1458 // Nat44EiIdentityMappingDump defines message 'nat44_ei_identity_mapping_dump'. 1459 // Deprecated: the message will be removed in the future versions 1460 type Nat44EiIdentityMappingDump struct{} 1461 1462 func (m *Nat44EiIdentityMappingDump) Reset() { *m = Nat44EiIdentityMappingDump{} } 1463 func (*Nat44EiIdentityMappingDump) GetMessageName() string { return "nat44_ei_identity_mapping_dump" } 1464 func (*Nat44EiIdentityMappingDump) GetCrcString() string { return "51077d14" } 1465 func (*Nat44EiIdentityMappingDump) GetMessageType() api.MessageType { 1466 return api.RequestMessage 1467 } 1468 1469 func (m *Nat44EiIdentityMappingDump) Size() (size int) { 1470 if m == nil { 1471 return 0 1472 } 1473 return size 1474 } 1475 func (m *Nat44EiIdentityMappingDump) Marshal(b []byte) ([]byte, error) { 1476 if b == nil { 1477 b = make([]byte, m.Size()) 1478 } 1479 buf := codec.NewBuffer(b) 1480 return buf.Bytes(), nil 1481 } 1482 func (m *Nat44EiIdentityMappingDump) Unmarshal(b []byte) error { 1483 return nil 1484 } 1485 1486 // Nat44EiInterfaceAddDelFeature defines message 'nat44_ei_interface_add_del_feature'. 1487 // InProgress: the message form may change in the future versions 1488 type Nat44EiInterfaceAddDelFeature struct { 1489 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` 1490 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 1491 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 1492 } 1493 1494 func (m *Nat44EiInterfaceAddDelFeature) Reset() { *m = Nat44EiInterfaceAddDelFeature{} } 1495 func (*Nat44EiInterfaceAddDelFeature) GetMessageName() string { 1496 return "nat44_ei_interface_add_del_feature" 1497 } 1498 func (*Nat44EiInterfaceAddDelFeature) GetCrcString() string { return "63a2db8b" } 1499 func (*Nat44EiInterfaceAddDelFeature) GetMessageType() api.MessageType { 1500 return api.RequestMessage 1501 } 1502 1503 func (m *Nat44EiInterfaceAddDelFeature) Size() (size int) { 1504 if m == nil { 1505 return 0 1506 } 1507 size += 1 // m.IsAdd 1508 size += 1 // m.Flags 1509 size += 4 // m.SwIfIndex 1510 return size 1511 } 1512 func (m *Nat44EiInterfaceAddDelFeature) Marshal(b []byte) ([]byte, error) { 1513 if b == nil { 1514 b = make([]byte, m.Size()) 1515 } 1516 buf := codec.NewBuffer(b) 1517 buf.EncodeBool(m.IsAdd) 1518 buf.EncodeUint8(uint8(m.Flags)) 1519 buf.EncodeUint32(uint32(m.SwIfIndex)) 1520 return buf.Bytes(), nil 1521 } 1522 func (m *Nat44EiInterfaceAddDelFeature) Unmarshal(b []byte) error { 1523 buf := codec.NewBuffer(b) 1524 m.IsAdd = buf.DecodeBool() 1525 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 1526 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 1527 return nil 1528 } 1529 1530 // Nat44EiInterfaceAddDelFeatureReply defines message 'nat44_ei_interface_add_del_feature_reply'. 1531 // InProgress: the message form may change in the future versions 1532 type Nat44EiInterfaceAddDelFeatureReply struct { 1533 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1534 } 1535 1536 func (m *Nat44EiInterfaceAddDelFeatureReply) Reset() { *m = Nat44EiInterfaceAddDelFeatureReply{} } 1537 func (*Nat44EiInterfaceAddDelFeatureReply) GetMessageName() string { 1538 return "nat44_ei_interface_add_del_feature_reply" 1539 } 1540 func (*Nat44EiInterfaceAddDelFeatureReply) GetCrcString() string { return "e8d4e804" } 1541 func (*Nat44EiInterfaceAddDelFeatureReply) GetMessageType() api.MessageType { 1542 return api.ReplyMessage 1543 } 1544 1545 func (m *Nat44EiInterfaceAddDelFeatureReply) Size() (size int) { 1546 if m == nil { 1547 return 0 1548 } 1549 size += 4 // m.Retval 1550 return size 1551 } 1552 func (m *Nat44EiInterfaceAddDelFeatureReply) Marshal(b []byte) ([]byte, error) { 1553 if b == nil { 1554 b = make([]byte, m.Size()) 1555 } 1556 buf := codec.NewBuffer(b) 1557 buf.EncodeInt32(m.Retval) 1558 return buf.Bytes(), nil 1559 } 1560 func (m *Nat44EiInterfaceAddDelFeatureReply) Unmarshal(b []byte) error { 1561 buf := codec.NewBuffer(b) 1562 m.Retval = buf.DecodeInt32() 1563 return nil 1564 } 1565 1566 // Nat44EiInterfaceAddDelOutputFeature defines message 'nat44_ei_interface_add_del_output_feature'. 1567 // Deprecated: the message will be removed in the future versions 1568 type Nat44EiInterfaceAddDelOutputFeature struct { 1569 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` 1570 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 1571 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 1572 } 1573 1574 func (m *Nat44EiInterfaceAddDelOutputFeature) Reset() { *m = Nat44EiInterfaceAddDelOutputFeature{} } 1575 func (*Nat44EiInterfaceAddDelOutputFeature) GetMessageName() string { 1576 return "nat44_ei_interface_add_del_output_feature" 1577 } 1578 func (*Nat44EiInterfaceAddDelOutputFeature) GetCrcString() string { return "63a2db8b" } 1579 func (*Nat44EiInterfaceAddDelOutputFeature) GetMessageType() api.MessageType { 1580 return api.RequestMessage 1581 } 1582 1583 func (m *Nat44EiInterfaceAddDelOutputFeature) Size() (size int) { 1584 if m == nil { 1585 return 0 1586 } 1587 size += 1 // m.IsAdd 1588 size += 1 // m.Flags 1589 size += 4 // m.SwIfIndex 1590 return size 1591 } 1592 func (m *Nat44EiInterfaceAddDelOutputFeature) Marshal(b []byte) ([]byte, error) { 1593 if b == nil { 1594 b = make([]byte, m.Size()) 1595 } 1596 buf := codec.NewBuffer(b) 1597 buf.EncodeBool(m.IsAdd) 1598 buf.EncodeUint8(uint8(m.Flags)) 1599 buf.EncodeUint32(uint32(m.SwIfIndex)) 1600 return buf.Bytes(), nil 1601 } 1602 func (m *Nat44EiInterfaceAddDelOutputFeature) Unmarshal(b []byte) error { 1603 buf := codec.NewBuffer(b) 1604 m.IsAdd = buf.DecodeBool() 1605 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 1606 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 1607 return nil 1608 } 1609 1610 // Nat44EiInterfaceAddDelOutputFeatureReply defines message 'nat44_ei_interface_add_del_output_feature_reply'. 1611 // Deprecated: the message will be removed in the future versions 1612 type Nat44EiInterfaceAddDelOutputFeatureReply struct { 1613 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1614 } 1615 1616 func (m *Nat44EiInterfaceAddDelOutputFeatureReply) Reset() { 1617 *m = Nat44EiInterfaceAddDelOutputFeatureReply{} 1618 } 1619 func (*Nat44EiInterfaceAddDelOutputFeatureReply) GetMessageName() string { 1620 return "nat44_ei_interface_add_del_output_feature_reply" 1621 } 1622 func (*Nat44EiInterfaceAddDelOutputFeatureReply) GetCrcString() string { return "e8d4e804" } 1623 func (*Nat44EiInterfaceAddDelOutputFeatureReply) GetMessageType() api.MessageType { 1624 return api.ReplyMessage 1625 } 1626 1627 func (m *Nat44EiInterfaceAddDelOutputFeatureReply) Size() (size int) { 1628 if m == nil { 1629 return 0 1630 } 1631 size += 4 // m.Retval 1632 return size 1633 } 1634 func (m *Nat44EiInterfaceAddDelOutputFeatureReply) Marshal(b []byte) ([]byte, error) { 1635 if b == nil { 1636 b = make([]byte, m.Size()) 1637 } 1638 buf := codec.NewBuffer(b) 1639 buf.EncodeInt32(m.Retval) 1640 return buf.Bytes(), nil 1641 } 1642 func (m *Nat44EiInterfaceAddDelOutputFeatureReply) Unmarshal(b []byte) error { 1643 buf := codec.NewBuffer(b) 1644 m.Retval = buf.DecodeInt32() 1645 return nil 1646 } 1647 1648 // Nat44EiInterfaceAddrDetails defines message 'nat44_ei_interface_addr_details'. 1649 // Deprecated: the message will be removed in the future versions 1650 type Nat44EiInterfaceAddrDetails struct { 1651 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 1652 } 1653 1654 func (m *Nat44EiInterfaceAddrDetails) Reset() { *m = Nat44EiInterfaceAddrDetails{} } 1655 func (*Nat44EiInterfaceAddrDetails) GetMessageName() string { return "nat44_ei_interface_addr_details" } 1656 func (*Nat44EiInterfaceAddrDetails) GetCrcString() string { return "0b45011c" } 1657 func (*Nat44EiInterfaceAddrDetails) GetMessageType() api.MessageType { 1658 return api.ReplyMessage 1659 } 1660 1661 func (m *Nat44EiInterfaceAddrDetails) Size() (size int) { 1662 if m == nil { 1663 return 0 1664 } 1665 size += 4 // m.SwIfIndex 1666 return size 1667 } 1668 func (m *Nat44EiInterfaceAddrDetails) Marshal(b []byte) ([]byte, error) { 1669 if b == nil { 1670 b = make([]byte, m.Size()) 1671 } 1672 buf := codec.NewBuffer(b) 1673 buf.EncodeUint32(uint32(m.SwIfIndex)) 1674 return buf.Bytes(), nil 1675 } 1676 func (m *Nat44EiInterfaceAddrDetails) Unmarshal(b []byte) error { 1677 buf := codec.NewBuffer(b) 1678 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 1679 return nil 1680 } 1681 1682 // Nat44EiInterfaceAddrDump defines message 'nat44_ei_interface_addr_dump'. 1683 // Deprecated: the message will be removed in the future versions 1684 type Nat44EiInterfaceAddrDump struct{} 1685 1686 func (m *Nat44EiInterfaceAddrDump) Reset() { *m = Nat44EiInterfaceAddrDump{} } 1687 func (*Nat44EiInterfaceAddrDump) GetMessageName() string { return "nat44_ei_interface_addr_dump" } 1688 func (*Nat44EiInterfaceAddrDump) GetCrcString() string { return "51077d14" } 1689 func (*Nat44EiInterfaceAddrDump) GetMessageType() api.MessageType { 1690 return api.RequestMessage 1691 } 1692 1693 func (m *Nat44EiInterfaceAddrDump) Size() (size int) { 1694 if m == nil { 1695 return 0 1696 } 1697 return size 1698 } 1699 func (m *Nat44EiInterfaceAddrDump) Marshal(b []byte) ([]byte, error) { 1700 if b == nil { 1701 b = make([]byte, m.Size()) 1702 } 1703 buf := codec.NewBuffer(b) 1704 return buf.Bytes(), nil 1705 } 1706 func (m *Nat44EiInterfaceAddrDump) Unmarshal(b []byte) error { 1707 return nil 1708 } 1709 1710 // Nat44EiInterfaceDetails defines message 'nat44_ei_interface_details'. 1711 // InProgress: the message form may change in the future versions 1712 type Nat44EiInterfaceDetails struct { 1713 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 1714 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 1715 } 1716 1717 func (m *Nat44EiInterfaceDetails) Reset() { *m = Nat44EiInterfaceDetails{} } 1718 func (*Nat44EiInterfaceDetails) GetMessageName() string { return "nat44_ei_interface_details" } 1719 func (*Nat44EiInterfaceDetails) GetCrcString() string { return "f446e508" } 1720 func (*Nat44EiInterfaceDetails) GetMessageType() api.MessageType { 1721 return api.ReplyMessage 1722 } 1723 1724 func (m *Nat44EiInterfaceDetails) Size() (size int) { 1725 if m == nil { 1726 return 0 1727 } 1728 size += 1 // m.Flags 1729 size += 4 // m.SwIfIndex 1730 return size 1731 } 1732 func (m *Nat44EiInterfaceDetails) Marshal(b []byte) ([]byte, error) { 1733 if b == nil { 1734 b = make([]byte, m.Size()) 1735 } 1736 buf := codec.NewBuffer(b) 1737 buf.EncodeUint8(uint8(m.Flags)) 1738 buf.EncodeUint32(uint32(m.SwIfIndex)) 1739 return buf.Bytes(), nil 1740 } 1741 func (m *Nat44EiInterfaceDetails) Unmarshal(b []byte) error { 1742 buf := codec.NewBuffer(b) 1743 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 1744 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 1745 return nil 1746 } 1747 1748 // Nat44EiInterfaceDump defines message 'nat44_ei_interface_dump'. 1749 // InProgress: the message form may change in the future versions 1750 type Nat44EiInterfaceDump struct{} 1751 1752 func (m *Nat44EiInterfaceDump) Reset() { *m = Nat44EiInterfaceDump{} } 1753 func (*Nat44EiInterfaceDump) GetMessageName() string { return "nat44_ei_interface_dump" } 1754 func (*Nat44EiInterfaceDump) GetCrcString() string { return "51077d14" } 1755 func (*Nat44EiInterfaceDump) GetMessageType() api.MessageType { 1756 return api.RequestMessage 1757 } 1758 1759 func (m *Nat44EiInterfaceDump) Size() (size int) { 1760 if m == nil { 1761 return 0 1762 } 1763 return size 1764 } 1765 func (m *Nat44EiInterfaceDump) Marshal(b []byte) ([]byte, error) { 1766 if b == nil { 1767 b = make([]byte, m.Size()) 1768 } 1769 buf := codec.NewBuffer(b) 1770 return buf.Bytes(), nil 1771 } 1772 func (m *Nat44EiInterfaceDump) Unmarshal(b []byte) error { 1773 return nil 1774 } 1775 1776 // Nat44EiInterfaceOutputFeatureDetails defines message 'nat44_ei_interface_output_feature_details'. 1777 // Deprecated: the message will be removed in the future versions 1778 type Nat44EiInterfaceOutputFeatureDetails struct { 1779 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 1780 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` 1781 } 1782 1783 func (m *Nat44EiInterfaceOutputFeatureDetails) Reset() { *m = Nat44EiInterfaceOutputFeatureDetails{} } 1784 func (*Nat44EiInterfaceOutputFeatureDetails) GetMessageName() string { 1785 return "nat44_ei_interface_output_feature_details" 1786 } 1787 func (*Nat44EiInterfaceOutputFeatureDetails) GetCrcString() string { return "f446e508" } 1788 func (*Nat44EiInterfaceOutputFeatureDetails) GetMessageType() api.MessageType { 1789 return api.ReplyMessage 1790 } 1791 1792 func (m *Nat44EiInterfaceOutputFeatureDetails) Size() (size int) { 1793 if m == nil { 1794 return 0 1795 } 1796 size += 1 // m.Flags 1797 size += 4 // m.SwIfIndex 1798 return size 1799 } 1800 func (m *Nat44EiInterfaceOutputFeatureDetails) Marshal(b []byte) ([]byte, error) { 1801 if b == nil { 1802 b = make([]byte, m.Size()) 1803 } 1804 buf := codec.NewBuffer(b) 1805 buf.EncodeUint8(uint8(m.Flags)) 1806 buf.EncodeUint32(uint32(m.SwIfIndex)) 1807 return buf.Bytes(), nil 1808 } 1809 func (m *Nat44EiInterfaceOutputFeatureDetails) Unmarshal(b []byte) error { 1810 buf := codec.NewBuffer(b) 1811 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 1812 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 1813 return nil 1814 } 1815 1816 // Nat44EiInterfaceOutputFeatureDump defines message 'nat44_ei_interface_output_feature_dump'. 1817 // Deprecated: the message will be removed in the future versions 1818 type Nat44EiInterfaceOutputFeatureDump struct{} 1819 1820 func (m *Nat44EiInterfaceOutputFeatureDump) Reset() { *m = Nat44EiInterfaceOutputFeatureDump{} } 1821 func (*Nat44EiInterfaceOutputFeatureDump) GetMessageName() string { 1822 return "nat44_ei_interface_output_feature_dump" 1823 } 1824 func (*Nat44EiInterfaceOutputFeatureDump) GetCrcString() string { return "51077d14" } 1825 func (*Nat44EiInterfaceOutputFeatureDump) GetMessageType() api.MessageType { 1826 return api.RequestMessage 1827 } 1828 1829 func (m *Nat44EiInterfaceOutputFeatureDump) Size() (size int) { 1830 if m == nil { 1831 return 0 1832 } 1833 return size 1834 } 1835 func (m *Nat44EiInterfaceOutputFeatureDump) Marshal(b []byte) ([]byte, error) { 1836 if b == nil { 1837 b = make([]byte, m.Size()) 1838 } 1839 buf := codec.NewBuffer(b) 1840 return buf.Bytes(), nil 1841 } 1842 func (m *Nat44EiInterfaceOutputFeatureDump) Unmarshal(b []byte) error { 1843 return nil 1844 } 1845 1846 // Nat44EiIpfixEnableDisable defines message 'nat44_ei_ipfix_enable_disable'. 1847 // InProgress: the message form may change in the future versions 1848 type Nat44EiIpfixEnableDisable struct { 1849 DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"` 1850 SrcPort uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"` 1851 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"` 1852 } 1853 1854 func (m *Nat44EiIpfixEnableDisable) Reset() { *m = Nat44EiIpfixEnableDisable{} } 1855 func (*Nat44EiIpfixEnableDisable) GetMessageName() string { return "nat44_ei_ipfix_enable_disable" } 1856 func (*Nat44EiIpfixEnableDisable) GetCrcString() string { return "9af4a2d2" } 1857 func (*Nat44EiIpfixEnableDisable) GetMessageType() api.MessageType { 1858 return api.RequestMessage 1859 } 1860 1861 func (m *Nat44EiIpfixEnableDisable) Size() (size int) { 1862 if m == nil { 1863 return 0 1864 } 1865 size += 4 // m.DomainID 1866 size += 2 // m.SrcPort 1867 size += 1 // m.Enable 1868 return size 1869 } 1870 func (m *Nat44EiIpfixEnableDisable) Marshal(b []byte) ([]byte, error) { 1871 if b == nil { 1872 b = make([]byte, m.Size()) 1873 } 1874 buf := codec.NewBuffer(b) 1875 buf.EncodeUint32(m.DomainID) 1876 buf.EncodeUint16(m.SrcPort) 1877 buf.EncodeBool(m.Enable) 1878 return buf.Bytes(), nil 1879 } 1880 func (m *Nat44EiIpfixEnableDisable) Unmarshal(b []byte) error { 1881 buf := codec.NewBuffer(b) 1882 m.DomainID = buf.DecodeUint32() 1883 m.SrcPort = buf.DecodeUint16() 1884 m.Enable = buf.DecodeBool() 1885 return nil 1886 } 1887 1888 // Nat44EiIpfixEnableDisableReply defines message 'nat44_ei_ipfix_enable_disable_reply'. 1889 // InProgress: the message form may change in the future versions 1890 type Nat44EiIpfixEnableDisableReply struct { 1891 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1892 } 1893 1894 func (m *Nat44EiIpfixEnableDisableReply) Reset() { *m = Nat44EiIpfixEnableDisableReply{} } 1895 func (*Nat44EiIpfixEnableDisableReply) GetMessageName() string { 1896 return "nat44_ei_ipfix_enable_disable_reply" 1897 } 1898 func (*Nat44EiIpfixEnableDisableReply) GetCrcString() string { return "e8d4e804" } 1899 func (*Nat44EiIpfixEnableDisableReply) GetMessageType() api.MessageType { 1900 return api.ReplyMessage 1901 } 1902 1903 func (m *Nat44EiIpfixEnableDisableReply) Size() (size int) { 1904 if m == nil { 1905 return 0 1906 } 1907 size += 4 // m.Retval 1908 return size 1909 } 1910 func (m *Nat44EiIpfixEnableDisableReply) Marshal(b []byte) ([]byte, error) { 1911 if b == nil { 1912 b = make([]byte, m.Size()) 1913 } 1914 buf := codec.NewBuffer(b) 1915 buf.EncodeInt32(m.Retval) 1916 return buf.Bytes(), nil 1917 } 1918 func (m *Nat44EiIpfixEnableDisableReply) Unmarshal(b []byte) error { 1919 buf := codec.NewBuffer(b) 1920 m.Retval = buf.DecodeInt32() 1921 return nil 1922 } 1923 1924 // Nat44EiPluginEnableDisable defines message 'nat44_ei_plugin_enable_disable'. 1925 // InProgress: the message form may change in the future versions 1926 type Nat44EiPluginEnableDisable struct { 1927 InsideVrf uint32 `binapi:"u32,name=inside_vrf" json:"inside_vrf,omitempty"` 1928 OutsideVrf uint32 `binapi:"u32,name=outside_vrf" json:"outside_vrf,omitempty"` 1929 Users uint32 `binapi:"u32,name=users" json:"users,omitempty"` 1930 UserMemory uint32 `binapi:"u32,name=user_memory" json:"user_memory,omitempty"` 1931 Sessions uint32 `binapi:"u32,name=sessions" json:"sessions,omitempty"` 1932 SessionMemory uint32 `binapi:"u32,name=session_memory" json:"session_memory,omitempty"` 1933 UserSessions uint32 `binapi:"u32,name=user_sessions" json:"user_sessions,omitempty"` 1934 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"` 1935 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 1936 } 1937 1938 func (m *Nat44EiPluginEnableDisable) Reset() { *m = Nat44EiPluginEnableDisable{} } 1939 func (*Nat44EiPluginEnableDisable) GetMessageName() string { return "nat44_ei_plugin_enable_disable" } 1940 func (*Nat44EiPluginEnableDisable) GetCrcString() string { return "bf692144" } 1941 func (*Nat44EiPluginEnableDisable) GetMessageType() api.MessageType { 1942 return api.RequestMessage 1943 } 1944 1945 func (m *Nat44EiPluginEnableDisable) Size() (size int) { 1946 if m == nil { 1947 return 0 1948 } 1949 size += 4 // m.InsideVrf 1950 size += 4 // m.OutsideVrf 1951 size += 4 // m.Users 1952 size += 4 // m.UserMemory 1953 size += 4 // m.Sessions 1954 size += 4 // m.SessionMemory 1955 size += 4 // m.UserSessions 1956 size += 1 // m.Enable 1957 size += 1 // m.Flags 1958 return size 1959 } 1960 func (m *Nat44EiPluginEnableDisable) Marshal(b []byte) ([]byte, error) { 1961 if b == nil { 1962 b = make([]byte, m.Size()) 1963 } 1964 buf := codec.NewBuffer(b) 1965 buf.EncodeUint32(m.InsideVrf) 1966 buf.EncodeUint32(m.OutsideVrf) 1967 buf.EncodeUint32(m.Users) 1968 buf.EncodeUint32(m.UserMemory) 1969 buf.EncodeUint32(m.Sessions) 1970 buf.EncodeUint32(m.SessionMemory) 1971 buf.EncodeUint32(m.UserSessions) 1972 buf.EncodeBool(m.Enable) 1973 buf.EncodeUint8(uint8(m.Flags)) 1974 return buf.Bytes(), nil 1975 } 1976 func (m *Nat44EiPluginEnableDisable) Unmarshal(b []byte) error { 1977 buf := codec.NewBuffer(b) 1978 m.InsideVrf = buf.DecodeUint32() 1979 m.OutsideVrf = buf.DecodeUint32() 1980 m.Users = buf.DecodeUint32() 1981 m.UserMemory = buf.DecodeUint32() 1982 m.Sessions = buf.DecodeUint32() 1983 m.SessionMemory = buf.DecodeUint32() 1984 m.UserSessions = buf.DecodeUint32() 1985 m.Enable = buf.DecodeBool() 1986 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 1987 return nil 1988 } 1989 1990 // Nat44EiPluginEnableDisableReply defines message 'nat44_ei_plugin_enable_disable_reply'. 1991 // InProgress: the message form may change in the future versions 1992 type Nat44EiPluginEnableDisableReply struct { 1993 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 1994 } 1995 1996 func (m *Nat44EiPluginEnableDisableReply) Reset() { *m = Nat44EiPluginEnableDisableReply{} } 1997 func (*Nat44EiPluginEnableDisableReply) GetMessageName() string { 1998 return "nat44_ei_plugin_enable_disable_reply" 1999 } 2000 func (*Nat44EiPluginEnableDisableReply) GetCrcString() string { return "e8d4e804" } 2001 func (*Nat44EiPluginEnableDisableReply) GetMessageType() api.MessageType { 2002 return api.ReplyMessage 2003 } 2004 2005 func (m *Nat44EiPluginEnableDisableReply) Size() (size int) { 2006 if m == nil { 2007 return 0 2008 } 2009 size += 4 // m.Retval 2010 return size 2011 } 2012 func (m *Nat44EiPluginEnableDisableReply) Marshal(b []byte) ([]byte, error) { 2013 if b == nil { 2014 b = make([]byte, m.Size()) 2015 } 2016 buf := codec.NewBuffer(b) 2017 buf.EncodeInt32(m.Retval) 2018 return buf.Bytes(), nil 2019 } 2020 func (m *Nat44EiPluginEnableDisableReply) Unmarshal(b []byte) error { 2021 buf := codec.NewBuffer(b) 2022 m.Retval = buf.DecodeInt32() 2023 return nil 2024 } 2025 2026 // Nat44EiSetAddrAndPortAllocAlg defines message 'nat44_ei_set_addr_and_port_alloc_alg'. 2027 // InProgress: the message form may change in the future versions 2028 type Nat44EiSetAddrAndPortAllocAlg struct { 2029 Alg uint8 `binapi:"u8,name=alg" json:"alg,omitempty"` 2030 PsidOffset uint8 `binapi:"u8,name=psid_offset" json:"psid_offset,omitempty"` 2031 PsidLength uint8 `binapi:"u8,name=psid_length" json:"psid_length,omitempty"` 2032 Psid uint16 `binapi:"u16,name=psid" json:"psid,omitempty"` 2033 StartPort uint16 `binapi:"u16,name=start_port" json:"start_port,omitempty"` 2034 EndPort uint16 `binapi:"u16,name=end_port" json:"end_port,omitempty"` 2035 } 2036 2037 func (m *Nat44EiSetAddrAndPortAllocAlg) Reset() { *m = Nat44EiSetAddrAndPortAllocAlg{} } 2038 func (*Nat44EiSetAddrAndPortAllocAlg) GetMessageName() string { 2039 return "nat44_ei_set_addr_and_port_alloc_alg" 2040 } 2041 func (*Nat44EiSetAddrAndPortAllocAlg) GetCrcString() string { return "deeb746f" } 2042 func (*Nat44EiSetAddrAndPortAllocAlg) GetMessageType() api.MessageType { 2043 return api.RequestMessage 2044 } 2045 2046 func (m *Nat44EiSetAddrAndPortAllocAlg) Size() (size int) { 2047 if m == nil { 2048 return 0 2049 } 2050 size += 1 // m.Alg 2051 size += 1 // m.PsidOffset 2052 size += 1 // m.PsidLength 2053 size += 2 // m.Psid 2054 size += 2 // m.StartPort 2055 size += 2 // m.EndPort 2056 return size 2057 } 2058 func (m *Nat44EiSetAddrAndPortAllocAlg) Marshal(b []byte) ([]byte, error) { 2059 if b == nil { 2060 b = make([]byte, m.Size()) 2061 } 2062 buf := codec.NewBuffer(b) 2063 buf.EncodeUint8(m.Alg) 2064 buf.EncodeUint8(m.PsidOffset) 2065 buf.EncodeUint8(m.PsidLength) 2066 buf.EncodeUint16(m.Psid) 2067 buf.EncodeUint16(m.StartPort) 2068 buf.EncodeUint16(m.EndPort) 2069 return buf.Bytes(), nil 2070 } 2071 func (m *Nat44EiSetAddrAndPortAllocAlg) Unmarshal(b []byte) error { 2072 buf := codec.NewBuffer(b) 2073 m.Alg = buf.DecodeUint8() 2074 m.PsidOffset = buf.DecodeUint8() 2075 m.PsidLength = buf.DecodeUint8() 2076 m.Psid = buf.DecodeUint16() 2077 m.StartPort = buf.DecodeUint16() 2078 m.EndPort = buf.DecodeUint16() 2079 return nil 2080 } 2081 2082 // Nat44EiSetAddrAndPortAllocAlgReply defines message 'nat44_ei_set_addr_and_port_alloc_alg_reply'. 2083 // InProgress: the message form may change in the future versions 2084 type Nat44EiSetAddrAndPortAllocAlgReply struct { 2085 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 2086 } 2087 2088 func (m *Nat44EiSetAddrAndPortAllocAlgReply) Reset() { *m = Nat44EiSetAddrAndPortAllocAlgReply{} } 2089 func (*Nat44EiSetAddrAndPortAllocAlgReply) GetMessageName() string { 2090 return "nat44_ei_set_addr_and_port_alloc_alg_reply" 2091 } 2092 func (*Nat44EiSetAddrAndPortAllocAlgReply) GetCrcString() string { return "e8d4e804" } 2093 func (*Nat44EiSetAddrAndPortAllocAlgReply) GetMessageType() api.MessageType { 2094 return api.ReplyMessage 2095 } 2096 2097 func (m *Nat44EiSetAddrAndPortAllocAlgReply) Size() (size int) { 2098 if m == nil { 2099 return 0 2100 } 2101 size += 4 // m.Retval 2102 return size 2103 } 2104 func (m *Nat44EiSetAddrAndPortAllocAlgReply) Marshal(b []byte) ([]byte, error) { 2105 if b == nil { 2106 b = make([]byte, m.Size()) 2107 } 2108 buf := codec.NewBuffer(b) 2109 buf.EncodeInt32(m.Retval) 2110 return buf.Bytes(), nil 2111 } 2112 func (m *Nat44EiSetAddrAndPortAllocAlgReply) Unmarshal(b []byte) error { 2113 buf := codec.NewBuffer(b) 2114 m.Retval = buf.DecodeInt32() 2115 return nil 2116 } 2117 2118 // Nat44EiSetFqOptions defines message 'nat44_ei_set_fq_options'. 2119 // InProgress: the message form may change in the future versions 2120 type Nat44EiSetFqOptions struct { 2121 FrameQueueNelts uint32 `binapi:"u32,name=frame_queue_nelts" json:"frame_queue_nelts,omitempty"` 2122 } 2123 2124 func (m *Nat44EiSetFqOptions) Reset() { *m = Nat44EiSetFqOptions{} } 2125 func (*Nat44EiSetFqOptions) GetMessageName() string { return "nat44_ei_set_fq_options" } 2126 func (*Nat44EiSetFqOptions) GetCrcString() string { return "2399bd71" } 2127 func (*Nat44EiSetFqOptions) GetMessageType() api.MessageType { 2128 return api.RequestMessage 2129 } 2130 2131 func (m *Nat44EiSetFqOptions) Size() (size int) { 2132 if m == nil { 2133 return 0 2134 } 2135 size += 4 // m.FrameQueueNelts 2136 return size 2137 } 2138 func (m *Nat44EiSetFqOptions) Marshal(b []byte) ([]byte, error) { 2139 if b == nil { 2140 b = make([]byte, m.Size()) 2141 } 2142 buf := codec.NewBuffer(b) 2143 buf.EncodeUint32(m.FrameQueueNelts) 2144 return buf.Bytes(), nil 2145 } 2146 func (m *Nat44EiSetFqOptions) Unmarshal(b []byte) error { 2147 buf := codec.NewBuffer(b) 2148 m.FrameQueueNelts = buf.DecodeUint32() 2149 return nil 2150 } 2151 2152 // Nat44EiSetFqOptionsReply defines message 'nat44_ei_set_fq_options_reply'. 2153 // InProgress: the message form may change in the future versions 2154 type Nat44EiSetFqOptionsReply struct { 2155 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 2156 } 2157 2158 func (m *Nat44EiSetFqOptionsReply) Reset() { *m = Nat44EiSetFqOptionsReply{} } 2159 func (*Nat44EiSetFqOptionsReply) GetMessageName() string { return "nat44_ei_set_fq_options_reply" } 2160 func (*Nat44EiSetFqOptionsReply) GetCrcString() string { return "e8d4e804" } 2161 func (*Nat44EiSetFqOptionsReply) GetMessageType() api.MessageType { 2162 return api.ReplyMessage 2163 } 2164 2165 func (m *Nat44EiSetFqOptionsReply) Size() (size int) { 2166 if m == nil { 2167 return 0 2168 } 2169 size += 4 // m.Retval 2170 return size 2171 } 2172 func (m *Nat44EiSetFqOptionsReply) Marshal(b []byte) ([]byte, error) { 2173 if b == nil { 2174 b = make([]byte, m.Size()) 2175 } 2176 buf := codec.NewBuffer(b) 2177 buf.EncodeInt32(m.Retval) 2178 return buf.Bytes(), nil 2179 } 2180 func (m *Nat44EiSetFqOptionsReply) Unmarshal(b []byte) error { 2181 buf := codec.NewBuffer(b) 2182 m.Retval = buf.DecodeInt32() 2183 return nil 2184 } 2185 2186 // Nat44EiSetLogLevel defines message 'nat44_ei_set_log_level'. 2187 // Deprecated: the message will be removed in the future versions 2188 type Nat44EiSetLogLevel struct { 2189 LogLevel nat_types.NatLogLevel `binapi:"nat_log_level,name=log_level" json:"log_level,omitempty"` 2190 } 2191 2192 func (m *Nat44EiSetLogLevel) Reset() { *m = Nat44EiSetLogLevel{} } 2193 func (*Nat44EiSetLogLevel) GetMessageName() string { return "nat44_ei_set_log_level" } 2194 func (*Nat44EiSetLogLevel) GetCrcString() string { return "70076bfe" } 2195 func (*Nat44EiSetLogLevel) GetMessageType() api.MessageType { 2196 return api.RequestMessage 2197 } 2198 2199 func (m *Nat44EiSetLogLevel) Size() (size int) { 2200 if m == nil { 2201 return 0 2202 } 2203 size += 1 // m.LogLevel 2204 return size 2205 } 2206 func (m *Nat44EiSetLogLevel) Marshal(b []byte) ([]byte, error) { 2207 if b == nil { 2208 b = make([]byte, m.Size()) 2209 } 2210 buf := codec.NewBuffer(b) 2211 buf.EncodeUint8(uint8(m.LogLevel)) 2212 return buf.Bytes(), nil 2213 } 2214 func (m *Nat44EiSetLogLevel) Unmarshal(b []byte) error { 2215 buf := codec.NewBuffer(b) 2216 m.LogLevel = nat_types.NatLogLevel(buf.DecodeUint8()) 2217 return nil 2218 } 2219 2220 // Nat44EiSetLogLevelReply defines message 'nat44_ei_set_log_level_reply'. 2221 // Deprecated: the message will be removed in the future versions 2222 type Nat44EiSetLogLevelReply struct { 2223 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 2224 } 2225 2226 func (m *Nat44EiSetLogLevelReply) Reset() { *m = Nat44EiSetLogLevelReply{} } 2227 func (*Nat44EiSetLogLevelReply) GetMessageName() string { return "nat44_ei_set_log_level_reply" } 2228 func (*Nat44EiSetLogLevelReply) GetCrcString() string { return "e8d4e804" } 2229 func (*Nat44EiSetLogLevelReply) GetMessageType() api.MessageType { 2230 return api.ReplyMessage 2231 } 2232 2233 func (m *Nat44EiSetLogLevelReply) Size() (size int) { 2234 if m == nil { 2235 return 0 2236 } 2237 size += 4 // m.Retval 2238 return size 2239 } 2240 func (m *Nat44EiSetLogLevelReply) Marshal(b []byte) ([]byte, error) { 2241 if b == nil { 2242 b = make([]byte, m.Size()) 2243 } 2244 buf := codec.NewBuffer(b) 2245 buf.EncodeInt32(m.Retval) 2246 return buf.Bytes(), nil 2247 } 2248 func (m *Nat44EiSetLogLevelReply) Unmarshal(b []byte) error { 2249 buf := codec.NewBuffer(b) 2250 m.Retval = buf.DecodeInt32() 2251 return nil 2252 } 2253 2254 // Nat44EiSetMssClamping defines message 'nat44_ei_set_mss_clamping'. 2255 // InProgress: the message form may change in the future versions 2256 type Nat44EiSetMssClamping struct { 2257 MssValue uint16 `binapi:"u16,name=mss_value" json:"mss_value,omitempty"` 2258 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"` 2259 } 2260 2261 func (m *Nat44EiSetMssClamping) Reset() { *m = Nat44EiSetMssClamping{} } 2262 func (*Nat44EiSetMssClamping) GetMessageName() string { return "nat44_ei_set_mss_clamping" } 2263 func (*Nat44EiSetMssClamping) GetCrcString() string { return "25e90abb" } 2264 func (*Nat44EiSetMssClamping) GetMessageType() api.MessageType { 2265 return api.RequestMessage 2266 } 2267 2268 func (m *Nat44EiSetMssClamping) Size() (size int) { 2269 if m == nil { 2270 return 0 2271 } 2272 size += 2 // m.MssValue 2273 size += 1 // m.Enable 2274 return size 2275 } 2276 func (m *Nat44EiSetMssClamping) Marshal(b []byte) ([]byte, error) { 2277 if b == nil { 2278 b = make([]byte, m.Size()) 2279 } 2280 buf := codec.NewBuffer(b) 2281 buf.EncodeUint16(m.MssValue) 2282 buf.EncodeBool(m.Enable) 2283 return buf.Bytes(), nil 2284 } 2285 func (m *Nat44EiSetMssClamping) Unmarshal(b []byte) error { 2286 buf := codec.NewBuffer(b) 2287 m.MssValue = buf.DecodeUint16() 2288 m.Enable = buf.DecodeBool() 2289 return nil 2290 } 2291 2292 // Nat44EiSetMssClampingReply defines message 'nat44_ei_set_mss_clamping_reply'. 2293 // InProgress: the message form may change in the future versions 2294 type Nat44EiSetMssClampingReply struct { 2295 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 2296 } 2297 2298 func (m *Nat44EiSetMssClampingReply) Reset() { *m = Nat44EiSetMssClampingReply{} } 2299 func (*Nat44EiSetMssClampingReply) GetMessageName() string { return "nat44_ei_set_mss_clamping_reply" } 2300 func (*Nat44EiSetMssClampingReply) GetCrcString() string { return "e8d4e804" } 2301 func (*Nat44EiSetMssClampingReply) GetMessageType() api.MessageType { 2302 return api.ReplyMessage 2303 } 2304 2305 func (m *Nat44EiSetMssClampingReply) Size() (size int) { 2306 if m == nil { 2307 return 0 2308 } 2309 size += 4 // m.Retval 2310 return size 2311 } 2312 func (m *Nat44EiSetMssClampingReply) Marshal(b []byte) ([]byte, error) { 2313 if b == nil { 2314 b = make([]byte, m.Size()) 2315 } 2316 buf := codec.NewBuffer(b) 2317 buf.EncodeInt32(m.Retval) 2318 return buf.Bytes(), nil 2319 } 2320 func (m *Nat44EiSetMssClampingReply) Unmarshal(b []byte) error { 2321 buf := codec.NewBuffer(b) 2322 m.Retval = buf.DecodeInt32() 2323 return nil 2324 } 2325 2326 // Nat44EiSetTimeouts defines message 'nat44_ei_set_timeouts'. 2327 // InProgress: the message form may change in the future versions 2328 type Nat44EiSetTimeouts struct { 2329 UDP uint32 `binapi:"u32,name=udp" json:"udp,omitempty"` 2330 TCPEstablished uint32 `binapi:"u32,name=tcp_established" json:"tcp_established,omitempty"` 2331 TCPTransitory uint32 `binapi:"u32,name=tcp_transitory" json:"tcp_transitory,omitempty"` 2332 ICMP uint32 `binapi:"u32,name=icmp" json:"icmp,omitempty"` 2333 } 2334 2335 func (m *Nat44EiSetTimeouts) Reset() { *m = Nat44EiSetTimeouts{} } 2336 func (*Nat44EiSetTimeouts) GetMessageName() string { return "nat44_ei_set_timeouts" } 2337 func (*Nat44EiSetTimeouts) GetCrcString() string { return "d4746b16" } 2338 func (*Nat44EiSetTimeouts) GetMessageType() api.MessageType { 2339 return api.RequestMessage 2340 } 2341 2342 func (m *Nat44EiSetTimeouts) Size() (size int) { 2343 if m == nil { 2344 return 0 2345 } 2346 size += 4 // m.UDP 2347 size += 4 // m.TCPEstablished 2348 size += 4 // m.TCPTransitory 2349 size += 4 // m.ICMP 2350 return size 2351 } 2352 func (m *Nat44EiSetTimeouts) Marshal(b []byte) ([]byte, error) { 2353 if b == nil { 2354 b = make([]byte, m.Size()) 2355 } 2356 buf := codec.NewBuffer(b) 2357 buf.EncodeUint32(m.UDP) 2358 buf.EncodeUint32(m.TCPEstablished) 2359 buf.EncodeUint32(m.TCPTransitory) 2360 buf.EncodeUint32(m.ICMP) 2361 return buf.Bytes(), nil 2362 } 2363 func (m *Nat44EiSetTimeouts) Unmarshal(b []byte) error { 2364 buf := codec.NewBuffer(b) 2365 m.UDP = buf.DecodeUint32() 2366 m.TCPEstablished = buf.DecodeUint32() 2367 m.TCPTransitory = buf.DecodeUint32() 2368 m.ICMP = buf.DecodeUint32() 2369 return nil 2370 } 2371 2372 // Nat44EiSetTimeoutsReply defines message 'nat44_ei_set_timeouts_reply'. 2373 // InProgress: the message form may change in the future versions 2374 type Nat44EiSetTimeoutsReply struct { 2375 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 2376 } 2377 2378 func (m *Nat44EiSetTimeoutsReply) Reset() { *m = Nat44EiSetTimeoutsReply{} } 2379 func (*Nat44EiSetTimeoutsReply) GetMessageName() string { return "nat44_ei_set_timeouts_reply" } 2380 func (*Nat44EiSetTimeoutsReply) GetCrcString() string { return "e8d4e804" } 2381 func (*Nat44EiSetTimeoutsReply) GetMessageType() api.MessageType { 2382 return api.ReplyMessage 2383 } 2384 2385 func (m *Nat44EiSetTimeoutsReply) Size() (size int) { 2386 if m == nil { 2387 return 0 2388 } 2389 size += 4 // m.Retval 2390 return size 2391 } 2392 func (m *Nat44EiSetTimeoutsReply) Marshal(b []byte) ([]byte, error) { 2393 if b == nil { 2394 b = make([]byte, m.Size()) 2395 } 2396 buf := codec.NewBuffer(b) 2397 buf.EncodeInt32(m.Retval) 2398 return buf.Bytes(), nil 2399 } 2400 func (m *Nat44EiSetTimeoutsReply) Unmarshal(b []byte) error { 2401 buf := codec.NewBuffer(b) 2402 m.Retval = buf.DecodeInt32() 2403 return nil 2404 } 2405 2406 // Nat44EiSetWorkers defines message 'nat44_ei_set_workers'. 2407 // InProgress: the message form may change in the future versions 2408 type Nat44EiSetWorkers struct { 2409 WorkerMask uint64 `binapi:"u64,name=worker_mask" json:"worker_mask,omitempty"` 2410 } 2411 2412 func (m *Nat44EiSetWorkers) Reset() { *m = Nat44EiSetWorkers{} } 2413 func (*Nat44EiSetWorkers) GetMessageName() string { return "nat44_ei_set_workers" } 2414 func (*Nat44EiSetWorkers) GetCrcString() string { return "da926638" } 2415 func (*Nat44EiSetWorkers) GetMessageType() api.MessageType { 2416 return api.RequestMessage 2417 } 2418 2419 func (m *Nat44EiSetWorkers) Size() (size int) { 2420 if m == nil { 2421 return 0 2422 } 2423 size += 8 // m.WorkerMask 2424 return size 2425 } 2426 func (m *Nat44EiSetWorkers) Marshal(b []byte) ([]byte, error) { 2427 if b == nil { 2428 b = make([]byte, m.Size()) 2429 } 2430 buf := codec.NewBuffer(b) 2431 buf.EncodeUint64(m.WorkerMask) 2432 return buf.Bytes(), nil 2433 } 2434 func (m *Nat44EiSetWorkers) Unmarshal(b []byte) error { 2435 buf := codec.NewBuffer(b) 2436 m.WorkerMask = buf.DecodeUint64() 2437 return nil 2438 } 2439 2440 // Nat44EiSetWorkersReply defines message 'nat44_ei_set_workers_reply'. 2441 // InProgress: the message form may change in the future versions 2442 type Nat44EiSetWorkersReply struct { 2443 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 2444 } 2445 2446 func (m *Nat44EiSetWorkersReply) Reset() { *m = Nat44EiSetWorkersReply{} } 2447 func (*Nat44EiSetWorkersReply) GetMessageName() string { return "nat44_ei_set_workers_reply" } 2448 func (*Nat44EiSetWorkersReply) GetCrcString() string { return "e8d4e804" } 2449 func (*Nat44EiSetWorkersReply) GetMessageType() api.MessageType { 2450 return api.ReplyMessage 2451 } 2452 2453 func (m *Nat44EiSetWorkersReply) Size() (size int) { 2454 if m == nil { 2455 return 0 2456 } 2457 size += 4 // m.Retval 2458 return size 2459 } 2460 func (m *Nat44EiSetWorkersReply) Marshal(b []byte) ([]byte, error) { 2461 if b == nil { 2462 b = make([]byte, m.Size()) 2463 } 2464 buf := codec.NewBuffer(b) 2465 buf.EncodeInt32(m.Retval) 2466 return buf.Bytes(), nil 2467 } 2468 func (m *Nat44EiSetWorkersReply) Unmarshal(b []byte) error { 2469 buf := codec.NewBuffer(b) 2470 m.Retval = buf.DecodeInt32() 2471 return nil 2472 } 2473 2474 // Nat44EiShowFqOptions defines message 'nat44_ei_show_fq_options'. 2475 // InProgress: the message form may change in the future versions 2476 type Nat44EiShowFqOptions struct{} 2477 2478 func (m *Nat44EiShowFqOptions) Reset() { *m = Nat44EiShowFqOptions{} } 2479 func (*Nat44EiShowFqOptions) GetMessageName() string { return "nat44_ei_show_fq_options" } 2480 func (*Nat44EiShowFqOptions) GetCrcString() string { return "51077d14" } 2481 func (*Nat44EiShowFqOptions) GetMessageType() api.MessageType { 2482 return api.RequestMessage 2483 } 2484 2485 func (m *Nat44EiShowFqOptions) Size() (size int) { 2486 if m == nil { 2487 return 0 2488 } 2489 return size 2490 } 2491 func (m *Nat44EiShowFqOptions) Marshal(b []byte) ([]byte, error) { 2492 if b == nil { 2493 b = make([]byte, m.Size()) 2494 } 2495 buf := codec.NewBuffer(b) 2496 return buf.Bytes(), nil 2497 } 2498 func (m *Nat44EiShowFqOptions) Unmarshal(b []byte) error { 2499 return nil 2500 } 2501 2502 // Nat44EiShowFqOptionsReply defines message 'nat44_ei_show_fq_options_reply'. 2503 // InProgress: the message form may change in the future versions 2504 type Nat44EiShowFqOptionsReply struct { 2505 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 2506 FrameQueueNelts uint32 `binapi:"u32,name=frame_queue_nelts" json:"frame_queue_nelts,omitempty"` 2507 } 2508 2509 func (m *Nat44EiShowFqOptionsReply) Reset() { *m = Nat44EiShowFqOptionsReply{} } 2510 func (*Nat44EiShowFqOptionsReply) GetMessageName() string { return "nat44_ei_show_fq_options_reply" } 2511 func (*Nat44EiShowFqOptionsReply) GetCrcString() string { return "7213b545" } 2512 func (*Nat44EiShowFqOptionsReply) GetMessageType() api.MessageType { 2513 return api.ReplyMessage 2514 } 2515 2516 func (m *Nat44EiShowFqOptionsReply) Size() (size int) { 2517 if m == nil { 2518 return 0 2519 } 2520 size += 4 // m.Retval 2521 size += 4 // m.FrameQueueNelts 2522 return size 2523 } 2524 func (m *Nat44EiShowFqOptionsReply) Marshal(b []byte) ([]byte, error) { 2525 if b == nil { 2526 b = make([]byte, m.Size()) 2527 } 2528 buf := codec.NewBuffer(b) 2529 buf.EncodeInt32(m.Retval) 2530 buf.EncodeUint32(m.FrameQueueNelts) 2531 return buf.Bytes(), nil 2532 } 2533 func (m *Nat44EiShowFqOptionsReply) Unmarshal(b []byte) error { 2534 buf := codec.NewBuffer(b) 2535 m.Retval = buf.DecodeInt32() 2536 m.FrameQueueNelts = buf.DecodeUint32() 2537 return nil 2538 } 2539 2540 // Nat44EiShowRunningConfig defines message 'nat44_ei_show_running_config'. 2541 // InProgress: the message form may change in the future versions 2542 type Nat44EiShowRunningConfig struct{} 2543 2544 func (m *Nat44EiShowRunningConfig) Reset() { *m = Nat44EiShowRunningConfig{} } 2545 func (*Nat44EiShowRunningConfig) GetMessageName() string { return "nat44_ei_show_running_config" } 2546 func (*Nat44EiShowRunningConfig) GetCrcString() string { return "51077d14" } 2547 func (*Nat44EiShowRunningConfig) GetMessageType() api.MessageType { 2548 return api.RequestMessage 2549 } 2550 2551 func (m *Nat44EiShowRunningConfig) Size() (size int) { 2552 if m == nil { 2553 return 0 2554 } 2555 return size 2556 } 2557 func (m *Nat44EiShowRunningConfig) Marshal(b []byte) ([]byte, error) { 2558 if b == nil { 2559 b = make([]byte, m.Size()) 2560 } 2561 buf := codec.NewBuffer(b) 2562 return buf.Bytes(), nil 2563 } 2564 func (m *Nat44EiShowRunningConfig) Unmarshal(b []byte) error { 2565 return nil 2566 } 2567 2568 // Nat44EiShowRunningConfigReply defines message 'nat44_ei_show_running_config_reply'. 2569 // InProgress: the message form may change in the future versions 2570 type Nat44EiShowRunningConfigReply struct { 2571 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` 2572 InsideVrf uint32 `binapi:"u32,name=inside_vrf" json:"inside_vrf,omitempty"` 2573 OutsideVrf uint32 `binapi:"u32,name=outside_vrf" json:"outside_vrf,omitempty"` 2574 Users uint32 `binapi:"u32,name=users" json:"users,omitempty"` 2575 Sessions uint32 `binapi:"u32,name=sessions" json:"sessions,omitempty"` 2576 UserSessions uint32 `binapi:"u32,name=user_sessions" json:"user_sessions,omitempty"` 2577 UserBuckets uint32 `binapi:"u32,name=user_buckets" json:"user_buckets,omitempty"` 2578 TranslationBuckets uint32 `binapi:"u32,name=translation_buckets" json:"translation_buckets,omitempty"` 2579 ForwardingEnabled bool `binapi:"bool,name=forwarding_enabled" json:"forwarding_enabled,omitempty"` 2580 IpfixLoggingEnabled bool `binapi:"bool,name=ipfix_logging_enabled" json:"ipfix_logging_enabled,omitempty"` 2581 Timeouts nat_types.NatTimeouts `binapi:"nat_timeouts,name=timeouts" json:"timeouts,omitempty"` 2582 LogLevel nat_types.NatLogLevel `binapi:"nat_log_level,name=log_level" json:"log_level,omitempty"` 2583 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 2584 } 2585 2586 func (m *Nat44EiShowRunningConfigReply) Reset() { *m = Nat44EiShowRunningConfigReply{} } 2587 func (*Nat44EiShowRunningConfigReply) GetMessageName() string { 2588 return "nat44_ei_show_running_config_reply" 2589 } 2590 func (*Nat44EiShowRunningConfigReply) GetCrcString() string { return "41b66a81" } 2591 func (*Nat44EiShowRunningConfigReply) GetMessageType() api.MessageType { 2592 return api.ReplyMessage 2593 } 2594 2595 func (m *Nat44EiShowRunningConfigReply) Size() (size int) { 2596 if m == nil { 2597 return 0 2598 } 2599 size += 4 // m.Retval 2600 size += 4 // m.InsideVrf 2601 size += 4 // m.OutsideVrf 2602 size += 4 // m.Users 2603 size += 4 // m.Sessions 2604 size += 4 // m.UserSessions 2605 size += 4 // m.UserBuckets 2606 size += 4 // m.TranslationBuckets 2607 size += 1 // m.ForwardingEnabled 2608 size += 1 // m.IpfixLoggingEnabled 2609 size += 4 // m.Timeouts.UDP 2610 size += 4 // m.Timeouts.TCPEstablished 2611 size += 4 // m.Timeouts.TCPTransitory 2612 size += 4 // m.Timeouts.ICMP 2613 size += 1 // m.LogLevel 2614 size += 1 // m.Flags 2615 return size 2616 } 2617 func (m *Nat44EiShowRunningConfigReply) Marshal(b []byte) ([]byte, error) { 2618 if b == nil { 2619 b = make([]byte, m.Size()) 2620 } 2621 buf := codec.NewBuffer(b) 2622 buf.EncodeInt32(m.Retval) 2623 buf.EncodeUint32(m.InsideVrf) 2624 buf.EncodeUint32(m.OutsideVrf) 2625 buf.EncodeUint32(m.Users) 2626 buf.EncodeUint32(m.Sessions) 2627 buf.EncodeUint32(m.UserSessions) 2628 buf.EncodeUint32(m.UserBuckets) 2629 buf.EncodeUint32(m.TranslationBuckets) 2630 buf.EncodeBool(m.ForwardingEnabled) 2631 buf.EncodeBool(m.IpfixLoggingEnabled) 2632 buf.EncodeUint32(m.Timeouts.UDP) 2633 buf.EncodeUint32(m.Timeouts.TCPEstablished) 2634 buf.EncodeUint32(m.Timeouts.TCPTransitory) 2635 buf.EncodeUint32(m.Timeouts.ICMP) 2636 buf.EncodeUint8(uint8(m.LogLevel)) 2637 buf.EncodeUint8(uint8(m.Flags)) 2638 return buf.Bytes(), nil 2639 } 2640 func (m *Nat44EiShowRunningConfigReply) Unmarshal(b []byte) error { 2641 buf := codec.NewBuffer(b) 2642 m.Retval = buf.DecodeInt32() 2643 m.InsideVrf = buf.DecodeUint32() 2644 m.OutsideVrf = buf.DecodeUint32() 2645 m.Users = buf.DecodeUint32() 2646 m.Sessions = buf.DecodeUint32() 2647 m.UserSessions = buf.DecodeUint32() 2648 m.UserBuckets = buf.DecodeUint32() 2649 m.TranslationBuckets = buf.DecodeUint32() 2650 m.ForwardingEnabled = buf.DecodeBool() 2651 m.IpfixLoggingEnabled = buf.DecodeBool() 2652 m.Timeouts.UDP = buf.DecodeUint32() 2653 m.Timeouts.TCPEstablished = buf.DecodeUint32() 2654 m.Timeouts.TCPTransitory = buf.DecodeUint32() 2655 m.Timeouts.ICMP = buf.DecodeUint32() 2656 m.LogLevel = nat_types.NatLogLevel(buf.DecodeUint8()) 2657 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 2658 return nil 2659 } 2660 2661 // Nat44EiStaticMappingDetails defines message 'nat44_ei_static_mapping_details'. 2662 // InProgress: the message form may change in the future versions 2663 type Nat44EiStaticMappingDetails struct { 2664 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 2665 LocalIPAddress ip_types.IP4Address `binapi:"ip4_address,name=local_ip_address" json:"local_ip_address,omitempty"` 2666 ExternalIPAddress ip_types.IP4Address `binapi:"ip4_address,name=external_ip_address" json:"external_ip_address,omitempty"` 2667 Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"` 2668 LocalPort uint16 `binapi:"u16,name=local_port" json:"local_port,omitempty"` 2669 ExternalPort uint16 `binapi:"u16,name=external_port" json:"external_port,omitempty"` 2670 ExternalSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=external_sw_if_index" json:"external_sw_if_index,omitempty"` 2671 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 2672 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"` 2673 } 2674 2675 func (m *Nat44EiStaticMappingDetails) Reset() { *m = Nat44EiStaticMappingDetails{} } 2676 func (*Nat44EiStaticMappingDetails) GetMessageName() string { return "nat44_ei_static_mapping_details" } 2677 func (*Nat44EiStaticMappingDetails) GetCrcString() string { return "6b51ca6e" } 2678 func (*Nat44EiStaticMappingDetails) GetMessageType() api.MessageType { 2679 return api.ReplyMessage 2680 } 2681 2682 func (m *Nat44EiStaticMappingDetails) Size() (size int) { 2683 if m == nil { 2684 return 0 2685 } 2686 size += 1 // m.Flags 2687 size += 1 * 4 // m.LocalIPAddress 2688 size += 1 * 4 // m.ExternalIPAddress 2689 size += 1 // m.Protocol 2690 size += 2 // m.LocalPort 2691 size += 2 // m.ExternalPort 2692 size += 4 // m.ExternalSwIfIndex 2693 size += 4 // m.VrfID 2694 size += 64 // m.Tag 2695 return size 2696 } 2697 func (m *Nat44EiStaticMappingDetails) Marshal(b []byte) ([]byte, error) { 2698 if b == nil { 2699 b = make([]byte, m.Size()) 2700 } 2701 buf := codec.NewBuffer(b) 2702 buf.EncodeUint8(uint8(m.Flags)) 2703 buf.EncodeBytes(m.LocalIPAddress[:], 4) 2704 buf.EncodeBytes(m.ExternalIPAddress[:], 4) 2705 buf.EncodeUint8(m.Protocol) 2706 buf.EncodeUint16(m.LocalPort) 2707 buf.EncodeUint16(m.ExternalPort) 2708 buf.EncodeUint32(uint32(m.ExternalSwIfIndex)) 2709 buf.EncodeUint32(m.VrfID) 2710 buf.EncodeString(m.Tag, 64) 2711 return buf.Bytes(), nil 2712 } 2713 func (m *Nat44EiStaticMappingDetails) Unmarshal(b []byte) error { 2714 buf := codec.NewBuffer(b) 2715 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 2716 copy(m.LocalIPAddress[:], buf.DecodeBytes(4)) 2717 copy(m.ExternalIPAddress[:], buf.DecodeBytes(4)) 2718 m.Protocol = buf.DecodeUint8() 2719 m.LocalPort = buf.DecodeUint16() 2720 m.ExternalPort = buf.DecodeUint16() 2721 m.ExternalSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) 2722 m.VrfID = buf.DecodeUint32() 2723 m.Tag = buf.DecodeString(64) 2724 return nil 2725 } 2726 2727 // Nat44EiStaticMappingDump defines message 'nat44_ei_static_mapping_dump'. 2728 // InProgress: the message form may change in the future versions 2729 type Nat44EiStaticMappingDump struct{} 2730 2731 func (m *Nat44EiStaticMappingDump) Reset() { *m = Nat44EiStaticMappingDump{} } 2732 func (*Nat44EiStaticMappingDump) GetMessageName() string { return "nat44_ei_static_mapping_dump" } 2733 func (*Nat44EiStaticMappingDump) GetCrcString() string { return "51077d14" } 2734 func (*Nat44EiStaticMappingDump) GetMessageType() api.MessageType { 2735 return api.RequestMessage 2736 } 2737 2738 func (m *Nat44EiStaticMappingDump) Size() (size int) { 2739 if m == nil { 2740 return 0 2741 } 2742 return size 2743 } 2744 func (m *Nat44EiStaticMappingDump) Marshal(b []byte) ([]byte, error) { 2745 if b == nil { 2746 b = make([]byte, m.Size()) 2747 } 2748 buf := codec.NewBuffer(b) 2749 return buf.Bytes(), nil 2750 } 2751 func (m *Nat44EiStaticMappingDump) Unmarshal(b []byte) error { 2752 return nil 2753 } 2754 2755 // Nat44EiUserDetails defines message 'nat44_ei_user_details'. 2756 // InProgress: the message form may change in the future versions 2757 type Nat44EiUserDetails struct { 2758 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 2759 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` 2760 Nsessions uint32 `binapi:"u32,name=nsessions" json:"nsessions,omitempty"` 2761 Nstaticsessions uint32 `binapi:"u32,name=nstaticsessions" json:"nstaticsessions,omitempty"` 2762 } 2763 2764 func (m *Nat44EiUserDetails) Reset() { *m = Nat44EiUserDetails{} } 2765 func (*Nat44EiUserDetails) GetMessageName() string { return "nat44_ei_user_details" } 2766 func (*Nat44EiUserDetails) GetCrcString() string { return "355896c2" } 2767 func (*Nat44EiUserDetails) GetMessageType() api.MessageType { 2768 return api.ReplyMessage 2769 } 2770 2771 func (m *Nat44EiUserDetails) Size() (size int) { 2772 if m == nil { 2773 return 0 2774 } 2775 size += 4 // m.VrfID 2776 size += 1 * 4 // m.IPAddress 2777 size += 4 // m.Nsessions 2778 size += 4 // m.Nstaticsessions 2779 return size 2780 } 2781 func (m *Nat44EiUserDetails) Marshal(b []byte) ([]byte, error) { 2782 if b == nil { 2783 b = make([]byte, m.Size()) 2784 } 2785 buf := codec.NewBuffer(b) 2786 buf.EncodeUint32(m.VrfID) 2787 buf.EncodeBytes(m.IPAddress[:], 4) 2788 buf.EncodeUint32(m.Nsessions) 2789 buf.EncodeUint32(m.Nstaticsessions) 2790 return buf.Bytes(), nil 2791 } 2792 func (m *Nat44EiUserDetails) Unmarshal(b []byte) error { 2793 buf := codec.NewBuffer(b) 2794 m.VrfID = buf.DecodeUint32() 2795 copy(m.IPAddress[:], buf.DecodeBytes(4)) 2796 m.Nsessions = buf.DecodeUint32() 2797 m.Nstaticsessions = buf.DecodeUint32() 2798 return nil 2799 } 2800 2801 // Nat44EiUserDump defines message 'nat44_ei_user_dump'. 2802 // InProgress: the message form may change in the future versions 2803 type Nat44EiUserDump struct{} 2804 2805 func (m *Nat44EiUserDump) Reset() { *m = Nat44EiUserDump{} } 2806 func (*Nat44EiUserDump) GetMessageName() string { return "nat44_ei_user_dump" } 2807 func (*Nat44EiUserDump) GetCrcString() string { return "51077d14" } 2808 func (*Nat44EiUserDump) GetMessageType() api.MessageType { 2809 return api.RequestMessage 2810 } 2811 2812 func (m *Nat44EiUserDump) Size() (size int) { 2813 if m == nil { 2814 return 0 2815 } 2816 return size 2817 } 2818 func (m *Nat44EiUserDump) Marshal(b []byte) ([]byte, error) { 2819 if b == nil { 2820 b = make([]byte, m.Size()) 2821 } 2822 buf := codec.NewBuffer(b) 2823 return buf.Bytes(), nil 2824 } 2825 func (m *Nat44EiUserDump) Unmarshal(b []byte) error { 2826 return nil 2827 } 2828 2829 // Nat44EiUserSessionDetails defines message 'nat44_ei_user_session_details'. 2830 // InProgress: the message form may change in the future versions 2831 type Nat44EiUserSessionDetails struct { 2832 OutsideIPAddress ip_types.IP4Address `binapi:"ip4_address,name=outside_ip_address" json:"outside_ip_address,omitempty"` 2833 OutsidePort uint16 `binapi:"u16,name=outside_port" json:"outside_port,omitempty"` 2834 InsideIPAddress ip_types.IP4Address `binapi:"ip4_address,name=inside_ip_address" json:"inside_ip_address,omitempty"` 2835 InsidePort uint16 `binapi:"u16,name=inside_port" json:"inside_port,omitempty"` 2836 Protocol uint16 `binapi:"u16,name=protocol" json:"protocol,omitempty"` 2837 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"` 2838 LastHeard uint64 `binapi:"u64,name=last_heard" json:"last_heard,omitempty"` 2839 TotalBytes uint64 `binapi:"u64,name=total_bytes" json:"total_bytes,omitempty"` 2840 TotalPkts uint32 `binapi:"u32,name=total_pkts" json:"total_pkts,omitempty"` 2841 ExtHostAddress ip_types.IP4Address `binapi:"ip4_address,name=ext_host_address" json:"ext_host_address,omitempty"` 2842 ExtHostPort uint16 `binapi:"u16,name=ext_host_port" json:"ext_host_port,omitempty"` 2843 } 2844 2845 func (m *Nat44EiUserSessionDetails) Reset() { *m = Nat44EiUserSessionDetails{} } 2846 func (*Nat44EiUserSessionDetails) GetMessageName() string { return "nat44_ei_user_session_details" } 2847 func (*Nat44EiUserSessionDetails) GetCrcString() string { return "19b7c0ac" } 2848 func (*Nat44EiUserSessionDetails) GetMessageType() api.MessageType { 2849 return api.ReplyMessage 2850 } 2851 2852 func (m *Nat44EiUserSessionDetails) Size() (size int) { 2853 if m == nil { 2854 return 0 2855 } 2856 size += 1 * 4 // m.OutsideIPAddress 2857 size += 2 // m.OutsidePort 2858 size += 1 * 4 // m.InsideIPAddress 2859 size += 2 // m.InsidePort 2860 size += 2 // m.Protocol 2861 size += 1 // m.Flags 2862 size += 8 // m.LastHeard 2863 size += 8 // m.TotalBytes 2864 size += 4 // m.TotalPkts 2865 size += 1 * 4 // m.ExtHostAddress 2866 size += 2 // m.ExtHostPort 2867 return size 2868 } 2869 func (m *Nat44EiUserSessionDetails) Marshal(b []byte) ([]byte, error) { 2870 if b == nil { 2871 b = make([]byte, m.Size()) 2872 } 2873 buf := codec.NewBuffer(b) 2874 buf.EncodeBytes(m.OutsideIPAddress[:], 4) 2875 buf.EncodeUint16(m.OutsidePort) 2876 buf.EncodeBytes(m.InsideIPAddress[:], 4) 2877 buf.EncodeUint16(m.InsidePort) 2878 buf.EncodeUint16(m.Protocol) 2879 buf.EncodeUint8(uint8(m.Flags)) 2880 buf.EncodeUint64(m.LastHeard) 2881 buf.EncodeUint64(m.TotalBytes) 2882 buf.EncodeUint32(m.TotalPkts) 2883 buf.EncodeBytes(m.ExtHostAddress[:], 4) 2884 buf.EncodeUint16(m.ExtHostPort) 2885 return buf.Bytes(), nil 2886 } 2887 func (m *Nat44EiUserSessionDetails) Unmarshal(b []byte) error { 2888 buf := codec.NewBuffer(b) 2889 copy(m.OutsideIPAddress[:], buf.DecodeBytes(4)) 2890 m.OutsidePort = buf.DecodeUint16() 2891 copy(m.InsideIPAddress[:], buf.DecodeBytes(4)) 2892 m.InsidePort = buf.DecodeUint16() 2893 m.Protocol = buf.DecodeUint16() 2894 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8()) 2895 m.LastHeard = buf.DecodeUint64() 2896 m.TotalBytes = buf.DecodeUint64() 2897 m.TotalPkts = buf.DecodeUint32() 2898 copy(m.ExtHostAddress[:], buf.DecodeBytes(4)) 2899 m.ExtHostPort = buf.DecodeUint16() 2900 return nil 2901 } 2902 2903 // Nat44EiUserSessionDump defines message 'nat44_ei_user_session_dump'. 2904 // InProgress: the message form may change in the future versions 2905 type Nat44EiUserSessionDump struct { 2906 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` 2907 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` 2908 } 2909 2910 func (m *Nat44EiUserSessionDump) Reset() { *m = Nat44EiUserSessionDump{} } 2911 func (*Nat44EiUserSessionDump) GetMessageName() string { return "nat44_ei_user_session_dump" } 2912 func (*Nat44EiUserSessionDump) GetCrcString() string { return "e1899c98" } 2913 func (*Nat44EiUserSessionDump) GetMessageType() api.MessageType { 2914 return api.RequestMessage 2915 } 2916 2917 func (m *Nat44EiUserSessionDump) Size() (size int) { 2918 if m == nil { 2919 return 0 2920 } 2921 size += 1 * 4 // m.IPAddress 2922 size += 4 // m.VrfID 2923 return size 2924 } 2925 func (m *Nat44EiUserSessionDump) Marshal(b []byte) ([]byte, error) { 2926 if b == nil { 2927 b = make([]byte, m.Size()) 2928 } 2929 buf := codec.NewBuffer(b) 2930 buf.EncodeBytes(m.IPAddress[:], 4) 2931 buf.EncodeUint32(m.VrfID) 2932 return buf.Bytes(), nil 2933 } 2934 func (m *Nat44EiUserSessionDump) Unmarshal(b []byte) error { 2935 buf := codec.NewBuffer(b) 2936 copy(m.IPAddress[:], buf.DecodeBytes(4)) 2937 m.VrfID = buf.DecodeUint32() 2938 return nil 2939 } 2940 2941 // Nat44EiWorkerDetails defines message 'nat44_ei_worker_details'. 2942 // InProgress: the message form may change in the future versions 2943 type Nat44EiWorkerDetails struct { 2944 WorkerIndex uint32 `binapi:"u32,name=worker_index" json:"worker_index,omitempty"` 2945 LcoreID uint32 `binapi:"u32,name=lcore_id" json:"lcore_id,omitempty"` 2946 Name string `binapi:"string[64],name=name" json:"name,omitempty"` 2947 } 2948 2949 func (m *Nat44EiWorkerDetails) Reset() { *m = Nat44EiWorkerDetails{} } 2950 func (*Nat44EiWorkerDetails) GetMessageName() string { return "nat44_ei_worker_details" } 2951 func (*Nat44EiWorkerDetails) GetCrcString() string { return "84bf06fc" } 2952 func (*Nat44EiWorkerDetails) GetMessageType() api.MessageType { 2953 return api.ReplyMessage 2954 } 2955 2956 func (m *Nat44EiWorkerDetails) Size() (size int) { 2957 if m == nil { 2958 return 0 2959 } 2960 size += 4 // m.WorkerIndex 2961 size += 4 // m.LcoreID 2962 size += 64 // m.Name 2963 return size 2964 } 2965 func (m *Nat44EiWorkerDetails) Marshal(b []byte) ([]byte, error) { 2966 if b == nil { 2967 b = make([]byte, m.Size()) 2968 } 2969 buf := codec.NewBuffer(b) 2970 buf.EncodeUint32(m.WorkerIndex) 2971 buf.EncodeUint32(m.LcoreID) 2972 buf.EncodeString(m.Name, 64) 2973 return buf.Bytes(), nil 2974 } 2975 func (m *Nat44EiWorkerDetails) Unmarshal(b []byte) error { 2976 buf := codec.NewBuffer(b) 2977 m.WorkerIndex = buf.DecodeUint32() 2978 m.LcoreID = buf.DecodeUint32() 2979 m.Name = buf.DecodeString(64) 2980 return nil 2981 } 2982 2983 // Nat44EiWorkerDump defines message 'nat44_ei_worker_dump'. 2984 // InProgress: the message form may change in the future versions 2985 type Nat44EiWorkerDump struct{} 2986 2987 func (m *Nat44EiWorkerDump) Reset() { *m = Nat44EiWorkerDump{} } 2988 func (*Nat44EiWorkerDump) GetMessageName() string { return "nat44_ei_worker_dump" } 2989 func (*Nat44EiWorkerDump) GetCrcString() string { return "51077d14" } 2990 func (*Nat44EiWorkerDump) GetMessageType() api.MessageType { 2991 return api.RequestMessage 2992 } 2993 2994 func (m *Nat44EiWorkerDump) Size() (size int) { 2995 if m == nil { 2996 return 0 2997 } 2998 return size 2999 } 3000 func (m *Nat44EiWorkerDump) Marshal(b []byte) ([]byte, error) { 3001 if b == nil { 3002 b = make([]byte, m.Size()) 3003 } 3004 buf := codec.NewBuffer(b) 3005 return buf.Bytes(), nil 3006 } 3007 func (m *Nat44EiWorkerDump) Unmarshal(b []byte) error { 3008 return nil 3009 } 3010 3011 func init() { file_nat44_ei_binapi_init() } 3012 func file_nat44_ei_binapi_init() { 3013 api.RegisterMessage((*Nat44EiAddDelAddressRange)(nil), "nat44_ei_add_del_address_range_35f21abc") 3014 api.RegisterMessage((*Nat44EiAddDelAddressRangeReply)(nil), "nat44_ei_add_del_address_range_reply_e8d4e804") 3015 api.RegisterMessage((*Nat44EiAddDelIdentityMapping)(nil), "nat44_ei_add_del_identity_mapping_cb8606b9") 3016 api.RegisterMessage((*Nat44EiAddDelIdentityMappingReply)(nil), "nat44_ei_add_del_identity_mapping_reply_e8d4e804") 3017 api.RegisterMessage((*Nat44EiAddDelInterfaceAddr)(nil), "nat44_ei_add_del_interface_addr_883abbcc") 3018 api.RegisterMessage((*Nat44EiAddDelInterfaceAddrReply)(nil), "nat44_ei_add_del_interface_addr_reply_e8d4e804") 3019 api.RegisterMessage((*Nat44EiAddDelStaticMapping)(nil), "nat44_ei_add_del_static_mapping_b404b7fe") 3020 api.RegisterMessage((*Nat44EiAddDelStaticMappingReply)(nil), "nat44_ei_add_del_static_mapping_reply_e8d4e804") 3021 api.RegisterMessage((*Nat44EiAddressDetails)(nil), "nat44_ei_address_details_318f1202") 3022 api.RegisterMessage((*Nat44EiAddressDump)(nil), "nat44_ei_address_dump_51077d14") 3023 api.RegisterMessage((*Nat44EiDelSession)(nil), "nat44_ei_del_session_74969ffe") 3024 api.RegisterMessage((*Nat44EiDelSessionReply)(nil), "nat44_ei_del_session_reply_e8d4e804") 3025 api.RegisterMessage((*Nat44EiDelUser)(nil), "nat44_ei_del_user_99a9f998") 3026 api.RegisterMessage((*Nat44EiDelUserReply)(nil), "nat44_ei_del_user_reply_e8d4e804") 3027 api.RegisterMessage((*Nat44EiForwardingEnableDisable)(nil), "nat44_ei_forwarding_enable_disable_b3e225d2") 3028 api.RegisterMessage((*Nat44EiForwardingEnableDisableReply)(nil), "nat44_ei_forwarding_enable_disable_reply_e8d4e804") 3029 api.RegisterMessage((*Nat44EiGetAddrAndPortAllocAlg)(nil), "nat44_ei_get_addr_and_port_alloc_alg_51077d14") 3030 api.RegisterMessage((*Nat44EiGetAddrAndPortAllocAlgReply)(nil), "nat44_ei_get_addr_and_port_alloc_alg_reply_3607a7d0") 3031 api.RegisterMessage((*Nat44EiGetMssClamping)(nil), "nat44_ei_get_mss_clamping_51077d14") 3032 api.RegisterMessage((*Nat44EiGetMssClampingReply)(nil), "nat44_ei_get_mss_clamping_reply_1c0b2a78") 3033 api.RegisterMessage((*Nat44EiHaFlush)(nil), "nat44_ei_ha_flush_51077d14") 3034 api.RegisterMessage((*Nat44EiHaFlushReply)(nil), "nat44_ei_ha_flush_reply_e8d4e804") 3035 api.RegisterMessage((*Nat44EiHaGetFailover)(nil), "nat44_ei_ha_get_failover_51077d14") 3036 api.RegisterMessage((*Nat44EiHaGetFailoverReply)(nil), "nat44_ei_ha_get_failover_reply_a67d8752") 3037 api.RegisterMessage((*Nat44EiHaGetListener)(nil), "nat44_ei_ha_get_listener_51077d14") 3038 api.RegisterMessage((*Nat44EiHaGetListenerReply)(nil), "nat44_ei_ha_get_listener_reply_123ea41f") 3039 api.RegisterMessage((*Nat44EiHaResync)(nil), "nat44_ei_ha_resync_c8ab9e03") 3040 api.RegisterMessage((*Nat44EiHaResyncCompletedEvent)(nil), "nat44_ei_ha_resync_completed_event_fdc598fb") 3041 api.RegisterMessage((*Nat44EiHaResyncReply)(nil), "nat44_ei_ha_resync_reply_e8d4e804") 3042 api.RegisterMessage((*Nat44EiHaSetFailover)(nil), "nat44_ei_ha_set_failover_718246af") 3043 api.RegisterMessage((*Nat44EiHaSetFailoverReply)(nil), "nat44_ei_ha_set_failover_reply_e8d4e804") 3044 api.RegisterMessage((*Nat44EiHaSetListener)(nil), "nat44_ei_ha_set_listener_e4a8cb4e") 3045 api.RegisterMessage((*Nat44EiHaSetListenerReply)(nil), "nat44_ei_ha_set_listener_reply_e8d4e804") 3046 api.RegisterMessage((*Nat44EiIdentityMappingDetails)(nil), "nat44_ei_identity_mapping_details_30d53e26") 3047 api.RegisterMessage((*Nat44EiIdentityMappingDump)(nil), "nat44_ei_identity_mapping_dump_51077d14") 3048 api.RegisterMessage((*Nat44EiInterfaceAddDelFeature)(nil), "nat44_ei_interface_add_del_feature_63a2db8b") 3049 api.RegisterMessage((*Nat44EiInterfaceAddDelFeatureReply)(nil), "nat44_ei_interface_add_del_feature_reply_e8d4e804") 3050 api.RegisterMessage((*Nat44EiInterfaceAddDelOutputFeature)(nil), "nat44_ei_interface_add_del_output_feature_63a2db8b") 3051 api.RegisterMessage((*Nat44EiInterfaceAddDelOutputFeatureReply)(nil), "nat44_ei_interface_add_del_output_feature_reply_e8d4e804") 3052 api.RegisterMessage((*Nat44EiInterfaceAddrDetails)(nil), "nat44_ei_interface_addr_details_0b45011c") 3053 api.RegisterMessage((*Nat44EiInterfaceAddrDump)(nil), "nat44_ei_interface_addr_dump_51077d14") 3054 api.RegisterMessage((*Nat44EiInterfaceDetails)(nil), "nat44_ei_interface_details_f446e508") 3055 api.RegisterMessage((*Nat44EiInterfaceDump)(nil), "nat44_ei_interface_dump_51077d14") 3056 api.RegisterMessage((*Nat44EiInterfaceOutputFeatureDetails)(nil), "nat44_ei_interface_output_feature_details_f446e508") 3057 api.RegisterMessage((*Nat44EiInterfaceOutputFeatureDump)(nil), "nat44_ei_interface_output_feature_dump_51077d14") 3058 api.RegisterMessage((*Nat44EiIpfixEnableDisable)(nil), "nat44_ei_ipfix_enable_disable_9af4a2d2") 3059 api.RegisterMessage((*Nat44EiIpfixEnableDisableReply)(nil), "nat44_ei_ipfix_enable_disable_reply_e8d4e804") 3060 api.RegisterMessage((*Nat44EiPluginEnableDisable)(nil), "nat44_ei_plugin_enable_disable_bf692144") 3061 api.RegisterMessage((*Nat44EiPluginEnableDisableReply)(nil), "nat44_ei_plugin_enable_disable_reply_e8d4e804") 3062 api.RegisterMessage((*Nat44EiSetAddrAndPortAllocAlg)(nil), "nat44_ei_set_addr_and_port_alloc_alg_deeb746f") 3063 api.RegisterMessage((*Nat44EiSetAddrAndPortAllocAlgReply)(nil), "nat44_ei_set_addr_and_port_alloc_alg_reply_e8d4e804") 3064 api.RegisterMessage((*Nat44EiSetFqOptions)(nil), "nat44_ei_set_fq_options_2399bd71") 3065 api.RegisterMessage((*Nat44EiSetFqOptionsReply)(nil), "nat44_ei_set_fq_options_reply_e8d4e804") 3066 api.RegisterMessage((*Nat44EiSetLogLevel)(nil), "nat44_ei_set_log_level_70076bfe") 3067 api.RegisterMessage((*Nat44EiSetLogLevelReply)(nil), "nat44_ei_set_log_level_reply_e8d4e804") 3068 api.RegisterMessage((*Nat44EiSetMssClamping)(nil), "nat44_ei_set_mss_clamping_25e90abb") 3069 api.RegisterMessage((*Nat44EiSetMssClampingReply)(nil), "nat44_ei_set_mss_clamping_reply_e8d4e804") 3070 api.RegisterMessage((*Nat44EiSetTimeouts)(nil), "nat44_ei_set_timeouts_d4746b16") 3071 api.RegisterMessage((*Nat44EiSetTimeoutsReply)(nil), "nat44_ei_set_timeouts_reply_e8d4e804") 3072 api.RegisterMessage((*Nat44EiSetWorkers)(nil), "nat44_ei_set_workers_da926638") 3073 api.RegisterMessage((*Nat44EiSetWorkersReply)(nil), "nat44_ei_set_workers_reply_e8d4e804") 3074 api.RegisterMessage((*Nat44EiShowFqOptions)(nil), "nat44_ei_show_fq_options_51077d14") 3075 api.RegisterMessage((*Nat44EiShowFqOptionsReply)(nil), "nat44_ei_show_fq_options_reply_7213b545") 3076 api.RegisterMessage((*Nat44EiShowRunningConfig)(nil), "nat44_ei_show_running_config_51077d14") 3077 api.RegisterMessage((*Nat44EiShowRunningConfigReply)(nil), "nat44_ei_show_running_config_reply_41b66a81") 3078 api.RegisterMessage((*Nat44EiStaticMappingDetails)(nil), "nat44_ei_static_mapping_details_6b51ca6e") 3079 api.RegisterMessage((*Nat44EiStaticMappingDump)(nil), "nat44_ei_static_mapping_dump_51077d14") 3080 api.RegisterMessage((*Nat44EiUserDetails)(nil), "nat44_ei_user_details_355896c2") 3081 api.RegisterMessage((*Nat44EiUserDump)(nil), "nat44_ei_user_dump_51077d14") 3082 api.RegisterMessage((*Nat44EiUserSessionDetails)(nil), "nat44_ei_user_session_details_19b7c0ac") 3083 api.RegisterMessage((*Nat44EiUserSessionDump)(nil), "nat44_ei_user_session_dump_e1899c98") 3084 api.RegisterMessage((*Nat44EiWorkerDetails)(nil), "nat44_ei_worker_details_84bf06fc") 3085 api.RegisterMessage((*Nat44EiWorkerDump)(nil), "nat44_ei_worker_dump_51077d14") 3086 } 3087 3088 // Messages returns list of all messages in this module. 3089 func AllMessages() []api.Message { 3090 return []api.Message{ 3091 (*Nat44EiAddDelAddressRange)(nil), 3092 (*Nat44EiAddDelAddressRangeReply)(nil), 3093 (*Nat44EiAddDelIdentityMapping)(nil), 3094 (*Nat44EiAddDelIdentityMappingReply)(nil), 3095 (*Nat44EiAddDelInterfaceAddr)(nil), 3096 (*Nat44EiAddDelInterfaceAddrReply)(nil), 3097 (*Nat44EiAddDelStaticMapping)(nil), 3098 (*Nat44EiAddDelStaticMappingReply)(nil), 3099 (*Nat44EiAddressDetails)(nil), 3100 (*Nat44EiAddressDump)(nil), 3101 (*Nat44EiDelSession)(nil), 3102 (*Nat44EiDelSessionReply)(nil), 3103 (*Nat44EiDelUser)(nil), 3104 (*Nat44EiDelUserReply)(nil), 3105 (*Nat44EiForwardingEnableDisable)(nil), 3106 (*Nat44EiForwardingEnableDisableReply)(nil), 3107 (*Nat44EiGetAddrAndPortAllocAlg)(nil), 3108 (*Nat44EiGetAddrAndPortAllocAlgReply)(nil), 3109 (*Nat44EiGetMssClamping)(nil), 3110 (*Nat44EiGetMssClampingReply)(nil), 3111 (*Nat44EiHaFlush)(nil), 3112 (*Nat44EiHaFlushReply)(nil), 3113 (*Nat44EiHaGetFailover)(nil), 3114 (*Nat44EiHaGetFailoverReply)(nil), 3115 (*Nat44EiHaGetListener)(nil), 3116 (*Nat44EiHaGetListenerReply)(nil), 3117 (*Nat44EiHaResync)(nil), 3118 (*Nat44EiHaResyncCompletedEvent)(nil), 3119 (*Nat44EiHaResyncReply)(nil), 3120 (*Nat44EiHaSetFailover)(nil), 3121 (*Nat44EiHaSetFailoverReply)(nil), 3122 (*Nat44EiHaSetListener)(nil), 3123 (*Nat44EiHaSetListenerReply)(nil), 3124 (*Nat44EiIdentityMappingDetails)(nil), 3125 (*Nat44EiIdentityMappingDump)(nil), 3126 (*Nat44EiInterfaceAddDelFeature)(nil), 3127 (*Nat44EiInterfaceAddDelFeatureReply)(nil), 3128 (*Nat44EiInterfaceAddDelOutputFeature)(nil), 3129 (*Nat44EiInterfaceAddDelOutputFeatureReply)(nil), 3130 (*Nat44EiInterfaceAddrDetails)(nil), 3131 (*Nat44EiInterfaceAddrDump)(nil), 3132 (*Nat44EiInterfaceDetails)(nil), 3133 (*Nat44EiInterfaceDump)(nil), 3134 (*Nat44EiInterfaceOutputFeatureDetails)(nil), 3135 (*Nat44EiInterfaceOutputFeatureDump)(nil), 3136 (*Nat44EiIpfixEnableDisable)(nil), 3137 (*Nat44EiIpfixEnableDisableReply)(nil), 3138 (*Nat44EiPluginEnableDisable)(nil), 3139 (*Nat44EiPluginEnableDisableReply)(nil), 3140 (*Nat44EiSetAddrAndPortAllocAlg)(nil), 3141 (*Nat44EiSetAddrAndPortAllocAlgReply)(nil), 3142 (*Nat44EiSetFqOptions)(nil), 3143 (*Nat44EiSetFqOptionsReply)(nil), 3144 (*Nat44EiSetLogLevel)(nil), 3145 (*Nat44EiSetLogLevelReply)(nil), 3146 (*Nat44EiSetMssClamping)(nil), 3147 (*Nat44EiSetMssClampingReply)(nil), 3148 (*Nat44EiSetTimeouts)(nil), 3149 (*Nat44EiSetTimeoutsReply)(nil), 3150 (*Nat44EiSetWorkers)(nil), 3151 (*Nat44EiSetWorkersReply)(nil), 3152 (*Nat44EiShowFqOptions)(nil), 3153 (*Nat44EiShowFqOptionsReply)(nil), 3154 (*Nat44EiShowRunningConfig)(nil), 3155 (*Nat44EiShowRunningConfigReply)(nil), 3156 (*Nat44EiStaticMappingDetails)(nil), 3157 (*Nat44EiStaticMappingDump)(nil), 3158 (*Nat44EiUserDetails)(nil), 3159 (*Nat44EiUserDump)(nil), 3160 (*Nat44EiUserSessionDetails)(nil), 3161 (*Nat44EiUserSessionDump)(nil), 3162 (*Nat44EiWorkerDetails)(nil), 3163 (*Nat44EiWorkerDump)(nil), 3164 } 3165 }