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