1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
3 // binapi-generator: v0.4.0
5 // source: /usr/share/vpp/api/plugins/nat44_ei.api.json
7 // Package nat44_ei contains generated bindings for API file nat44_ei.api.
18 api "git.fd.io/govpp.git/api"
19 interface_types "git.fd.io/govpp.git/binapi/interface_types"
20 ip_types "git.fd.io/govpp.git/binapi/ip_types"
21 nat_types "git.fd.io/govpp.git/binapi/nat_types"
22 codec "git.fd.io/govpp.git/codec"
25 // This is a compile-time assertion to ensure that this generated file
26 // is compatible with the GoVPP api package it is being compiled against.
27 // A compilation error at this line likely means your copy of the
28 // GoVPP api package needs to be updated.
29 const _ = api.GoVppAPIPackageIsVersion2
34 VersionCrc = 0x62d113ee
37 // Nat44EiConfigFlags defines enum 'nat44_ei_config_flags'.
38 type Nat44EiConfigFlags uint8
41 NAT44_EI_NONE Nat44EiConfigFlags = 0
42 NAT44_EI_STATIC_MAPPING_ONLY Nat44EiConfigFlags = 1
43 NAT44_EI_CONNECTION_TRACKING Nat44EiConfigFlags = 2
44 NAT44_EI_OUT2IN_DPO Nat44EiConfigFlags = 4
45 NAT44_EI_ADDR_ONLY_MAPPING Nat44EiConfigFlags = 8
46 NAT44_EI_IF_INSIDE Nat44EiConfigFlags = 16
47 NAT44_EI_IF_OUTSIDE Nat44EiConfigFlags = 32
48 NAT44_EI_STATIC_MAPPING Nat44EiConfigFlags = 64
52 Nat44EiConfigFlags_name = map[uint8]string{
54 1: "NAT44_EI_STATIC_MAPPING_ONLY",
55 2: "NAT44_EI_CONNECTION_TRACKING",
56 4: "NAT44_EI_OUT2IN_DPO",
57 8: "NAT44_EI_ADDR_ONLY_MAPPING",
58 16: "NAT44_EI_IF_INSIDE",
59 32: "NAT44_EI_IF_OUTSIDE",
60 64: "NAT44_EI_STATIC_MAPPING",
62 Nat44EiConfigFlags_value = map[string]uint8{
64 "NAT44_EI_STATIC_MAPPING_ONLY": 1,
65 "NAT44_EI_CONNECTION_TRACKING": 2,
66 "NAT44_EI_OUT2IN_DPO": 4,
67 "NAT44_EI_ADDR_ONLY_MAPPING": 8,
68 "NAT44_EI_IF_INSIDE": 16,
69 "NAT44_EI_IF_OUTSIDE": 32,
70 "NAT44_EI_STATIC_MAPPING": 64,
74 func (x Nat44EiConfigFlags) String() string {
75 s, ok := Nat44EiConfigFlags_name[uint8(x)]
79 str := func(n uint8) string {
80 s, ok := Nat44EiConfigFlags_name[uint8(n)]
84 return "Nat44EiConfigFlags(" + strconv.Itoa(int(n)) + ")"
86 for i := uint8(0); i <= 8; i++ {
101 // Nat44EiAddDelAddressRange defines message 'nat44_ei_add_del_address_range'.
102 // InProgress: the message form may change in the future versions
103 type Nat44EiAddDelAddressRange struct {
104 FirstIPAddress ip_types.IP4Address `binapi:"ip4_address,name=first_ip_address" json:"first_ip_address,omitempty"`
105 LastIPAddress ip_types.IP4Address `binapi:"ip4_address,name=last_ip_address" json:"last_ip_address,omitempty"`
106 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
107 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
110 func (m *Nat44EiAddDelAddressRange) Reset() { *m = Nat44EiAddDelAddressRange{} }
111 func (*Nat44EiAddDelAddressRange) GetMessageName() string { return "nat44_ei_add_del_address_range" }
112 func (*Nat44EiAddDelAddressRange) GetCrcString() string { return "35f21abc" }
113 func (*Nat44EiAddDelAddressRange) GetMessageType() api.MessageType {
114 return api.RequestMessage
117 func (m *Nat44EiAddDelAddressRange) Size() (size int) {
121 size += 1 * 4 // m.FirstIPAddress
122 size += 1 * 4 // m.LastIPAddress
127 func (m *Nat44EiAddDelAddressRange) Marshal(b []byte) ([]byte, error) {
129 b = make([]byte, m.Size())
131 buf := codec.NewBuffer(b)
132 buf.EncodeBytes(m.FirstIPAddress[:], 4)
133 buf.EncodeBytes(m.LastIPAddress[:], 4)
134 buf.EncodeUint32(m.VrfID)
135 buf.EncodeBool(m.IsAdd)
136 return buf.Bytes(), nil
138 func (m *Nat44EiAddDelAddressRange) Unmarshal(b []byte) error {
139 buf := codec.NewBuffer(b)
140 copy(m.FirstIPAddress[:], buf.DecodeBytes(4))
141 copy(m.LastIPAddress[:], buf.DecodeBytes(4))
142 m.VrfID = buf.DecodeUint32()
143 m.IsAdd = buf.DecodeBool()
147 // Nat44EiAddDelAddressRangeReply defines message 'nat44_ei_add_del_address_range_reply'.
148 // InProgress: the message form may change in the future versions
149 type Nat44EiAddDelAddressRangeReply struct {
150 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
153 func (m *Nat44EiAddDelAddressRangeReply) Reset() { *m = Nat44EiAddDelAddressRangeReply{} }
154 func (*Nat44EiAddDelAddressRangeReply) GetMessageName() string {
155 return "nat44_ei_add_del_address_range_reply"
157 func (*Nat44EiAddDelAddressRangeReply) GetCrcString() string { return "e8d4e804" }
158 func (*Nat44EiAddDelAddressRangeReply) GetMessageType() api.MessageType {
159 return api.ReplyMessage
162 func (m *Nat44EiAddDelAddressRangeReply) Size() (size int) {
166 size += 4 // m.Retval
169 func (m *Nat44EiAddDelAddressRangeReply) Marshal(b []byte) ([]byte, error) {
171 b = make([]byte, m.Size())
173 buf := codec.NewBuffer(b)
174 buf.EncodeInt32(m.Retval)
175 return buf.Bytes(), nil
177 func (m *Nat44EiAddDelAddressRangeReply) Unmarshal(b []byte) error {
178 buf := codec.NewBuffer(b)
179 m.Retval = buf.DecodeInt32()
183 // Nat44EiAddDelIdentityMapping defines message 'nat44_ei_add_del_identity_mapping'.
184 // Deprecated: the message will be removed in the future versions
185 type Nat44EiAddDelIdentityMapping struct {
186 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
187 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
188 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
189 Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"`
190 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"`
191 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
192 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
193 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"`
196 func (m *Nat44EiAddDelIdentityMapping) Reset() { *m = Nat44EiAddDelIdentityMapping{} }
197 func (*Nat44EiAddDelIdentityMapping) GetMessageName() string {
198 return "nat44_ei_add_del_identity_mapping"
200 func (*Nat44EiAddDelIdentityMapping) GetCrcString() string { return "cb8606b9" }
201 func (*Nat44EiAddDelIdentityMapping) GetMessageType() api.MessageType {
202 return api.RequestMessage
205 func (m *Nat44EiAddDelIdentityMapping) Size() (size int) {
211 size += 1 * 4 // m.IPAddress
212 size += 1 // m.Protocol
214 size += 4 // m.SwIfIndex
219 func (m *Nat44EiAddDelIdentityMapping) Marshal(b []byte) ([]byte, error) {
221 b = make([]byte, m.Size())
223 buf := codec.NewBuffer(b)
224 buf.EncodeBool(m.IsAdd)
225 buf.EncodeUint8(uint8(m.Flags))
226 buf.EncodeBytes(m.IPAddress[:], 4)
227 buf.EncodeUint8(m.Protocol)
228 buf.EncodeUint16(m.Port)
229 buf.EncodeUint32(uint32(m.SwIfIndex))
230 buf.EncodeUint32(m.VrfID)
231 buf.EncodeString(m.Tag, 64)
232 return buf.Bytes(), nil
234 func (m *Nat44EiAddDelIdentityMapping) Unmarshal(b []byte) error {
235 buf := codec.NewBuffer(b)
236 m.IsAdd = buf.DecodeBool()
237 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
238 copy(m.IPAddress[:], buf.DecodeBytes(4))
239 m.Protocol = buf.DecodeUint8()
240 m.Port = buf.DecodeUint16()
241 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
242 m.VrfID = buf.DecodeUint32()
243 m.Tag = buf.DecodeString(64)
247 // Nat44EiAddDelIdentityMappingReply defines message 'nat44_ei_add_del_identity_mapping_reply'.
248 // Deprecated: the message will be removed in the future versions
249 type Nat44EiAddDelIdentityMappingReply struct {
250 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
253 func (m *Nat44EiAddDelIdentityMappingReply) Reset() { *m = Nat44EiAddDelIdentityMappingReply{} }
254 func (*Nat44EiAddDelIdentityMappingReply) GetMessageName() string {
255 return "nat44_ei_add_del_identity_mapping_reply"
257 func (*Nat44EiAddDelIdentityMappingReply) GetCrcString() string { return "e8d4e804" }
258 func (*Nat44EiAddDelIdentityMappingReply) GetMessageType() api.MessageType {
259 return api.ReplyMessage
262 func (m *Nat44EiAddDelIdentityMappingReply) Size() (size int) {
266 size += 4 // m.Retval
269 func (m *Nat44EiAddDelIdentityMappingReply) Marshal(b []byte) ([]byte, error) {
271 b = make([]byte, m.Size())
273 buf := codec.NewBuffer(b)
274 buf.EncodeInt32(m.Retval)
275 return buf.Bytes(), nil
277 func (m *Nat44EiAddDelIdentityMappingReply) Unmarshal(b []byte) error {
278 buf := codec.NewBuffer(b)
279 m.Retval = buf.DecodeInt32()
283 // Nat44EiAddDelInterfaceAddr defines message 'nat44_ei_add_del_interface_addr'.
284 // Deprecated: the message will be removed in the future versions
285 type Nat44EiAddDelInterfaceAddr struct {
286 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
287 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
288 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
291 func (m *Nat44EiAddDelInterfaceAddr) Reset() { *m = Nat44EiAddDelInterfaceAddr{} }
292 func (*Nat44EiAddDelInterfaceAddr) GetMessageName() string { return "nat44_ei_add_del_interface_addr" }
293 func (*Nat44EiAddDelInterfaceAddr) GetCrcString() string { return "883abbcc" }
294 func (*Nat44EiAddDelInterfaceAddr) GetMessageType() api.MessageType {
295 return api.RequestMessage
298 func (m *Nat44EiAddDelInterfaceAddr) Size() (size int) {
303 size += 4 // m.SwIfIndex
307 func (m *Nat44EiAddDelInterfaceAddr) Marshal(b []byte) ([]byte, error) {
309 b = make([]byte, m.Size())
311 buf := codec.NewBuffer(b)
312 buf.EncodeBool(m.IsAdd)
313 buf.EncodeUint32(uint32(m.SwIfIndex))
314 buf.EncodeUint8(uint8(m.Flags))
315 return buf.Bytes(), nil
317 func (m *Nat44EiAddDelInterfaceAddr) Unmarshal(b []byte) error {
318 buf := codec.NewBuffer(b)
319 m.IsAdd = buf.DecodeBool()
320 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
321 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
325 // Nat44EiAddDelInterfaceAddrReply defines message 'nat44_ei_add_del_interface_addr_reply'.
326 // Deprecated: the message will be removed in the future versions
327 type Nat44EiAddDelInterfaceAddrReply struct {
328 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
331 func (m *Nat44EiAddDelInterfaceAddrReply) Reset() { *m = Nat44EiAddDelInterfaceAddrReply{} }
332 func (*Nat44EiAddDelInterfaceAddrReply) GetMessageName() string {
333 return "nat44_ei_add_del_interface_addr_reply"
335 func (*Nat44EiAddDelInterfaceAddrReply) GetCrcString() string { return "e8d4e804" }
336 func (*Nat44EiAddDelInterfaceAddrReply) GetMessageType() api.MessageType {
337 return api.ReplyMessage
340 func (m *Nat44EiAddDelInterfaceAddrReply) Size() (size int) {
344 size += 4 // m.Retval
347 func (m *Nat44EiAddDelInterfaceAddrReply) Marshal(b []byte) ([]byte, error) {
349 b = make([]byte, m.Size())
351 buf := codec.NewBuffer(b)
352 buf.EncodeInt32(m.Retval)
353 return buf.Bytes(), nil
355 func (m *Nat44EiAddDelInterfaceAddrReply) Unmarshal(b []byte) error {
356 buf := codec.NewBuffer(b)
357 m.Retval = buf.DecodeInt32()
361 // Nat44EiAddDelStaticMapping defines message 'nat44_ei_add_del_static_mapping'.
362 // InProgress: the message form may change in the future versions
363 type Nat44EiAddDelStaticMapping struct {
364 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
365 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
366 LocalIPAddress ip_types.IP4Address `binapi:"ip4_address,name=local_ip_address" json:"local_ip_address,omitempty"`
367 ExternalIPAddress ip_types.IP4Address `binapi:"ip4_address,name=external_ip_address" json:"external_ip_address,omitempty"`
368 Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"`
369 LocalPort uint16 `binapi:"u16,name=local_port" json:"local_port,omitempty"`
370 ExternalPort uint16 `binapi:"u16,name=external_port" json:"external_port,omitempty"`
371 ExternalSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=external_sw_if_index" json:"external_sw_if_index,omitempty"`
372 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
373 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"`
376 func (m *Nat44EiAddDelStaticMapping) Reset() { *m = Nat44EiAddDelStaticMapping{} }
377 func (*Nat44EiAddDelStaticMapping) GetMessageName() string { return "nat44_ei_add_del_static_mapping" }
378 func (*Nat44EiAddDelStaticMapping) GetCrcString() string { return "b404b7fe" }
379 func (*Nat44EiAddDelStaticMapping) GetMessageType() api.MessageType {
380 return api.RequestMessage
383 func (m *Nat44EiAddDelStaticMapping) Size() (size int) {
389 size += 1 * 4 // m.LocalIPAddress
390 size += 1 * 4 // m.ExternalIPAddress
391 size += 1 // m.Protocol
392 size += 2 // m.LocalPort
393 size += 2 // m.ExternalPort
394 size += 4 // m.ExternalSwIfIndex
399 func (m *Nat44EiAddDelStaticMapping) Marshal(b []byte) ([]byte, error) {
401 b = make([]byte, m.Size())
403 buf := codec.NewBuffer(b)
404 buf.EncodeBool(m.IsAdd)
405 buf.EncodeUint8(uint8(m.Flags))
406 buf.EncodeBytes(m.LocalIPAddress[:], 4)
407 buf.EncodeBytes(m.ExternalIPAddress[:], 4)
408 buf.EncodeUint8(m.Protocol)
409 buf.EncodeUint16(m.LocalPort)
410 buf.EncodeUint16(m.ExternalPort)
411 buf.EncodeUint32(uint32(m.ExternalSwIfIndex))
412 buf.EncodeUint32(m.VrfID)
413 buf.EncodeString(m.Tag, 64)
414 return buf.Bytes(), nil
416 func (m *Nat44EiAddDelStaticMapping) Unmarshal(b []byte) error {
417 buf := codec.NewBuffer(b)
418 m.IsAdd = buf.DecodeBool()
419 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
420 copy(m.LocalIPAddress[:], buf.DecodeBytes(4))
421 copy(m.ExternalIPAddress[:], buf.DecodeBytes(4))
422 m.Protocol = buf.DecodeUint8()
423 m.LocalPort = buf.DecodeUint16()
424 m.ExternalPort = buf.DecodeUint16()
425 m.ExternalSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
426 m.VrfID = buf.DecodeUint32()
427 m.Tag = buf.DecodeString(64)
431 // Nat44EiAddDelStaticMappingReply defines message 'nat44_ei_add_del_static_mapping_reply'.
432 // InProgress: the message form may change in the future versions
433 type Nat44EiAddDelStaticMappingReply struct {
434 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
437 func (m *Nat44EiAddDelStaticMappingReply) Reset() { *m = Nat44EiAddDelStaticMappingReply{} }
438 func (*Nat44EiAddDelStaticMappingReply) GetMessageName() string {
439 return "nat44_ei_add_del_static_mapping_reply"
441 func (*Nat44EiAddDelStaticMappingReply) GetCrcString() string { return "e8d4e804" }
442 func (*Nat44EiAddDelStaticMappingReply) GetMessageType() api.MessageType {
443 return api.ReplyMessage
446 func (m *Nat44EiAddDelStaticMappingReply) Size() (size int) {
450 size += 4 // m.Retval
453 func (m *Nat44EiAddDelStaticMappingReply) Marshal(b []byte) ([]byte, error) {
455 b = make([]byte, m.Size())
457 buf := codec.NewBuffer(b)
458 buf.EncodeInt32(m.Retval)
459 return buf.Bytes(), nil
461 func (m *Nat44EiAddDelStaticMappingReply) Unmarshal(b []byte) error {
462 buf := codec.NewBuffer(b)
463 m.Retval = buf.DecodeInt32()
467 // Nat44EiAddressDetails defines message 'nat44_ei_address_details'.
468 // InProgress: the message form may change in the future versions
469 type Nat44EiAddressDetails struct {
470 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
471 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
474 func (m *Nat44EiAddressDetails) Reset() { *m = Nat44EiAddressDetails{} }
475 func (*Nat44EiAddressDetails) GetMessageName() string { return "nat44_ei_address_details" }
476 func (*Nat44EiAddressDetails) GetCrcString() string { return "318f1202" }
477 func (*Nat44EiAddressDetails) GetMessageType() api.MessageType {
478 return api.ReplyMessage
481 func (m *Nat44EiAddressDetails) Size() (size int) {
485 size += 1 * 4 // m.IPAddress
489 func (m *Nat44EiAddressDetails) Marshal(b []byte) ([]byte, error) {
491 b = make([]byte, m.Size())
493 buf := codec.NewBuffer(b)
494 buf.EncodeBytes(m.IPAddress[:], 4)
495 buf.EncodeUint32(m.VrfID)
496 return buf.Bytes(), nil
498 func (m *Nat44EiAddressDetails) Unmarshal(b []byte) error {
499 buf := codec.NewBuffer(b)
500 copy(m.IPAddress[:], buf.DecodeBytes(4))
501 m.VrfID = buf.DecodeUint32()
505 // Nat44EiAddressDump defines message 'nat44_ei_address_dump'.
506 // InProgress: the message form may change in the future versions
507 type Nat44EiAddressDump struct{}
509 func (m *Nat44EiAddressDump) Reset() { *m = Nat44EiAddressDump{} }
510 func (*Nat44EiAddressDump) GetMessageName() string { return "nat44_ei_address_dump" }
511 func (*Nat44EiAddressDump) GetCrcString() string { return "51077d14" }
512 func (*Nat44EiAddressDump) GetMessageType() api.MessageType {
513 return api.RequestMessage
516 func (m *Nat44EiAddressDump) Size() (size int) {
522 func (m *Nat44EiAddressDump) Marshal(b []byte) ([]byte, error) {
524 b = make([]byte, m.Size())
526 buf := codec.NewBuffer(b)
527 return buf.Bytes(), nil
529 func (m *Nat44EiAddressDump) Unmarshal(b []byte) error {
533 // Nat44EiDelSession defines message 'nat44_ei_del_session'.
534 // InProgress: the message form may change in the future versions
535 type Nat44EiDelSession struct {
536 Address ip_types.IP4Address `binapi:"ip4_address,name=address" json:"address,omitempty"`
537 Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"`
538 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"`
539 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
540 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
541 ExtHostAddress ip_types.IP4Address `binapi:"ip4_address,name=ext_host_address" json:"ext_host_address,omitempty"`
542 ExtHostPort uint16 `binapi:"u16,name=ext_host_port" json:"ext_host_port,omitempty"`
545 func (m *Nat44EiDelSession) Reset() { *m = Nat44EiDelSession{} }
546 func (*Nat44EiDelSession) GetMessageName() string { return "nat44_ei_del_session" }
547 func (*Nat44EiDelSession) GetCrcString() string { return "74969ffe" }
548 func (*Nat44EiDelSession) GetMessageType() api.MessageType {
549 return api.RequestMessage
552 func (m *Nat44EiDelSession) Size() (size int) {
556 size += 1 * 4 // m.Address
557 size += 1 // m.Protocol
561 size += 1 * 4 // m.ExtHostAddress
562 size += 2 // m.ExtHostPort
565 func (m *Nat44EiDelSession) Marshal(b []byte) ([]byte, error) {
567 b = make([]byte, m.Size())
569 buf := codec.NewBuffer(b)
570 buf.EncodeBytes(m.Address[:], 4)
571 buf.EncodeUint8(m.Protocol)
572 buf.EncodeUint16(m.Port)
573 buf.EncodeUint32(m.VrfID)
574 buf.EncodeUint8(uint8(m.Flags))
575 buf.EncodeBytes(m.ExtHostAddress[:], 4)
576 buf.EncodeUint16(m.ExtHostPort)
577 return buf.Bytes(), nil
579 func (m *Nat44EiDelSession) Unmarshal(b []byte) error {
580 buf := codec.NewBuffer(b)
581 copy(m.Address[:], buf.DecodeBytes(4))
582 m.Protocol = buf.DecodeUint8()
583 m.Port = buf.DecodeUint16()
584 m.VrfID = buf.DecodeUint32()
585 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
586 copy(m.ExtHostAddress[:], buf.DecodeBytes(4))
587 m.ExtHostPort = buf.DecodeUint16()
591 // Nat44EiDelSessionReply defines message 'nat44_ei_del_session_reply'.
592 // InProgress: the message form may change in the future versions
593 type Nat44EiDelSessionReply struct {
594 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
597 func (m *Nat44EiDelSessionReply) Reset() { *m = Nat44EiDelSessionReply{} }
598 func (*Nat44EiDelSessionReply) GetMessageName() string { return "nat44_ei_del_session_reply" }
599 func (*Nat44EiDelSessionReply) GetCrcString() string { return "e8d4e804" }
600 func (*Nat44EiDelSessionReply) GetMessageType() api.MessageType {
601 return api.ReplyMessage
604 func (m *Nat44EiDelSessionReply) Size() (size int) {
608 size += 4 // m.Retval
611 func (m *Nat44EiDelSessionReply) Marshal(b []byte) ([]byte, error) {
613 b = make([]byte, m.Size())
615 buf := codec.NewBuffer(b)
616 buf.EncodeInt32(m.Retval)
617 return buf.Bytes(), nil
619 func (m *Nat44EiDelSessionReply) Unmarshal(b []byte) error {
620 buf := codec.NewBuffer(b)
621 m.Retval = buf.DecodeInt32()
625 // Nat44EiDelUser defines message 'nat44_ei_del_user'.
626 // InProgress: the message form may change in the future versions
627 type Nat44EiDelUser struct {
628 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
629 FibIndex uint32 `binapi:"u32,name=fib_index" json:"fib_index,omitempty"`
632 func (m *Nat44EiDelUser) Reset() { *m = Nat44EiDelUser{} }
633 func (*Nat44EiDelUser) GetMessageName() string { return "nat44_ei_del_user" }
634 func (*Nat44EiDelUser) GetCrcString() string { return "99a9f998" }
635 func (*Nat44EiDelUser) GetMessageType() api.MessageType {
636 return api.RequestMessage
639 func (m *Nat44EiDelUser) Size() (size int) {
643 size += 1 * 4 // m.IPAddress
644 size += 4 // m.FibIndex
647 func (m *Nat44EiDelUser) Marshal(b []byte) ([]byte, error) {
649 b = make([]byte, m.Size())
651 buf := codec.NewBuffer(b)
652 buf.EncodeBytes(m.IPAddress[:], 4)
653 buf.EncodeUint32(m.FibIndex)
654 return buf.Bytes(), nil
656 func (m *Nat44EiDelUser) Unmarshal(b []byte) error {
657 buf := codec.NewBuffer(b)
658 copy(m.IPAddress[:], buf.DecodeBytes(4))
659 m.FibIndex = buf.DecodeUint32()
663 // Nat44EiDelUserReply defines message 'nat44_ei_del_user_reply'.
664 // InProgress: the message form may change in the future versions
665 type Nat44EiDelUserReply struct {
666 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
669 func (m *Nat44EiDelUserReply) Reset() { *m = Nat44EiDelUserReply{} }
670 func (*Nat44EiDelUserReply) GetMessageName() string { return "nat44_ei_del_user_reply" }
671 func (*Nat44EiDelUserReply) GetCrcString() string { return "e8d4e804" }
672 func (*Nat44EiDelUserReply) GetMessageType() api.MessageType {
673 return api.ReplyMessage
676 func (m *Nat44EiDelUserReply) Size() (size int) {
680 size += 4 // m.Retval
683 func (m *Nat44EiDelUserReply) Marshal(b []byte) ([]byte, error) {
685 b = make([]byte, m.Size())
687 buf := codec.NewBuffer(b)
688 buf.EncodeInt32(m.Retval)
689 return buf.Bytes(), nil
691 func (m *Nat44EiDelUserReply) Unmarshal(b []byte) error {
692 buf := codec.NewBuffer(b)
693 m.Retval = buf.DecodeInt32()
697 // Nat44EiForwardingEnableDisable defines message 'nat44_ei_forwarding_enable_disable'.
698 // InProgress: the message form may change in the future versions
699 type Nat44EiForwardingEnableDisable struct {
700 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
703 func (m *Nat44EiForwardingEnableDisable) Reset() { *m = Nat44EiForwardingEnableDisable{} }
704 func (*Nat44EiForwardingEnableDisable) GetMessageName() string {
705 return "nat44_ei_forwarding_enable_disable"
707 func (*Nat44EiForwardingEnableDisable) GetCrcString() string { return "b3e225d2" }
708 func (*Nat44EiForwardingEnableDisable) GetMessageType() api.MessageType {
709 return api.RequestMessage
712 func (m *Nat44EiForwardingEnableDisable) Size() (size int) {
716 size += 1 // m.Enable
719 func (m *Nat44EiForwardingEnableDisable) Marshal(b []byte) ([]byte, error) {
721 b = make([]byte, m.Size())
723 buf := codec.NewBuffer(b)
724 buf.EncodeBool(m.Enable)
725 return buf.Bytes(), nil
727 func (m *Nat44EiForwardingEnableDisable) Unmarshal(b []byte) error {
728 buf := codec.NewBuffer(b)
729 m.Enable = buf.DecodeBool()
733 // Nat44EiForwardingEnableDisableReply defines message 'nat44_ei_forwarding_enable_disable_reply'.
734 // InProgress: the message form may change in the future versions
735 type Nat44EiForwardingEnableDisableReply struct {
736 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
739 func (m *Nat44EiForwardingEnableDisableReply) Reset() { *m = Nat44EiForwardingEnableDisableReply{} }
740 func (*Nat44EiForwardingEnableDisableReply) GetMessageName() string {
741 return "nat44_ei_forwarding_enable_disable_reply"
743 func (*Nat44EiForwardingEnableDisableReply) GetCrcString() string { return "e8d4e804" }
744 func (*Nat44EiForwardingEnableDisableReply) GetMessageType() api.MessageType {
745 return api.ReplyMessage
748 func (m *Nat44EiForwardingEnableDisableReply) Size() (size int) {
752 size += 4 // m.Retval
755 func (m *Nat44EiForwardingEnableDisableReply) Marshal(b []byte) ([]byte, error) {
757 b = make([]byte, m.Size())
759 buf := codec.NewBuffer(b)
760 buf.EncodeInt32(m.Retval)
761 return buf.Bytes(), nil
763 func (m *Nat44EiForwardingEnableDisableReply) Unmarshal(b []byte) error {
764 buf := codec.NewBuffer(b)
765 m.Retval = buf.DecodeInt32()
769 // Nat44EiGetAddrAndPortAllocAlg defines message 'nat44_ei_get_addr_and_port_alloc_alg'.
770 // Deprecated: the message will be removed in the future versions
771 type Nat44EiGetAddrAndPortAllocAlg struct{}
773 func (m *Nat44EiGetAddrAndPortAllocAlg) Reset() { *m = Nat44EiGetAddrAndPortAllocAlg{} }
774 func (*Nat44EiGetAddrAndPortAllocAlg) GetMessageName() string {
775 return "nat44_ei_get_addr_and_port_alloc_alg"
777 func (*Nat44EiGetAddrAndPortAllocAlg) GetCrcString() string { return "51077d14" }
778 func (*Nat44EiGetAddrAndPortAllocAlg) GetMessageType() api.MessageType {
779 return api.RequestMessage
782 func (m *Nat44EiGetAddrAndPortAllocAlg) Size() (size int) {
788 func (m *Nat44EiGetAddrAndPortAllocAlg) Marshal(b []byte) ([]byte, error) {
790 b = make([]byte, m.Size())
792 buf := codec.NewBuffer(b)
793 return buf.Bytes(), nil
795 func (m *Nat44EiGetAddrAndPortAllocAlg) Unmarshal(b []byte) error {
799 // Nat44EiGetAddrAndPortAllocAlgReply defines message 'nat44_ei_get_addr_and_port_alloc_alg_reply'.
800 // Deprecated: the message will be removed in the future versions
801 type Nat44EiGetAddrAndPortAllocAlgReply struct {
802 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
803 Alg uint8 `binapi:"u8,name=alg" json:"alg,omitempty"`
804 PsidOffset uint8 `binapi:"u8,name=psid_offset" json:"psid_offset,omitempty"`
805 PsidLength uint8 `binapi:"u8,name=psid_length" json:"psid_length,omitempty"`
806 Psid uint16 `binapi:"u16,name=psid" json:"psid,omitempty"`
807 StartPort uint16 `binapi:"u16,name=start_port" json:"start_port,omitempty"`
808 EndPort uint16 `binapi:"u16,name=end_port" json:"end_port,omitempty"`
811 func (m *Nat44EiGetAddrAndPortAllocAlgReply) Reset() { *m = Nat44EiGetAddrAndPortAllocAlgReply{} }
812 func (*Nat44EiGetAddrAndPortAllocAlgReply) GetMessageName() string {
813 return "nat44_ei_get_addr_and_port_alloc_alg_reply"
815 func (*Nat44EiGetAddrAndPortAllocAlgReply) GetCrcString() string { return "3607a7d0" }
816 func (*Nat44EiGetAddrAndPortAllocAlgReply) GetMessageType() api.MessageType {
817 return api.ReplyMessage
820 func (m *Nat44EiGetAddrAndPortAllocAlgReply) Size() (size int) {
824 size += 4 // m.Retval
826 size += 1 // m.PsidOffset
827 size += 1 // m.PsidLength
829 size += 2 // m.StartPort
830 size += 2 // m.EndPort
833 func (m *Nat44EiGetAddrAndPortAllocAlgReply) Marshal(b []byte) ([]byte, error) {
835 b = make([]byte, m.Size())
837 buf := codec.NewBuffer(b)
838 buf.EncodeInt32(m.Retval)
839 buf.EncodeUint8(m.Alg)
840 buf.EncodeUint8(m.PsidOffset)
841 buf.EncodeUint8(m.PsidLength)
842 buf.EncodeUint16(m.Psid)
843 buf.EncodeUint16(m.StartPort)
844 buf.EncodeUint16(m.EndPort)
845 return buf.Bytes(), nil
847 func (m *Nat44EiGetAddrAndPortAllocAlgReply) Unmarshal(b []byte) error {
848 buf := codec.NewBuffer(b)
849 m.Retval = buf.DecodeInt32()
850 m.Alg = buf.DecodeUint8()
851 m.PsidOffset = buf.DecodeUint8()
852 m.PsidLength = buf.DecodeUint8()
853 m.Psid = buf.DecodeUint16()
854 m.StartPort = buf.DecodeUint16()
855 m.EndPort = buf.DecodeUint16()
859 // Nat44EiGetMssClamping defines message 'nat44_ei_get_mss_clamping'.
860 // Deprecated: the message will be removed in the future versions
861 type Nat44EiGetMssClamping struct{}
863 func (m *Nat44EiGetMssClamping) Reset() { *m = Nat44EiGetMssClamping{} }
864 func (*Nat44EiGetMssClamping) GetMessageName() string { return "nat44_ei_get_mss_clamping" }
865 func (*Nat44EiGetMssClamping) GetCrcString() string { return "51077d14" }
866 func (*Nat44EiGetMssClamping) GetMessageType() api.MessageType {
867 return api.RequestMessage
870 func (m *Nat44EiGetMssClamping) Size() (size int) {
876 func (m *Nat44EiGetMssClamping) Marshal(b []byte) ([]byte, error) {
878 b = make([]byte, m.Size())
880 buf := codec.NewBuffer(b)
881 return buf.Bytes(), nil
883 func (m *Nat44EiGetMssClamping) Unmarshal(b []byte) error {
887 // Nat44EiGetMssClampingReply defines message 'nat44_ei_get_mss_clamping_reply'.
888 // Deprecated: the message will be removed in the future versions
889 type Nat44EiGetMssClampingReply struct {
890 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
891 MssValue uint16 `binapi:"u16,name=mss_value" json:"mss_value,omitempty"`
892 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
895 func (m *Nat44EiGetMssClampingReply) Reset() { *m = Nat44EiGetMssClampingReply{} }
896 func (*Nat44EiGetMssClampingReply) GetMessageName() string { return "nat44_ei_get_mss_clamping_reply" }
897 func (*Nat44EiGetMssClampingReply) GetCrcString() string { return "1c0b2a78" }
898 func (*Nat44EiGetMssClampingReply) GetMessageType() api.MessageType {
899 return api.ReplyMessage
902 func (m *Nat44EiGetMssClampingReply) Size() (size int) {
906 size += 4 // m.Retval
907 size += 2 // m.MssValue
908 size += 1 // m.Enable
911 func (m *Nat44EiGetMssClampingReply) Marshal(b []byte) ([]byte, error) {
913 b = make([]byte, m.Size())
915 buf := codec.NewBuffer(b)
916 buf.EncodeInt32(m.Retval)
917 buf.EncodeUint16(m.MssValue)
918 buf.EncodeBool(m.Enable)
919 return buf.Bytes(), nil
921 func (m *Nat44EiGetMssClampingReply) Unmarshal(b []byte) error {
922 buf := codec.NewBuffer(b)
923 m.Retval = buf.DecodeInt32()
924 m.MssValue = buf.DecodeUint16()
925 m.Enable = buf.DecodeBool()
929 // Nat44EiHaFlush defines message 'nat44_ei_ha_flush'.
930 // InProgress: the message form may change in the future versions
931 type Nat44EiHaFlush struct{}
933 func (m *Nat44EiHaFlush) Reset() { *m = Nat44EiHaFlush{} }
934 func (*Nat44EiHaFlush) GetMessageName() string { return "nat44_ei_ha_flush" }
935 func (*Nat44EiHaFlush) GetCrcString() string { return "51077d14" }
936 func (*Nat44EiHaFlush) GetMessageType() api.MessageType {
937 return api.RequestMessage
940 func (m *Nat44EiHaFlush) Size() (size int) {
946 func (m *Nat44EiHaFlush) Marshal(b []byte) ([]byte, error) {
948 b = make([]byte, m.Size())
950 buf := codec.NewBuffer(b)
951 return buf.Bytes(), nil
953 func (m *Nat44EiHaFlush) Unmarshal(b []byte) error {
957 // Nat44EiHaFlushReply defines message 'nat44_ei_ha_flush_reply'.
958 // InProgress: the message form may change in the future versions
959 type Nat44EiHaFlushReply struct {
960 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
963 func (m *Nat44EiHaFlushReply) Reset() { *m = Nat44EiHaFlushReply{} }
964 func (*Nat44EiHaFlushReply) GetMessageName() string { return "nat44_ei_ha_flush_reply" }
965 func (*Nat44EiHaFlushReply) GetCrcString() string { return "e8d4e804" }
966 func (*Nat44EiHaFlushReply) GetMessageType() api.MessageType {
967 return api.ReplyMessage
970 func (m *Nat44EiHaFlushReply) Size() (size int) {
974 size += 4 // m.Retval
977 func (m *Nat44EiHaFlushReply) Marshal(b []byte) ([]byte, error) {
979 b = make([]byte, m.Size())
981 buf := codec.NewBuffer(b)
982 buf.EncodeInt32(m.Retval)
983 return buf.Bytes(), nil
985 func (m *Nat44EiHaFlushReply) Unmarshal(b []byte) error {
986 buf := codec.NewBuffer(b)
987 m.Retval = buf.DecodeInt32()
991 // Nat44EiHaGetFailover defines message 'nat44_ei_ha_get_failover'.
992 // Deprecated: the message will be removed in the future versions
993 type Nat44EiHaGetFailover struct{}
995 func (m *Nat44EiHaGetFailover) Reset() { *m = Nat44EiHaGetFailover{} }
996 func (*Nat44EiHaGetFailover) GetMessageName() string { return "nat44_ei_ha_get_failover" }
997 func (*Nat44EiHaGetFailover) GetCrcString() string { return "51077d14" }
998 func (*Nat44EiHaGetFailover) GetMessageType() api.MessageType {
999 return api.RequestMessage
1002 func (m *Nat44EiHaGetFailover) Size() (size int) {
1008 func (m *Nat44EiHaGetFailover) Marshal(b []byte) ([]byte, error) {
1010 b = make([]byte, m.Size())
1012 buf := codec.NewBuffer(b)
1013 return buf.Bytes(), nil
1015 func (m *Nat44EiHaGetFailover) Unmarshal(b []byte) error {
1019 // Nat44EiHaGetFailoverReply defines message 'nat44_ei_ha_get_failover_reply'.
1020 // Deprecated: the message will be removed in the future versions
1021 type Nat44EiHaGetFailoverReply struct {
1022 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1023 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
1024 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"`
1025 SessionRefreshInterval uint32 `binapi:"u32,name=session_refresh_interval" json:"session_refresh_interval,omitempty"`
1028 func (m *Nat44EiHaGetFailoverReply) Reset() { *m = Nat44EiHaGetFailoverReply{} }
1029 func (*Nat44EiHaGetFailoverReply) GetMessageName() string { return "nat44_ei_ha_get_failover_reply" }
1030 func (*Nat44EiHaGetFailoverReply) GetCrcString() string { return "a67d8752" }
1031 func (*Nat44EiHaGetFailoverReply) GetMessageType() api.MessageType {
1032 return api.ReplyMessage
1035 func (m *Nat44EiHaGetFailoverReply) Size() (size int) {
1039 size += 4 // m.Retval
1040 size += 1 * 4 // m.IPAddress
1042 size += 4 // m.SessionRefreshInterval
1045 func (m *Nat44EiHaGetFailoverReply) Marshal(b []byte) ([]byte, error) {
1047 b = make([]byte, m.Size())
1049 buf := codec.NewBuffer(b)
1050 buf.EncodeInt32(m.Retval)
1051 buf.EncodeBytes(m.IPAddress[:], 4)
1052 buf.EncodeUint16(m.Port)
1053 buf.EncodeUint32(m.SessionRefreshInterval)
1054 return buf.Bytes(), nil
1056 func (m *Nat44EiHaGetFailoverReply) Unmarshal(b []byte) error {
1057 buf := codec.NewBuffer(b)
1058 m.Retval = buf.DecodeInt32()
1059 copy(m.IPAddress[:], buf.DecodeBytes(4))
1060 m.Port = buf.DecodeUint16()
1061 m.SessionRefreshInterval = buf.DecodeUint32()
1065 // Nat44EiHaGetListener defines message 'nat44_ei_ha_get_listener'.
1066 // Deprecated: the message will be removed in the future versions
1067 type Nat44EiHaGetListener struct{}
1069 func (m *Nat44EiHaGetListener) Reset() { *m = Nat44EiHaGetListener{} }
1070 func (*Nat44EiHaGetListener) GetMessageName() string { return "nat44_ei_ha_get_listener" }
1071 func (*Nat44EiHaGetListener) GetCrcString() string { return "51077d14" }
1072 func (*Nat44EiHaGetListener) GetMessageType() api.MessageType {
1073 return api.RequestMessage
1076 func (m *Nat44EiHaGetListener) Size() (size int) {
1082 func (m *Nat44EiHaGetListener) Marshal(b []byte) ([]byte, error) {
1084 b = make([]byte, m.Size())
1086 buf := codec.NewBuffer(b)
1087 return buf.Bytes(), nil
1089 func (m *Nat44EiHaGetListener) Unmarshal(b []byte) error {
1093 // Nat44EiHaGetListenerReply defines message 'nat44_ei_ha_get_listener_reply'.
1094 // Deprecated: the message will be removed in the future versions
1095 type Nat44EiHaGetListenerReply struct {
1096 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1097 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
1098 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"`
1099 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
1102 func (m *Nat44EiHaGetListenerReply) Reset() { *m = Nat44EiHaGetListenerReply{} }
1103 func (*Nat44EiHaGetListenerReply) GetMessageName() string { return "nat44_ei_ha_get_listener_reply" }
1104 func (*Nat44EiHaGetListenerReply) GetCrcString() string { return "123ea41f" }
1105 func (*Nat44EiHaGetListenerReply) GetMessageType() api.MessageType {
1106 return api.ReplyMessage
1109 func (m *Nat44EiHaGetListenerReply) Size() (size int) {
1113 size += 4 // m.Retval
1114 size += 1 * 4 // m.IPAddress
1116 size += 4 // m.PathMtu
1119 func (m *Nat44EiHaGetListenerReply) Marshal(b []byte) ([]byte, error) {
1121 b = make([]byte, m.Size())
1123 buf := codec.NewBuffer(b)
1124 buf.EncodeInt32(m.Retval)
1125 buf.EncodeBytes(m.IPAddress[:], 4)
1126 buf.EncodeUint16(m.Port)
1127 buf.EncodeUint32(m.PathMtu)
1128 return buf.Bytes(), nil
1130 func (m *Nat44EiHaGetListenerReply) Unmarshal(b []byte) error {
1131 buf := codec.NewBuffer(b)
1132 m.Retval = buf.DecodeInt32()
1133 copy(m.IPAddress[:], buf.DecodeBytes(4))
1134 m.Port = buf.DecodeUint16()
1135 m.PathMtu = buf.DecodeUint32()
1139 // Nat44EiHaResync defines message 'nat44_ei_ha_resync'.
1140 // InProgress: the message form may change in the future versions
1141 type Nat44EiHaResync struct {
1142 WantResyncEvent uint8 `binapi:"u8,name=want_resync_event" json:"want_resync_event,omitempty"`
1143 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
1146 func (m *Nat44EiHaResync) Reset() { *m = Nat44EiHaResync{} }
1147 func (*Nat44EiHaResync) GetMessageName() string { return "nat44_ei_ha_resync" }
1148 func (*Nat44EiHaResync) GetCrcString() string { return "c8ab9e03" }
1149 func (*Nat44EiHaResync) GetMessageType() api.MessageType {
1150 return api.RequestMessage
1153 func (m *Nat44EiHaResync) Size() (size int) {
1157 size += 1 // m.WantResyncEvent
1161 func (m *Nat44EiHaResync) Marshal(b []byte) ([]byte, error) {
1163 b = make([]byte, m.Size())
1165 buf := codec.NewBuffer(b)
1166 buf.EncodeUint8(m.WantResyncEvent)
1167 buf.EncodeUint32(m.PID)
1168 return buf.Bytes(), nil
1170 func (m *Nat44EiHaResync) Unmarshal(b []byte) error {
1171 buf := codec.NewBuffer(b)
1172 m.WantResyncEvent = buf.DecodeUint8()
1173 m.PID = buf.DecodeUint32()
1177 // Nat44EiHaResyncCompletedEvent defines message 'nat44_ei_ha_resync_completed_event'.
1178 // InProgress: the message form may change in the future versions
1179 type Nat44EiHaResyncCompletedEvent struct {
1180 PID uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
1181 MissedCount uint32 `binapi:"u32,name=missed_count" json:"missed_count,omitempty"`
1184 func (m *Nat44EiHaResyncCompletedEvent) Reset() { *m = Nat44EiHaResyncCompletedEvent{} }
1185 func (*Nat44EiHaResyncCompletedEvent) GetMessageName() string {
1186 return "nat44_ei_ha_resync_completed_event"
1188 func (*Nat44EiHaResyncCompletedEvent) GetCrcString() string { return "fdc598fb" }
1189 func (*Nat44EiHaResyncCompletedEvent) GetMessageType() api.MessageType {
1190 return api.EventMessage
1193 func (m *Nat44EiHaResyncCompletedEvent) Size() (size int) {
1198 size += 4 // m.MissedCount
1201 func (m *Nat44EiHaResyncCompletedEvent) Marshal(b []byte) ([]byte, error) {
1203 b = make([]byte, m.Size())
1205 buf := codec.NewBuffer(b)
1206 buf.EncodeUint32(m.PID)
1207 buf.EncodeUint32(m.MissedCount)
1208 return buf.Bytes(), nil
1210 func (m *Nat44EiHaResyncCompletedEvent) Unmarshal(b []byte) error {
1211 buf := codec.NewBuffer(b)
1212 m.PID = buf.DecodeUint32()
1213 m.MissedCount = buf.DecodeUint32()
1217 // Nat44EiHaResyncReply defines message 'nat44_ei_ha_resync_reply'.
1218 // InProgress: the message form may change in the future versions
1219 type Nat44EiHaResyncReply struct {
1220 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1223 func (m *Nat44EiHaResyncReply) Reset() { *m = Nat44EiHaResyncReply{} }
1224 func (*Nat44EiHaResyncReply) GetMessageName() string { return "nat44_ei_ha_resync_reply" }
1225 func (*Nat44EiHaResyncReply) GetCrcString() string { return "e8d4e804" }
1226 func (*Nat44EiHaResyncReply) GetMessageType() api.MessageType {
1227 return api.ReplyMessage
1230 func (m *Nat44EiHaResyncReply) Size() (size int) {
1234 size += 4 // m.Retval
1237 func (m *Nat44EiHaResyncReply) Marshal(b []byte) ([]byte, error) {
1239 b = make([]byte, m.Size())
1241 buf := codec.NewBuffer(b)
1242 buf.EncodeInt32(m.Retval)
1243 return buf.Bytes(), nil
1245 func (m *Nat44EiHaResyncReply) Unmarshal(b []byte) error {
1246 buf := codec.NewBuffer(b)
1247 m.Retval = buf.DecodeInt32()
1251 // Nat44EiHaSetFailover defines message 'nat44_ei_ha_set_failover'.
1252 // InProgress: the message form may change in the future versions
1253 type Nat44EiHaSetFailover struct {
1254 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
1255 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"`
1256 SessionRefreshInterval uint32 `binapi:"u32,name=session_refresh_interval" json:"session_refresh_interval,omitempty"`
1259 func (m *Nat44EiHaSetFailover) Reset() { *m = Nat44EiHaSetFailover{} }
1260 func (*Nat44EiHaSetFailover) GetMessageName() string { return "nat44_ei_ha_set_failover" }
1261 func (*Nat44EiHaSetFailover) GetCrcString() string { return "718246af" }
1262 func (*Nat44EiHaSetFailover) GetMessageType() api.MessageType {
1263 return api.RequestMessage
1266 func (m *Nat44EiHaSetFailover) Size() (size int) {
1270 size += 1 * 4 // m.IPAddress
1272 size += 4 // m.SessionRefreshInterval
1275 func (m *Nat44EiHaSetFailover) Marshal(b []byte) ([]byte, error) {
1277 b = make([]byte, m.Size())
1279 buf := codec.NewBuffer(b)
1280 buf.EncodeBytes(m.IPAddress[:], 4)
1281 buf.EncodeUint16(m.Port)
1282 buf.EncodeUint32(m.SessionRefreshInterval)
1283 return buf.Bytes(), nil
1285 func (m *Nat44EiHaSetFailover) Unmarshal(b []byte) error {
1286 buf := codec.NewBuffer(b)
1287 copy(m.IPAddress[:], buf.DecodeBytes(4))
1288 m.Port = buf.DecodeUint16()
1289 m.SessionRefreshInterval = buf.DecodeUint32()
1293 // Nat44EiHaSetFailoverReply defines message 'nat44_ei_ha_set_failover_reply'.
1294 // InProgress: the message form may change in the future versions
1295 type Nat44EiHaSetFailoverReply struct {
1296 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1299 func (m *Nat44EiHaSetFailoverReply) Reset() { *m = Nat44EiHaSetFailoverReply{} }
1300 func (*Nat44EiHaSetFailoverReply) GetMessageName() string { return "nat44_ei_ha_set_failover_reply" }
1301 func (*Nat44EiHaSetFailoverReply) GetCrcString() string { return "e8d4e804" }
1302 func (*Nat44EiHaSetFailoverReply) GetMessageType() api.MessageType {
1303 return api.ReplyMessage
1306 func (m *Nat44EiHaSetFailoverReply) Size() (size int) {
1310 size += 4 // m.Retval
1313 func (m *Nat44EiHaSetFailoverReply) Marshal(b []byte) ([]byte, error) {
1315 b = make([]byte, m.Size())
1317 buf := codec.NewBuffer(b)
1318 buf.EncodeInt32(m.Retval)
1319 return buf.Bytes(), nil
1321 func (m *Nat44EiHaSetFailoverReply) Unmarshal(b []byte) error {
1322 buf := codec.NewBuffer(b)
1323 m.Retval = buf.DecodeInt32()
1327 // Nat44EiHaSetListener defines message 'nat44_ei_ha_set_listener'.
1328 // InProgress: the message form may change in the future versions
1329 type Nat44EiHaSetListener struct {
1330 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
1331 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"`
1332 PathMtu uint32 `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
1335 func (m *Nat44EiHaSetListener) Reset() { *m = Nat44EiHaSetListener{} }
1336 func (*Nat44EiHaSetListener) GetMessageName() string { return "nat44_ei_ha_set_listener" }
1337 func (*Nat44EiHaSetListener) GetCrcString() string { return "e4a8cb4e" }
1338 func (*Nat44EiHaSetListener) GetMessageType() api.MessageType {
1339 return api.RequestMessage
1342 func (m *Nat44EiHaSetListener) Size() (size int) {
1346 size += 1 * 4 // m.IPAddress
1348 size += 4 // m.PathMtu
1351 func (m *Nat44EiHaSetListener) Marshal(b []byte) ([]byte, error) {
1353 b = make([]byte, m.Size())
1355 buf := codec.NewBuffer(b)
1356 buf.EncodeBytes(m.IPAddress[:], 4)
1357 buf.EncodeUint16(m.Port)
1358 buf.EncodeUint32(m.PathMtu)
1359 return buf.Bytes(), nil
1361 func (m *Nat44EiHaSetListener) Unmarshal(b []byte) error {
1362 buf := codec.NewBuffer(b)
1363 copy(m.IPAddress[:], buf.DecodeBytes(4))
1364 m.Port = buf.DecodeUint16()
1365 m.PathMtu = buf.DecodeUint32()
1369 // Nat44EiHaSetListenerReply defines message 'nat44_ei_ha_set_listener_reply'.
1370 // InProgress: the message form may change in the future versions
1371 type Nat44EiHaSetListenerReply struct {
1372 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1375 func (m *Nat44EiHaSetListenerReply) Reset() { *m = Nat44EiHaSetListenerReply{} }
1376 func (*Nat44EiHaSetListenerReply) GetMessageName() string { return "nat44_ei_ha_set_listener_reply" }
1377 func (*Nat44EiHaSetListenerReply) GetCrcString() string { return "e8d4e804" }
1378 func (*Nat44EiHaSetListenerReply) GetMessageType() api.MessageType {
1379 return api.ReplyMessage
1382 func (m *Nat44EiHaSetListenerReply) Size() (size int) {
1386 size += 4 // m.Retval
1389 func (m *Nat44EiHaSetListenerReply) Marshal(b []byte) ([]byte, error) {
1391 b = make([]byte, m.Size())
1393 buf := codec.NewBuffer(b)
1394 buf.EncodeInt32(m.Retval)
1395 return buf.Bytes(), nil
1397 func (m *Nat44EiHaSetListenerReply) Unmarshal(b []byte) error {
1398 buf := codec.NewBuffer(b)
1399 m.Retval = buf.DecodeInt32()
1403 // Nat44EiIdentityMappingDetails defines message 'nat44_ei_identity_mapping_details'.
1404 // Deprecated: the message will be removed in the future versions
1405 type Nat44EiIdentityMappingDetails struct {
1406 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
1407 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
1408 Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"`
1409 Port uint16 `binapi:"u16,name=port" json:"port,omitempty"`
1410 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1411 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
1412 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"`
1415 func (m *Nat44EiIdentityMappingDetails) Reset() { *m = Nat44EiIdentityMappingDetails{} }
1416 func (*Nat44EiIdentityMappingDetails) GetMessageName() string {
1417 return "nat44_ei_identity_mapping_details"
1419 func (*Nat44EiIdentityMappingDetails) GetCrcString() string { return "30d53e26" }
1420 func (*Nat44EiIdentityMappingDetails) GetMessageType() api.MessageType {
1421 return api.ReplyMessage
1424 func (m *Nat44EiIdentityMappingDetails) Size() (size int) {
1428 size += 1 // m.Flags
1429 size += 1 * 4 // m.IPAddress
1430 size += 1 // m.Protocol
1432 size += 4 // m.SwIfIndex
1433 size += 4 // m.VrfID
1437 func (m *Nat44EiIdentityMappingDetails) Marshal(b []byte) ([]byte, error) {
1439 b = make([]byte, m.Size())
1441 buf := codec.NewBuffer(b)
1442 buf.EncodeUint8(uint8(m.Flags))
1443 buf.EncodeBytes(m.IPAddress[:], 4)
1444 buf.EncodeUint8(m.Protocol)
1445 buf.EncodeUint16(m.Port)
1446 buf.EncodeUint32(uint32(m.SwIfIndex))
1447 buf.EncodeUint32(m.VrfID)
1448 buf.EncodeString(m.Tag, 64)
1449 return buf.Bytes(), nil
1451 func (m *Nat44EiIdentityMappingDetails) Unmarshal(b []byte) error {
1452 buf := codec.NewBuffer(b)
1453 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
1454 copy(m.IPAddress[:], buf.DecodeBytes(4))
1455 m.Protocol = buf.DecodeUint8()
1456 m.Port = buf.DecodeUint16()
1457 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1458 m.VrfID = buf.DecodeUint32()
1459 m.Tag = buf.DecodeString(64)
1463 // Nat44EiIdentityMappingDump defines message 'nat44_ei_identity_mapping_dump'.
1464 // Deprecated: the message will be removed in the future versions
1465 type Nat44EiIdentityMappingDump struct{}
1467 func (m *Nat44EiIdentityMappingDump) Reset() { *m = Nat44EiIdentityMappingDump{} }
1468 func (*Nat44EiIdentityMappingDump) GetMessageName() string { return "nat44_ei_identity_mapping_dump" }
1469 func (*Nat44EiIdentityMappingDump) GetCrcString() string { return "51077d14" }
1470 func (*Nat44EiIdentityMappingDump) GetMessageType() api.MessageType {
1471 return api.RequestMessage
1474 func (m *Nat44EiIdentityMappingDump) Size() (size int) {
1480 func (m *Nat44EiIdentityMappingDump) Marshal(b []byte) ([]byte, error) {
1482 b = make([]byte, m.Size())
1484 buf := codec.NewBuffer(b)
1485 return buf.Bytes(), nil
1487 func (m *Nat44EiIdentityMappingDump) Unmarshal(b []byte) error {
1491 // Nat44EiInterfaceAddDelFeature defines message 'nat44_ei_interface_add_del_feature'.
1492 // InProgress: the message form may change in the future versions
1493 type Nat44EiInterfaceAddDelFeature struct {
1494 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
1495 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
1496 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1499 func (m *Nat44EiInterfaceAddDelFeature) Reset() { *m = Nat44EiInterfaceAddDelFeature{} }
1500 func (*Nat44EiInterfaceAddDelFeature) GetMessageName() string {
1501 return "nat44_ei_interface_add_del_feature"
1503 func (*Nat44EiInterfaceAddDelFeature) GetCrcString() string { return "63a2db8b" }
1504 func (*Nat44EiInterfaceAddDelFeature) GetMessageType() api.MessageType {
1505 return api.RequestMessage
1508 func (m *Nat44EiInterfaceAddDelFeature) Size() (size int) {
1512 size += 1 // m.IsAdd
1513 size += 1 // m.Flags
1514 size += 4 // m.SwIfIndex
1517 func (m *Nat44EiInterfaceAddDelFeature) Marshal(b []byte) ([]byte, error) {
1519 b = make([]byte, m.Size())
1521 buf := codec.NewBuffer(b)
1522 buf.EncodeBool(m.IsAdd)
1523 buf.EncodeUint8(uint8(m.Flags))
1524 buf.EncodeUint32(uint32(m.SwIfIndex))
1525 return buf.Bytes(), nil
1527 func (m *Nat44EiInterfaceAddDelFeature) Unmarshal(b []byte) error {
1528 buf := codec.NewBuffer(b)
1529 m.IsAdd = buf.DecodeBool()
1530 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
1531 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1535 // Nat44EiInterfaceAddDelFeatureReply defines message 'nat44_ei_interface_add_del_feature_reply'.
1536 // InProgress: the message form may change in the future versions
1537 type Nat44EiInterfaceAddDelFeatureReply struct {
1538 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1541 func (m *Nat44EiInterfaceAddDelFeatureReply) Reset() { *m = Nat44EiInterfaceAddDelFeatureReply{} }
1542 func (*Nat44EiInterfaceAddDelFeatureReply) GetMessageName() string {
1543 return "nat44_ei_interface_add_del_feature_reply"
1545 func (*Nat44EiInterfaceAddDelFeatureReply) GetCrcString() string { return "e8d4e804" }
1546 func (*Nat44EiInterfaceAddDelFeatureReply) GetMessageType() api.MessageType {
1547 return api.ReplyMessage
1550 func (m *Nat44EiInterfaceAddDelFeatureReply) Size() (size int) {
1554 size += 4 // m.Retval
1557 func (m *Nat44EiInterfaceAddDelFeatureReply) Marshal(b []byte) ([]byte, error) {
1559 b = make([]byte, m.Size())
1561 buf := codec.NewBuffer(b)
1562 buf.EncodeInt32(m.Retval)
1563 return buf.Bytes(), nil
1565 func (m *Nat44EiInterfaceAddDelFeatureReply) Unmarshal(b []byte) error {
1566 buf := codec.NewBuffer(b)
1567 m.Retval = buf.DecodeInt32()
1571 // Nat44EiInterfaceAddDelOutputFeature defines message 'nat44_ei_interface_add_del_output_feature'.
1572 // Deprecated: the message will be removed in the future versions
1573 type Nat44EiInterfaceAddDelOutputFeature struct {
1574 IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
1575 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
1576 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1579 func (m *Nat44EiInterfaceAddDelOutputFeature) Reset() { *m = Nat44EiInterfaceAddDelOutputFeature{} }
1580 func (*Nat44EiInterfaceAddDelOutputFeature) GetMessageName() string {
1581 return "nat44_ei_interface_add_del_output_feature"
1583 func (*Nat44EiInterfaceAddDelOutputFeature) GetCrcString() string { return "63a2db8b" }
1584 func (*Nat44EiInterfaceAddDelOutputFeature) GetMessageType() api.MessageType {
1585 return api.RequestMessage
1588 func (m *Nat44EiInterfaceAddDelOutputFeature) Size() (size int) {
1592 size += 1 // m.IsAdd
1593 size += 1 // m.Flags
1594 size += 4 // m.SwIfIndex
1597 func (m *Nat44EiInterfaceAddDelOutputFeature) Marshal(b []byte) ([]byte, error) {
1599 b = make([]byte, m.Size())
1601 buf := codec.NewBuffer(b)
1602 buf.EncodeBool(m.IsAdd)
1603 buf.EncodeUint8(uint8(m.Flags))
1604 buf.EncodeUint32(uint32(m.SwIfIndex))
1605 return buf.Bytes(), nil
1607 func (m *Nat44EiInterfaceAddDelOutputFeature) Unmarshal(b []byte) error {
1608 buf := codec.NewBuffer(b)
1609 m.IsAdd = buf.DecodeBool()
1610 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
1611 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1615 // Nat44EiInterfaceAddDelOutputFeatureReply defines message 'nat44_ei_interface_add_del_output_feature_reply'.
1616 // Deprecated: the message will be removed in the future versions
1617 type Nat44EiInterfaceAddDelOutputFeatureReply struct {
1618 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1621 func (m *Nat44EiInterfaceAddDelOutputFeatureReply) Reset() {
1622 *m = Nat44EiInterfaceAddDelOutputFeatureReply{}
1624 func (*Nat44EiInterfaceAddDelOutputFeatureReply) GetMessageName() string {
1625 return "nat44_ei_interface_add_del_output_feature_reply"
1627 func (*Nat44EiInterfaceAddDelOutputFeatureReply) GetCrcString() string { return "e8d4e804" }
1628 func (*Nat44EiInterfaceAddDelOutputFeatureReply) GetMessageType() api.MessageType {
1629 return api.ReplyMessage
1632 func (m *Nat44EiInterfaceAddDelOutputFeatureReply) Size() (size int) {
1636 size += 4 // m.Retval
1639 func (m *Nat44EiInterfaceAddDelOutputFeatureReply) Marshal(b []byte) ([]byte, error) {
1641 b = make([]byte, m.Size())
1643 buf := codec.NewBuffer(b)
1644 buf.EncodeInt32(m.Retval)
1645 return buf.Bytes(), nil
1647 func (m *Nat44EiInterfaceAddDelOutputFeatureReply) Unmarshal(b []byte) error {
1648 buf := codec.NewBuffer(b)
1649 m.Retval = buf.DecodeInt32()
1653 // Nat44EiInterfaceAddrDetails defines message 'nat44_ei_interface_addr_details'.
1654 // Deprecated: the message will be removed in the future versions
1655 type Nat44EiInterfaceAddrDetails struct {
1656 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1659 func (m *Nat44EiInterfaceAddrDetails) Reset() { *m = Nat44EiInterfaceAddrDetails{} }
1660 func (*Nat44EiInterfaceAddrDetails) GetMessageName() string { return "nat44_ei_interface_addr_details" }
1661 func (*Nat44EiInterfaceAddrDetails) GetCrcString() string { return "0b45011c" }
1662 func (*Nat44EiInterfaceAddrDetails) GetMessageType() api.MessageType {
1663 return api.ReplyMessage
1666 func (m *Nat44EiInterfaceAddrDetails) Size() (size int) {
1670 size += 4 // m.SwIfIndex
1673 func (m *Nat44EiInterfaceAddrDetails) Marshal(b []byte) ([]byte, error) {
1675 b = make([]byte, m.Size())
1677 buf := codec.NewBuffer(b)
1678 buf.EncodeUint32(uint32(m.SwIfIndex))
1679 return buf.Bytes(), nil
1681 func (m *Nat44EiInterfaceAddrDetails) Unmarshal(b []byte) error {
1682 buf := codec.NewBuffer(b)
1683 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1687 // Nat44EiInterfaceAddrDump defines message 'nat44_ei_interface_addr_dump'.
1688 // Deprecated: the message will be removed in the future versions
1689 type Nat44EiInterfaceAddrDump struct{}
1691 func (m *Nat44EiInterfaceAddrDump) Reset() { *m = Nat44EiInterfaceAddrDump{} }
1692 func (*Nat44EiInterfaceAddrDump) GetMessageName() string { return "nat44_ei_interface_addr_dump" }
1693 func (*Nat44EiInterfaceAddrDump) GetCrcString() string { return "51077d14" }
1694 func (*Nat44EiInterfaceAddrDump) GetMessageType() api.MessageType {
1695 return api.RequestMessage
1698 func (m *Nat44EiInterfaceAddrDump) Size() (size int) {
1704 func (m *Nat44EiInterfaceAddrDump) Marshal(b []byte) ([]byte, error) {
1706 b = make([]byte, m.Size())
1708 buf := codec.NewBuffer(b)
1709 return buf.Bytes(), nil
1711 func (m *Nat44EiInterfaceAddrDump) Unmarshal(b []byte) error {
1715 // Nat44EiInterfaceDetails defines message 'nat44_ei_interface_details'.
1716 // InProgress: the message form may change in the future versions
1717 type Nat44EiInterfaceDetails struct {
1718 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
1719 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1722 func (m *Nat44EiInterfaceDetails) Reset() { *m = Nat44EiInterfaceDetails{} }
1723 func (*Nat44EiInterfaceDetails) GetMessageName() string { return "nat44_ei_interface_details" }
1724 func (*Nat44EiInterfaceDetails) GetCrcString() string { return "f446e508" }
1725 func (*Nat44EiInterfaceDetails) GetMessageType() api.MessageType {
1726 return api.ReplyMessage
1729 func (m *Nat44EiInterfaceDetails) Size() (size int) {
1733 size += 1 // m.Flags
1734 size += 4 // m.SwIfIndex
1737 func (m *Nat44EiInterfaceDetails) Marshal(b []byte) ([]byte, error) {
1739 b = make([]byte, m.Size())
1741 buf := codec.NewBuffer(b)
1742 buf.EncodeUint8(uint8(m.Flags))
1743 buf.EncodeUint32(uint32(m.SwIfIndex))
1744 return buf.Bytes(), nil
1746 func (m *Nat44EiInterfaceDetails) Unmarshal(b []byte) error {
1747 buf := codec.NewBuffer(b)
1748 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
1749 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1753 // Nat44EiInterfaceDump defines message 'nat44_ei_interface_dump'.
1754 // InProgress: the message form may change in the future versions
1755 type Nat44EiInterfaceDump struct{}
1757 func (m *Nat44EiInterfaceDump) Reset() { *m = Nat44EiInterfaceDump{} }
1758 func (*Nat44EiInterfaceDump) GetMessageName() string { return "nat44_ei_interface_dump" }
1759 func (*Nat44EiInterfaceDump) GetCrcString() string { return "51077d14" }
1760 func (*Nat44EiInterfaceDump) GetMessageType() api.MessageType {
1761 return api.RequestMessage
1764 func (m *Nat44EiInterfaceDump) Size() (size int) {
1770 func (m *Nat44EiInterfaceDump) Marshal(b []byte) ([]byte, error) {
1772 b = make([]byte, m.Size())
1774 buf := codec.NewBuffer(b)
1775 return buf.Bytes(), nil
1777 func (m *Nat44EiInterfaceDump) Unmarshal(b []byte) error {
1781 // Nat44EiInterfaceOutputFeatureDetails defines message 'nat44_ei_interface_output_feature_details'.
1782 // Deprecated: the message will be removed in the future versions
1783 type Nat44EiInterfaceOutputFeatureDetails struct {
1784 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
1785 SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
1788 func (m *Nat44EiInterfaceOutputFeatureDetails) Reset() { *m = Nat44EiInterfaceOutputFeatureDetails{} }
1789 func (*Nat44EiInterfaceOutputFeatureDetails) GetMessageName() string {
1790 return "nat44_ei_interface_output_feature_details"
1792 func (*Nat44EiInterfaceOutputFeatureDetails) GetCrcString() string { return "f446e508" }
1793 func (*Nat44EiInterfaceOutputFeatureDetails) GetMessageType() api.MessageType {
1794 return api.ReplyMessage
1797 func (m *Nat44EiInterfaceOutputFeatureDetails) Size() (size int) {
1801 size += 1 // m.Flags
1802 size += 4 // m.SwIfIndex
1805 func (m *Nat44EiInterfaceOutputFeatureDetails) Marshal(b []byte) ([]byte, error) {
1807 b = make([]byte, m.Size())
1809 buf := codec.NewBuffer(b)
1810 buf.EncodeUint8(uint8(m.Flags))
1811 buf.EncodeUint32(uint32(m.SwIfIndex))
1812 return buf.Bytes(), nil
1814 func (m *Nat44EiInterfaceOutputFeatureDetails) Unmarshal(b []byte) error {
1815 buf := codec.NewBuffer(b)
1816 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
1817 m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
1821 // Nat44EiInterfaceOutputFeatureDump defines message 'nat44_ei_interface_output_feature_dump'.
1822 // Deprecated: the message will be removed in the future versions
1823 type Nat44EiInterfaceOutputFeatureDump struct{}
1825 func (m *Nat44EiInterfaceOutputFeatureDump) Reset() { *m = Nat44EiInterfaceOutputFeatureDump{} }
1826 func (*Nat44EiInterfaceOutputFeatureDump) GetMessageName() string {
1827 return "nat44_ei_interface_output_feature_dump"
1829 func (*Nat44EiInterfaceOutputFeatureDump) GetCrcString() string { return "51077d14" }
1830 func (*Nat44EiInterfaceOutputFeatureDump) GetMessageType() api.MessageType {
1831 return api.RequestMessage
1834 func (m *Nat44EiInterfaceOutputFeatureDump) Size() (size int) {
1840 func (m *Nat44EiInterfaceOutputFeatureDump) Marshal(b []byte) ([]byte, error) {
1842 b = make([]byte, m.Size())
1844 buf := codec.NewBuffer(b)
1845 return buf.Bytes(), nil
1847 func (m *Nat44EiInterfaceOutputFeatureDump) Unmarshal(b []byte) error {
1851 // Nat44EiIpfixEnableDisable defines message 'nat44_ei_ipfix_enable_disable'.
1852 // InProgress: the message form may change in the future versions
1853 type Nat44EiIpfixEnableDisable struct {
1854 DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"`
1855 SrcPort uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"`
1856 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
1859 func (m *Nat44EiIpfixEnableDisable) Reset() { *m = Nat44EiIpfixEnableDisable{} }
1860 func (*Nat44EiIpfixEnableDisable) GetMessageName() string { return "nat44_ei_ipfix_enable_disable" }
1861 func (*Nat44EiIpfixEnableDisable) GetCrcString() string { return "9af4a2d2" }
1862 func (*Nat44EiIpfixEnableDisable) GetMessageType() api.MessageType {
1863 return api.RequestMessage
1866 func (m *Nat44EiIpfixEnableDisable) Size() (size int) {
1870 size += 4 // m.DomainID
1871 size += 2 // m.SrcPort
1872 size += 1 // m.Enable
1875 func (m *Nat44EiIpfixEnableDisable) Marshal(b []byte) ([]byte, error) {
1877 b = make([]byte, m.Size())
1879 buf := codec.NewBuffer(b)
1880 buf.EncodeUint32(m.DomainID)
1881 buf.EncodeUint16(m.SrcPort)
1882 buf.EncodeBool(m.Enable)
1883 return buf.Bytes(), nil
1885 func (m *Nat44EiIpfixEnableDisable) Unmarshal(b []byte) error {
1886 buf := codec.NewBuffer(b)
1887 m.DomainID = buf.DecodeUint32()
1888 m.SrcPort = buf.DecodeUint16()
1889 m.Enable = buf.DecodeBool()
1893 // Nat44EiIpfixEnableDisableReply defines message 'nat44_ei_ipfix_enable_disable_reply'.
1894 // InProgress: the message form may change in the future versions
1895 type Nat44EiIpfixEnableDisableReply struct {
1896 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1899 func (m *Nat44EiIpfixEnableDisableReply) Reset() { *m = Nat44EiIpfixEnableDisableReply{} }
1900 func (*Nat44EiIpfixEnableDisableReply) GetMessageName() string {
1901 return "nat44_ei_ipfix_enable_disable_reply"
1903 func (*Nat44EiIpfixEnableDisableReply) GetCrcString() string { return "e8d4e804" }
1904 func (*Nat44EiIpfixEnableDisableReply) GetMessageType() api.MessageType {
1905 return api.ReplyMessage
1908 func (m *Nat44EiIpfixEnableDisableReply) Size() (size int) {
1912 size += 4 // m.Retval
1915 func (m *Nat44EiIpfixEnableDisableReply) Marshal(b []byte) ([]byte, error) {
1917 b = make([]byte, m.Size())
1919 buf := codec.NewBuffer(b)
1920 buf.EncodeInt32(m.Retval)
1921 return buf.Bytes(), nil
1923 func (m *Nat44EiIpfixEnableDisableReply) Unmarshal(b []byte) error {
1924 buf := codec.NewBuffer(b)
1925 m.Retval = buf.DecodeInt32()
1929 // Nat44EiPluginEnableDisable defines message 'nat44_ei_plugin_enable_disable'.
1930 // InProgress: the message form may change in the future versions
1931 type Nat44EiPluginEnableDisable struct {
1932 InsideVrf uint32 `binapi:"u32,name=inside_vrf" json:"inside_vrf,omitempty"`
1933 OutsideVrf uint32 `binapi:"u32,name=outside_vrf" json:"outside_vrf,omitempty"`
1934 Users uint32 `binapi:"u32,name=users" json:"users,omitempty"`
1935 UserMemory uint32 `binapi:"u32,name=user_memory" json:"user_memory,omitempty"`
1936 Sessions uint32 `binapi:"u32,name=sessions" json:"sessions,omitempty"`
1937 SessionMemory uint32 `binapi:"u32,name=session_memory" json:"session_memory,omitempty"`
1938 UserSessions uint32 `binapi:"u32,name=user_sessions" json:"user_sessions,omitempty"`
1939 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
1940 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
1943 func (m *Nat44EiPluginEnableDisable) Reset() { *m = Nat44EiPluginEnableDisable{} }
1944 func (*Nat44EiPluginEnableDisable) GetMessageName() string { return "nat44_ei_plugin_enable_disable" }
1945 func (*Nat44EiPluginEnableDisable) GetCrcString() string { return "bf692144" }
1946 func (*Nat44EiPluginEnableDisable) GetMessageType() api.MessageType {
1947 return api.RequestMessage
1950 func (m *Nat44EiPluginEnableDisable) Size() (size int) {
1954 size += 4 // m.InsideVrf
1955 size += 4 // m.OutsideVrf
1956 size += 4 // m.Users
1957 size += 4 // m.UserMemory
1958 size += 4 // m.Sessions
1959 size += 4 // m.SessionMemory
1960 size += 4 // m.UserSessions
1961 size += 1 // m.Enable
1962 size += 1 // m.Flags
1965 func (m *Nat44EiPluginEnableDisable) Marshal(b []byte) ([]byte, error) {
1967 b = make([]byte, m.Size())
1969 buf := codec.NewBuffer(b)
1970 buf.EncodeUint32(m.InsideVrf)
1971 buf.EncodeUint32(m.OutsideVrf)
1972 buf.EncodeUint32(m.Users)
1973 buf.EncodeUint32(m.UserMemory)
1974 buf.EncodeUint32(m.Sessions)
1975 buf.EncodeUint32(m.SessionMemory)
1976 buf.EncodeUint32(m.UserSessions)
1977 buf.EncodeBool(m.Enable)
1978 buf.EncodeUint8(uint8(m.Flags))
1979 return buf.Bytes(), nil
1981 func (m *Nat44EiPluginEnableDisable) Unmarshal(b []byte) error {
1982 buf := codec.NewBuffer(b)
1983 m.InsideVrf = buf.DecodeUint32()
1984 m.OutsideVrf = buf.DecodeUint32()
1985 m.Users = buf.DecodeUint32()
1986 m.UserMemory = buf.DecodeUint32()
1987 m.Sessions = buf.DecodeUint32()
1988 m.SessionMemory = buf.DecodeUint32()
1989 m.UserSessions = buf.DecodeUint32()
1990 m.Enable = buf.DecodeBool()
1991 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
1995 // Nat44EiPluginEnableDisableReply defines message 'nat44_ei_plugin_enable_disable_reply'.
1996 // InProgress: the message form may change in the future versions
1997 type Nat44EiPluginEnableDisableReply struct {
1998 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2001 func (m *Nat44EiPluginEnableDisableReply) Reset() { *m = Nat44EiPluginEnableDisableReply{} }
2002 func (*Nat44EiPluginEnableDisableReply) GetMessageName() string {
2003 return "nat44_ei_plugin_enable_disable_reply"
2005 func (*Nat44EiPluginEnableDisableReply) GetCrcString() string { return "e8d4e804" }
2006 func (*Nat44EiPluginEnableDisableReply) GetMessageType() api.MessageType {
2007 return api.ReplyMessage
2010 func (m *Nat44EiPluginEnableDisableReply) Size() (size int) {
2014 size += 4 // m.Retval
2017 func (m *Nat44EiPluginEnableDisableReply) Marshal(b []byte) ([]byte, error) {
2019 b = make([]byte, m.Size())
2021 buf := codec.NewBuffer(b)
2022 buf.EncodeInt32(m.Retval)
2023 return buf.Bytes(), nil
2025 func (m *Nat44EiPluginEnableDisableReply) Unmarshal(b []byte) error {
2026 buf := codec.NewBuffer(b)
2027 m.Retval = buf.DecodeInt32()
2031 // Nat44EiSetAddrAndPortAllocAlg defines message 'nat44_ei_set_addr_and_port_alloc_alg'.
2032 // InProgress: the message form may change in the future versions
2033 type Nat44EiSetAddrAndPortAllocAlg struct {
2034 Alg uint8 `binapi:"u8,name=alg" json:"alg,omitempty"`
2035 PsidOffset uint8 `binapi:"u8,name=psid_offset" json:"psid_offset,omitempty"`
2036 PsidLength uint8 `binapi:"u8,name=psid_length" json:"psid_length,omitempty"`
2037 Psid uint16 `binapi:"u16,name=psid" json:"psid,omitempty"`
2038 StartPort uint16 `binapi:"u16,name=start_port" json:"start_port,omitempty"`
2039 EndPort uint16 `binapi:"u16,name=end_port" json:"end_port,omitempty"`
2042 func (m *Nat44EiSetAddrAndPortAllocAlg) Reset() { *m = Nat44EiSetAddrAndPortAllocAlg{} }
2043 func (*Nat44EiSetAddrAndPortAllocAlg) GetMessageName() string {
2044 return "nat44_ei_set_addr_and_port_alloc_alg"
2046 func (*Nat44EiSetAddrAndPortAllocAlg) GetCrcString() string { return "deeb746f" }
2047 func (*Nat44EiSetAddrAndPortAllocAlg) GetMessageType() api.MessageType {
2048 return api.RequestMessage
2051 func (m *Nat44EiSetAddrAndPortAllocAlg) Size() (size int) {
2056 size += 1 // m.PsidOffset
2057 size += 1 // m.PsidLength
2059 size += 2 // m.StartPort
2060 size += 2 // m.EndPort
2063 func (m *Nat44EiSetAddrAndPortAllocAlg) Marshal(b []byte) ([]byte, error) {
2065 b = make([]byte, m.Size())
2067 buf := codec.NewBuffer(b)
2068 buf.EncodeUint8(m.Alg)
2069 buf.EncodeUint8(m.PsidOffset)
2070 buf.EncodeUint8(m.PsidLength)
2071 buf.EncodeUint16(m.Psid)
2072 buf.EncodeUint16(m.StartPort)
2073 buf.EncodeUint16(m.EndPort)
2074 return buf.Bytes(), nil
2076 func (m *Nat44EiSetAddrAndPortAllocAlg) Unmarshal(b []byte) error {
2077 buf := codec.NewBuffer(b)
2078 m.Alg = buf.DecodeUint8()
2079 m.PsidOffset = buf.DecodeUint8()
2080 m.PsidLength = buf.DecodeUint8()
2081 m.Psid = buf.DecodeUint16()
2082 m.StartPort = buf.DecodeUint16()
2083 m.EndPort = buf.DecodeUint16()
2087 // Nat44EiSetAddrAndPortAllocAlgReply defines message 'nat44_ei_set_addr_and_port_alloc_alg_reply'.
2088 // InProgress: the message form may change in the future versions
2089 type Nat44EiSetAddrAndPortAllocAlgReply struct {
2090 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2093 func (m *Nat44EiSetAddrAndPortAllocAlgReply) Reset() { *m = Nat44EiSetAddrAndPortAllocAlgReply{} }
2094 func (*Nat44EiSetAddrAndPortAllocAlgReply) GetMessageName() string {
2095 return "nat44_ei_set_addr_and_port_alloc_alg_reply"
2097 func (*Nat44EiSetAddrAndPortAllocAlgReply) GetCrcString() string { return "e8d4e804" }
2098 func (*Nat44EiSetAddrAndPortAllocAlgReply) GetMessageType() api.MessageType {
2099 return api.ReplyMessage
2102 func (m *Nat44EiSetAddrAndPortAllocAlgReply) Size() (size int) {
2106 size += 4 // m.Retval
2109 func (m *Nat44EiSetAddrAndPortAllocAlgReply) Marshal(b []byte) ([]byte, error) {
2111 b = make([]byte, m.Size())
2113 buf := codec.NewBuffer(b)
2114 buf.EncodeInt32(m.Retval)
2115 return buf.Bytes(), nil
2117 func (m *Nat44EiSetAddrAndPortAllocAlgReply) Unmarshal(b []byte) error {
2118 buf := codec.NewBuffer(b)
2119 m.Retval = buf.DecodeInt32()
2123 // Nat44EiSetFqOptions defines message 'nat44_ei_set_fq_options'.
2124 // InProgress: the message form may change in the future versions
2125 type Nat44EiSetFqOptions struct {
2126 FrameQueueNelts uint32 `binapi:"u32,name=frame_queue_nelts" json:"frame_queue_nelts,omitempty"`
2129 func (m *Nat44EiSetFqOptions) Reset() { *m = Nat44EiSetFqOptions{} }
2130 func (*Nat44EiSetFqOptions) GetMessageName() string { return "nat44_ei_set_fq_options" }
2131 func (*Nat44EiSetFqOptions) GetCrcString() string { return "2399bd71" }
2132 func (*Nat44EiSetFqOptions) GetMessageType() api.MessageType {
2133 return api.RequestMessage
2136 func (m *Nat44EiSetFqOptions) Size() (size int) {
2140 size += 4 // m.FrameQueueNelts
2143 func (m *Nat44EiSetFqOptions) Marshal(b []byte) ([]byte, error) {
2145 b = make([]byte, m.Size())
2147 buf := codec.NewBuffer(b)
2148 buf.EncodeUint32(m.FrameQueueNelts)
2149 return buf.Bytes(), nil
2151 func (m *Nat44EiSetFqOptions) Unmarshal(b []byte) error {
2152 buf := codec.NewBuffer(b)
2153 m.FrameQueueNelts = buf.DecodeUint32()
2157 // Nat44EiSetFqOptionsReply defines message 'nat44_ei_set_fq_options_reply'.
2158 // InProgress: the message form may change in the future versions
2159 type Nat44EiSetFqOptionsReply struct {
2160 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2163 func (m *Nat44EiSetFqOptionsReply) Reset() { *m = Nat44EiSetFqOptionsReply{} }
2164 func (*Nat44EiSetFqOptionsReply) GetMessageName() string { return "nat44_ei_set_fq_options_reply" }
2165 func (*Nat44EiSetFqOptionsReply) GetCrcString() string { return "e8d4e804" }
2166 func (*Nat44EiSetFqOptionsReply) GetMessageType() api.MessageType {
2167 return api.ReplyMessage
2170 func (m *Nat44EiSetFqOptionsReply) Size() (size int) {
2174 size += 4 // m.Retval
2177 func (m *Nat44EiSetFqOptionsReply) Marshal(b []byte) ([]byte, error) {
2179 b = make([]byte, m.Size())
2181 buf := codec.NewBuffer(b)
2182 buf.EncodeInt32(m.Retval)
2183 return buf.Bytes(), nil
2185 func (m *Nat44EiSetFqOptionsReply) Unmarshal(b []byte) error {
2186 buf := codec.NewBuffer(b)
2187 m.Retval = buf.DecodeInt32()
2191 // Nat44EiSetLogLevel defines message 'nat44_ei_set_log_level'.
2192 // Deprecated: the message will be removed in the future versions
2193 type Nat44EiSetLogLevel struct {
2194 LogLevel nat_types.NatLogLevel `binapi:"nat_log_level,name=log_level" json:"log_level,omitempty"`
2197 func (m *Nat44EiSetLogLevel) Reset() { *m = Nat44EiSetLogLevel{} }
2198 func (*Nat44EiSetLogLevel) GetMessageName() string { return "nat44_ei_set_log_level" }
2199 func (*Nat44EiSetLogLevel) GetCrcString() string { return "70076bfe" }
2200 func (*Nat44EiSetLogLevel) GetMessageType() api.MessageType {
2201 return api.RequestMessage
2204 func (m *Nat44EiSetLogLevel) Size() (size int) {
2208 size += 1 // m.LogLevel
2211 func (m *Nat44EiSetLogLevel) Marshal(b []byte) ([]byte, error) {
2213 b = make([]byte, m.Size())
2215 buf := codec.NewBuffer(b)
2216 buf.EncodeUint8(uint8(m.LogLevel))
2217 return buf.Bytes(), nil
2219 func (m *Nat44EiSetLogLevel) Unmarshal(b []byte) error {
2220 buf := codec.NewBuffer(b)
2221 m.LogLevel = nat_types.NatLogLevel(buf.DecodeUint8())
2225 // Nat44EiSetLogLevelReply defines message 'nat44_ei_set_log_level_reply'.
2226 // Deprecated: the message will be removed in the future versions
2227 type Nat44EiSetLogLevelReply struct {
2228 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2231 func (m *Nat44EiSetLogLevelReply) Reset() { *m = Nat44EiSetLogLevelReply{} }
2232 func (*Nat44EiSetLogLevelReply) GetMessageName() string { return "nat44_ei_set_log_level_reply" }
2233 func (*Nat44EiSetLogLevelReply) GetCrcString() string { return "e8d4e804" }
2234 func (*Nat44EiSetLogLevelReply) GetMessageType() api.MessageType {
2235 return api.ReplyMessage
2238 func (m *Nat44EiSetLogLevelReply) Size() (size int) {
2242 size += 4 // m.Retval
2245 func (m *Nat44EiSetLogLevelReply) Marshal(b []byte) ([]byte, error) {
2247 b = make([]byte, m.Size())
2249 buf := codec.NewBuffer(b)
2250 buf.EncodeInt32(m.Retval)
2251 return buf.Bytes(), nil
2253 func (m *Nat44EiSetLogLevelReply) Unmarshal(b []byte) error {
2254 buf := codec.NewBuffer(b)
2255 m.Retval = buf.DecodeInt32()
2259 // Nat44EiSetMssClamping defines message 'nat44_ei_set_mss_clamping'.
2260 // InProgress: the message form may change in the future versions
2261 type Nat44EiSetMssClamping struct {
2262 MssValue uint16 `binapi:"u16,name=mss_value" json:"mss_value,omitempty"`
2263 Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
2266 func (m *Nat44EiSetMssClamping) Reset() { *m = Nat44EiSetMssClamping{} }
2267 func (*Nat44EiSetMssClamping) GetMessageName() string { return "nat44_ei_set_mss_clamping" }
2268 func (*Nat44EiSetMssClamping) GetCrcString() string { return "25e90abb" }
2269 func (*Nat44EiSetMssClamping) GetMessageType() api.MessageType {
2270 return api.RequestMessage
2273 func (m *Nat44EiSetMssClamping) Size() (size int) {
2277 size += 2 // m.MssValue
2278 size += 1 // m.Enable
2281 func (m *Nat44EiSetMssClamping) Marshal(b []byte) ([]byte, error) {
2283 b = make([]byte, m.Size())
2285 buf := codec.NewBuffer(b)
2286 buf.EncodeUint16(m.MssValue)
2287 buf.EncodeBool(m.Enable)
2288 return buf.Bytes(), nil
2290 func (m *Nat44EiSetMssClamping) Unmarshal(b []byte) error {
2291 buf := codec.NewBuffer(b)
2292 m.MssValue = buf.DecodeUint16()
2293 m.Enable = buf.DecodeBool()
2297 // Nat44EiSetMssClampingReply defines message 'nat44_ei_set_mss_clamping_reply'.
2298 // InProgress: the message form may change in the future versions
2299 type Nat44EiSetMssClampingReply struct {
2300 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2303 func (m *Nat44EiSetMssClampingReply) Reset() { *m = Nat44EiSetMssClampingReply{} }
2304 func (*Nat44EiSetMssClampingReply) GetMessageName() string { return "nat44_ei_set_mss_clamping_reply" }
2305 func (*Nat44EiSetMssClampingReply) GetCrcString() string { return "e8d4e804" }
2306 func (*Nat44EiSetMssClampingReply) GetMessageType() api.MessageType {
2307 return api.ReplyMessage
2310 func (m *Nat44EiSetMssClampingReply) Size() (size int) {
2314 size += 4 // m.Retval
2317 func (m *Nat44EiSetMssClampingReply) Marshal(b []byte) ([]byte, error) {
2319 b = make([]byte, m.Size())
2321 buf := codec.NewBuffer(b)
2322 buf.EncodeInt32(m.Retval)
2323 return buf.Bytes(), nil
2325 func (m *Nat44EiSetMssClampingReply) Unmarshal(b []byte) error {
2326 buf := codec.NewBuffer(b)
2327 m.Retval = buf.DecodeInt32()
2331 // Nat44EiSetTimeouts defines message 'nat44_ei_set_timeouts'.
2332 // InProgress: the message form may change in the future versions
2333 type Nat44EiSetTimeouts struct {
2334 UDP uint32 `binapi:"u32,name=udp" json:"udp,omitempty"`
2335 TCPEstablished uint32 `binapi:"u32,name=tcp_established" json:"tcp_established,omitempty"`
2336 TCPTransitory uint32 `binapi:"u32,name=tcp_transitory" json:"tcp_transitory,omitempty"`
2337 ICMP uint32 `binapi:"u32,name=icmp" json:"icmp,omitempty"`
2340 func (m *Nat44EiSetTimeouts) Reset() { *m = Nat44EiSetTimeouts{} }
2341 func (*Nat44EiSetTimeouts) GetMessageName() string { return "nat44_ei_set_timeouts" }
2342 func (*Nat44EiSetTimeouts) GetCrcString() string { return "d4746b16" }
2343 func (*Nat44EiSetTimeouts) GetMessageType() api.MessageType {
2344 return api.RequestMessage
2347 func (m *Nat44EiSetTimeouts) Size() (size int) {
2352 size += 4 // m.TCPEstablished
2353 size += 4 // m.TCPTransitory
2357 func (m *Nat44EiSetTimeouts) Marshal(b []byte) ([]byte, error) {
2359 b = make([]byte, m.Size())
2361 buf := codec.NewBuffer(b)
2362 buf.EncodeUint32(m.UDP)
2363 buf.EncodeUint32(m.TCPEstablished)
2364 buf.EncodeUint32(m.TCPTransitory)
2365 buf.EncodeUint32(m.ICMP)
2366 return buf.Bytes(), nil
2368 func (m *Nat44EiSetTimeouts) Unmarshal(b []byte) error {
2369 buf := codec.NewBuffer(b)
2370 m.UDP = buf.DecodeUint32()
2371 m.TCPEstablished = buf.DecodeUint32()
2372 m.TCPTransitory = buf.DecodeUint32()
2373 m.ICMP = buf.DecodeUint32()
2377 // Nat44EiSetTimeoutsReply defines message 'nat44_ei_set_timeouts_reply'.
2378 // InProgress: the message form may change in the future versions
2379 type Nat44EiSetTimeoutsReply struct {
2380 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2383 func (m *Nat44EiSetTimeoutsReply) Reset() { *m = Nat44EiSetTimeoutsReply{} }
2384 func (*Nat44EiSetTimeoutsReply) GetMessageName() string { return "nat44_ei_set_timeouts_reply" }
2385 func (*Nat44EiSetTimeoutsReply) GetCrcString() string { return "e8d4e804" }
2386 func (*Nat44EiSetTimeoutsReply) GetMessageType() api.MessageType {
2387 return api.ReplyMessage
2390 func (m *Nat44EiSetTimeoutsReply) Size() (size int) {
2394 size += 4 // m.Retval
2397 func (m *Nat44EiSetTimeoutsReply) Marshal(b []byte) ([]byte, error) {
2399 b = make([]byte, m.Size())
2401 buf := codec.NewBuffer(b)
2402 buf.EncodeInt32(m.Retval)
2403 return buf.Bytes(), nil
2405 func (m *Nat44EiSetTimeoutsReply) Unmarshal(b []byte) error {
2406 buf := codec.NewBuffer(b)
2407 m.Retval = buf.DecodeInt32()
2411 // Nat44EiSetWorkers defines message 'nat44_ei_set_workers'.
2412 // InProgress: the message form may change in the future versions
2413 type Nat44EiSetWorkers struct {
2414 WorkerMask uint64 `binapi:"u64,name=worker_mask" json:"worker_mask,omitempty"`
2417 func (m *Nat44EiSetWorkers) Reset() { *m = Nat44EiSetWorkers{} }
2418 func (*Nat44EiSetWorkers) GetMessageName() string { return "nat44_ei_set_workers" }
2419 func (*Nat44EiSetWorkers) GetCrcString() string { return "da926638" }
2420 func (*Nat44EiSetWorkers) GetMessageType() api.MessageType {
2421 return api.RequestMessage
2424 func (m *Nat44EiSetWorkers) Size() (size int) {
2428 size += 8 // m.WorkerMask
2431 func (m *Nat44EiSetWorkers) Marshal(b []byte) ([]byte, error) {
2433 b = make([]byte, m.Size())
2435 buf := codec.NewBuffer(b)
2436 buf.EncodeUint64(m.WorkerMask)
2437 return buf.Bytes(), nil
2439 func (m *Nat44EiSetWorkers) Unmarshal(b []byte) error {
2440 buf := codec.NewBuffer(b)
2441 m.WorkerMask = buf.DecodeUint64()
2445 // Nat44EiSetWorkersReply defines message 'nat44_ei_set_workers_reply'.
2446 // InProgress: the message form may change in the future versions
2447 type Nat44EiSetWorkersReply struct {
2448 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2451 func (m *Nat44EiSetWorkersReply) Reset() { *m = Nat44EiSetWorkersReply{} }
2452 func (*Nat44EiSetWorkersReply) GetMessageName() string { return "nat44_ei_set_workers_reply" }
2453 func (*Nat44EiSetWorkersReply) GetCrcString() string { return "e8d4e804" }
2454 func (*Nat44EiSetWorkersReply) GetMessageType() api.MessageType {
2455 return api.ReplyMessage
2458 func (m *Nat44EiSetWorkersReply) Size() (size int) {
2462 size += 4 // m.Retval
2465 func (m *Nat44EiSetWorkersReply) Marshal(b []byte) ([]byte, error) {
2467 b = make([]byte, m.Size())
2469 buf := codec.NewBuffer(b)
2470 buf.EncodeInt32(m.Retval)
2471 return buf.Bytes(), nil
2473 func (m *Nat44EiSetWorkersReply) Unmarshal(b []byte) error {
2474 buf := codec.NewBuffer(b)
2475 m.Retval = buf.DecodeInt32()
2479 // Nat44EiShowFqOptions defines message 'nat44_ei_show_fq_options'.
2480 // InProgress: the message form may change in the future versions
2481 type Nat44EiShowFqOptions struct{}
2483 func (m *Nat44EiShowFqOptions) Reset() { *m = Nat44EiShowFqOptions{} }
2484 func (*Nat44EiShowFqOptions) GetMessageName() string { return "nat44_ei_show_fq_options" }
2485 func (*Nat44EiShowFqOptions) GetCrcString() string { return "51077d14" }
2486 func (*Nat44EiShowFqOptions) GetMessageType() api.MessageType {
2487 return api.RequestMessage
2490 func (m *Nat44EiShowFqOptions) Size() (size int) {
2496 func (m *Nat44EiShowFqOptions) Marshal(b []byte) ([]byte, error) {
2498 b = make([]byte, m.Size())
2500 buf := codec.NewBuffer(b)
2501 return buf.Bytes(), nil
2503 func (m *Nat44EiShowFqOptions) Unmarshal(b []byte) error {
2507 // Nat44EiShowFqOptionsReply defines message 'nat44_ei_show_fq_options_reply'.
2508 // InProgress: the message form may change in the future versions
2509 type Nat44EiShowFqOptionsReply struct {
2510 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2511 FrameQueueNelts uint32 `binapi:"u32,name=frame_queue_nelts" json:"frame_queue_nelts,omitempty"`
2514 func (m *Nat44EiShowFqOptionsReply) Reset() { *m = Nat44EiShowFqOptionsReply{} }
2515 func (*Nat44EiShowFqOptionsReply) GetMessageName() string { return "nat44_ei_show_fq_options_reply" }
2516 func (*Nat44EiShowFqOptionsReply) GetCrcString() string { return "7213b545" }
2517 func (*Nat44EiShowFqOptionsReply) GetMessageType() api.MessageType {
2518 return api.ReplyMessage
2521 func (m *Nat44EiShowFqOptionsReply) Size() (size int) {
2525 size += 4 // m.Retval
2526 size += 4 // m.FrameQueueNelts
2529 func (m *Nat44EiShowFqOptionsReply) Marshal(b []byte) ([]byte, error) {
2531 b = make([]byte, m.Size())
2533 buf := codec.NewBuffer(b)
2534 buf.EncodeInt32(m.Retval)
2535 buf.EncodeUint32(m.FrameQueueNelts)
2536 return buf.Bytes(), nil
2538 func (m *Nat44EiShowFqOptionsReply) Unmarshal(b []byte) error {
2539 buf := codec.NewBuffer(b)
2540 m.Retval = buf.DecodeInt32()
2541 m.FrameQueueNelts = buf.DecodeUint32()
2545 // Nat44EiShowRunningConfig defines message 'nat44_ei_show_running_config'.
2546 // InProgress: the message form may change in the future versions
2547 type Nat44EiShowRunningConfig struct{}
2549 func (m *Nat44EiShowRunningConfig) Reset() { *m = Nat44EiShowRunningConfig{} }
2550 func (*Nat44EiShowRunningConfig) GetMessageName() string { return "nat44_ei_show_running_config" }
2551 func (*Nat44EiShowRunningConfig) GetCrcString() string { return "51077d14" }
2552 func (*Nat44EiShowRunningConfig) GetMessageType() api.MessageType {
2553 return api.RequestMessage
2556 func (m *Nat44EiShowRunningConfig) Size() (size int) {
2562 func (m *Nat44EiShowRunningConfig) Marshal(b []byte) ([]byte, error) {
2564 b = make([]byte, m.Size())
2566 buf := codec.NewBuffer(b)
2567 return buf.Bytes(), nil
2569 func (m *Nat44EiShowRunningConfig) Unmarshal(b []byte) error {
2573 // Nat44EiShowRunningConfigReply defines message 'nat44_ei_show_running_config_reply'.
2574 // InProgress: the message form may change in the future versions
2575 type Nat44EiShowRunningConfigReply struct {
2576 Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
2577 InsideVrf uint32 `binapi:"u32,name=inside_vrf" json:"inside_vrf,omitempty"`
2578 OutsideVrf uint32 `binapi:"u32,name=outside_vrf" json:"outside_vrf,omitempty"`
2579 Users uint32 `binapi:"u32,name=users" json:"users,omitempty"`
2580 Sessions uint32 `binapi:"u32,name=sessions" json:"sessions,omitempty"`
2581 UserSessions uint32 `binapi:"u32,name=user_sessions" json:"user_sessions,omitempty"`
2582 UserBuckets uint32 `binapi:"u32,name=user_buckets" json:"user_buckets,omitempty"`
2583 TranslationBuckets uint32 `binapi:"u32,name=translation_buckets" json:"translation_buckets,omitempty"`
2584 ForwardingEnabled bool `binapi:"bool,name=forwarding_enabled" json:"forwarding_enabled,omitempty"`
2585 IpfixLoggingEnabled bool `binapi:"bool,name=ipfix_logging_enabled" json:"ipfix_logging_enabled,omitempty"`
2586 Timeouts nat_types.NatTimeouts `binapi:"nat_timeouts,name=timeouts" json:"timeouts,omitempty"`
2587 LogLevel nat_types.NatLogLevel `binapi:"nat_log_level,name=log_level" json:"log_level,omitempty"`
2588 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
2591 func (m *Nat44EiShowRunningConfigReply) Reset() { *m = Nat44EiShowRunningConfigReply{} }
2592 func (*Nat44EiShowRunningConfigReply) GetMessageName() string {
2593 return "nat44_ei_show_running_config_reply"
2595 func (*Nat44EiShowRunningConfigReply) GetCrcString() string { return "41b66a81" }
2596 func (*Nat44EiShowRunningConfigReply) GetMessageType() api.MessageType {
2597 return api.ReplyMessage
2600 func (m *Nat44EiShowRunningConfigReply) Size() (size int) {
2604 size += 4 // m.Retval
2605 size += 4 // m.InsideVrf
2606 size += 4 // m.OutsideVrf
2607 size += 4 // m.Users
2608 size += 4 // m.Sessions
2609 size += 4 // m.UserSessions
2610 size += 4 // m.UserBuckets
2611 size += 4 // m.TranslationBuckets
2612 size += 1 // m.ForwardingEnabled
2613 size += 1 // m.IpfixLoggingEnabled
2614 size += 4 // m.Timeouts.UDP
2615 size += 4 // m.Timeouts.TCPEstablished
2616 size += 4 // m.Timeouts.TCPTransitory
2617 size += 4 // m.Timeouts.ICMP
2618 size += 1 // m.LogLevel
2619 size += 1 // m.Flags
2622 func (m *Nat44EiShowRunningConfigReply) Marshal(b []byte) ([]byte, error) {
2624 b = make([]byte, m.Size())
2626 buf := codec.NewBuffer(b)
2627 buf.EncodeInt32(m.Retval)
2628 buf.EncodeUint32(m.InsideVrf)
2629 buf.EncodeUint32(m.OutsideVrf)
2630 buf.EncodeUint32(m.Users)
2631 buf.EncodeUint32(m.Sessions)
2632 buf.EncodeUint32(m.UserSessions)
2633 buf.EncodeUint32(m.UserBuckets)
2634 buf.EncodeUint32(m.TranslationBuckets)
2635 buf.EncodeBool(m.ForwardingEnabled)
2636 buf.EncodeBool(m.IpfixLoggingEnabled)
2637 buf.EncodeUint32(m.Timeouts.UDP)
2638 buf.EncodeUint32(m.Timeouts.TCPEstablished)
2639 buf.EncodeUint32(m.Timeouts.TCPTransitory)
2640 buf.EncodeUint32(m.Timeouts.ICMP)
2641 buf.EncodeUint8(uint8(m.LogLevel))
2642 buf.EncodeUint8(uint8(m.Flags))
2643 return buf.Bytes(), nil
2645 func (m *Nat44EiShowRunningConfigReply) Unmarshal(b []byte) error {
2646 buf := codec.NewBuffer(b)
2647 m.Retval = buf.DecodeInt32()
2648 m.InsideVrf = buf.DecodeUint32()
2649 m.OutsideVrf = buf.DecodeUint32()
2650 m.Users = buf.DecodeUint32()
2651 m.Sessions = buf.DecodeUint32()
2652 m.UserSessions = buf.DecodeUint32()
2653 m.UserBuckets = buf.DecodeUint32()
2654 m.TranslationBuckets = buf.DecodeUint32()
2655 m.ForwardingEnabled = buf.DecodeBool()
2656 m.IpfixLoggingEnabled = buf.DecodeBool()
2657 m.Timeouts.UDP = buf.DecodeUint32()
2658 m.Timeouts.TCPEstablished = buf.DecodeUint32()
2659 m.Timeouts.TCPTransitory = buf.DecodeUint32()
2660 m.Timeouts.ICMP = buf.DecodeUint32()
2661 m.LogLevel = nat_types.NatLogLevel(buf.DecodeUint8())
2662 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
2666 // Nat44EiStaticMappingDetails defines message 'nat44_ei_static_mapping_details'.
2667 // InProgress: the message form may change in the future versions
2668 type Nat44EiStaticMappingDetails struct {
2669 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
2670 LocalIPAddress ip_types.IP4Address `binapi:"ip4_address,name=local_ip_address" json:"local_ip_address,omitempty"`
2671 ExternalIPAddress ip_types.IP4Address `binapi:"ip4_address,name=external_ip_address" json:"external_ip_address,omitempty"`
2672 Protocol uint8 `binapi:"u8,name=protocol" json:"protocol,omitempty"`
2673 LocalPort uint16 `binapi:"u16,name=local_port" json:"local_port,omitempty"`
2674 ExternalPort uint16 `binapi:"u16,name=external_port" json:"external_port,omitempty"`
2675 ExternalSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=external_sw_if_index" json:"external_sw_if_index,omitempty"`
2676 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
2677 Tag string `binapi:"string[64],name=tag" json:"tag,omitempty"`
2680 func (m *Nat44EiStaticMappingDetails) Reset() { *m = Nat44EiStaticMappingDetails{} }
2681 func (*Nat44EiStaticMappingDetails) GetMessageName() string { return "nat44_ei_static_mapping_details" }
2682 func (*Nat44EiStaticMappingDetails) GetCrcString() string { return "6b51ca6e" }
2683 func (*Nat44EiStaticMappingDetails) GetMessageType() api.MessageType {
2684 return api.ReplyMessage
2687 func (m *Nat44EiStaticMappingDetails) Size() (size int) {
2691 size += 1 // m.Flags
2692 size += 1 * 4 // m.LocalIPAddress
2693 size += 1 * 4 // m.ExternalIPAddress
2694 size += 1 // m.Protocol
2695 size += 2 // m.LocalPort
2696 size += 2 // m.ExternalPort
2697 size += 4 // m.ExternalSwIfIndex
2698 size += 4 // m.VrfID
2702 func (m *Nat44EiStaticMappingDetails) Marshal(b []byte) ([]byte, error) {
2704 b = make([]byte, m.Size())
2706 buf := codec.NewBuffer(b)
2707 buf.EncodeUint8(uint8(m.Flags))
2708 buf.EncodeBytes(m.LocalIPAddress[:], 4)
2709 buf.EncodeBytes(m.ExternalIPAddress[:], 4)
2710 buf.EncodeUint8(m.Protocol)
2711 buf.EncodeUint16(m.LocalPort)
2712 buf.EncodeUint16(m.ExternalPort)
2713 buf.EncodeUint32(uint32(m.ExternalSwIfIndex))
2714 buf.EncodeUint32(m.VrfID)
2715 buf.EncodeString(m.Tag, 64)
2716 return buf.Bytes(), nil
2718 func (m *Nat44EiStaticMappingDetails) Unmarshal(b []byte) error {
2719 buf := codec.NewBuffer(b)
2720 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
2721 copy(m.LocalIPAddress[:], buf.DecodeBytes(4))
2722 copy(m.ExternalIPAddress[:], buf.DecodeBytes(4))
2723 m.Protocol = buf.DecodeUint8()
2724 m.LocalPort = buf.DecodeUint16()
2725 m.ExternalPort = buf.DecodeUint16()
2726 m.ExternalSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
2727 m.VrfID = buf.DecodeUint32()
2728 m.Tag = buf.DecodeString(64)
2732 // Nat44EiStaticMappingDump defines message 'nat44_ei_static_mapping_dump'.
2733 // InProgress: the message form may change in the future versions
2734 type Nat44EiStaticMappingDump struct{}
2736 func (m *Nat44EiStaticMappingDump) Reset() { *m = Nat44EiStaticMappingDump{} }
2737 func (*Nat44EiStaticMappingDump) GetMessageName() string { return "nat44_ei_static_mapping_dump" }
2738 func (*Nat44EiStaticMappingDump) GetCrcString() string { return "51077d14" }
2739 func (*Nat44EiStaticMappingDump) GetMessageType() api.MessageType {
2740 return api.RequestMessage
2743 func (m *Nat44EiStaticMappingDump) Size() (size int) {
2749 func (m *Nat44EiStaticMappingDump) Marshal(b []byte) ([]byte, error) {
2751 b = make([]byte, m.Size())
2753 buf := codec.NewBuffer(b)
2754 return buf.Bytes(), nil
2756 func (m *Nat44EiStaticMappingDump) Unmarshal(b []byte) error {
2760 // Nat44EiUserDetails defines message 'nat44_ei_user_details'.
2761 // InProgress: the message form may change in the future versions
2762 type Nat44EiUserDetails struct {
2763 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
2764 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
2765 Nsessions uint32 `binapi:"u32,name=nsessions" json:"nsessions,omitempty"`
2766 Nstaticsessions uint32 `binapi:"u32,name=nstaticsessions" json:"nstaticsessions,omitempty"`
2769 func (m *Nat44EiUserDetails) Reset() { *m = Nat44EiUserDetails{} }
2770 func (*Nat44EiUserDetails) GetMessageName() string { return "nat44_ei_user_details" }
2771 func (*Nat44EiUserDetails) GetCrcString() string { return "355896c2" }
2772 func (*Nat44EiUserDetails) GetMessageType() api.MessageType {
2773 return api.ReplyMessage
2776 func (m *Nat44EiUserDetails) Size() (size int) {
2780 size += 4 // m.VrfID
2781 size += 1 * 4 // m.IPAddress
2782 size += 4 // m.Nsessions
2783 size += 4 // m.Nstaticsessions
2786 func (m *Nat44EiUserDetails) Marshal(b []byte) ([]byte, error) {
2788 b = make([]byte, m.Size())
2790 buf := codec.NewBuffer(b)
2791 buf.EncodeUint32(m.VrfID)
2792 buf.EncodeBytes(m.IPAddress[:], 4)
2793 buf.EncodeUint32(m.Nsessions)
2794 buf.EncodeUint32(m.Nstaticsessions)
2795 return buf.Bytes(), nil
2797 func (m *Nat44EiUserDetails) Unmarshal(b []byte) error {
2798 buf := codec.NewBuffer(b)
2799 m.VrfID = buf.DecodeUint32()
2800 copy(m.IPAddress[:], buf.DecodeBytes(4))
2801 m.Nsessions = buf.DecodeUint32()
2802 m.Nstaticsessions = buf.DecodeUint32()
2806 // Nat44EiUserDump defines message 'nat44_ei_user_dump'.
2807 // InProgress: the message form may change in the future versions
2808 type Nat44EiUserDump struct{}
2810 func (m *Nat44EiUserDump) Reset() { *m = Nat44EiUserDump{} }
2811 func (*Nat44EiUserDump) GetMessageName() string { return "nat44_ei_user_dump" }
2812 func (*Nat44EiUserDump) GetCrcString() string { return "51077d14" }
2813 func (*Nat44EiUserDump) GetMessageType() api.MessageType {
2814 return api.RequestMessage
2817 func (m *Nat44EiUserDump) Size() (size int) {
2823 func (m *Nat44EiUserDump) Marshal(b []byte) ([]byte, error) {
2825 b = make([]byte, m.Size())
2827 buf := codec.NewBuffer(b)
2828 return buf.Bytes(), nil
2830 func (m *Nat44EiUserDump) Unmarshal(b []byte) error {
2834 // Nat44EiUserSessionDetails defines message 'nat44_ei_user_session_details'.
2835 // InProgress: the message form may change in the future versions
2836 type Nat44EiUserSessionDetails struct {
2837 OutsideIPAddress ip_types.IP4Address `binapi:"ip4_address,name=outside_ip_address" json:"outside_ip_address,omitempty"`
2838 OutsidePort uint16 `binapi:"u16,name=outside_port" json:"outside_port,omitempty"`
2839 InsideIPAddress ip_types.IP4Address `binapi:"ip4_address,name=inside_ip_address" json:"inside_ip_address,omitempty"`
2840 InsidePort uint16 `binapi:"u16,name=inside_port" json:"inside_port,omitempty"`
2841 Protocol uint16 `binapi:"u16,name=protocol" json:"protocol,omitempty"`
2842 Flags Nat44EiConfigFlags `binapi:"nat44_ei_config_flags,name=flags" json:"flags,omitempty"`
2843 LastHeard uint64 `binapi:"u64,name=last_heard" json:"last_heard,omitempty"`
2844 TotalBytes uint64 `binapi:"u64,name=total_bytes" json:"total_bytes,omitempty"`
2845 TotalPkts uint32 `binapi:"u32,name=total_pkts" json:"total_pkts,omitempty"`
2846 ExtHostAddress ip_types.IP4Address `binapi:"ip4_address,name=ext_host_address" json:"ext_host_address,omitempty"`
2847 ExtHostPort uint16 `binapi:"u16,name=ext_host_port" json:"ext_host_port,omitempty"`
2850 func (m *Nat44EiUserSessionDetails) Reset() { *m = Nat44EiUserSessionDetails{} }
2851 func (*Nat44EiUserSessionDetails) GetMessageName() string { return "nat44_ei_user_session_details" }
2852 func (*Nat44EiUserSessionDetails) GetCrcString() string { return "19b7c0ac" }
2853 func (*Nat44EiUserSessionDetails) GetMessageType() api.MessageType {
2854 return api.ReplyMessage
2857 func (m *Nat44EiUserSessionDetails) Size() (size int) {
2861 size += 1 * 4 // m.OutsideIPAddress
2862 size += 2 // m.OutsidePort
2863 size += 1 * 4 // m.InsideIPAddress
2864 size += 2 // m.InsidePort
2865 size += 2 // m.Protocol
2866 size += 1 // m.Flags
2867 size += 8 // m.LastHeard
2868 size += 8 // m.TotalBytes
2869 size += 4 // m.TotalPkts
2870 size += 1 * 4 // m.ExtHostAddress
2871 size += 2 // m.ExtHostPort
2874 func (m *Nat44EiUserSessionDetails) Marshal(b []byte) ([]byte, error) {
2876 b = make([]byte, m.Size())
2878 buf := codec.NewBuffer(b)
2879 buf.EncodeBytes(m.OutsideIPAddress[:], 4)
2880 buf.EncodeUint16(m.OutsidePort)
2881 buf.EncodeBytes(m.InsideIPAddress[:], 4)
2882 buf.EncodeUint16(m.InsidePort)
2883 buf.EncodeUint16(m.Protocol)
2884 buf.EncodeUint8(uint8(m.Flags))
2885 buf.EncodeUint64(m.LastHeard)
2886 buf.EncodeUint64(m.TotalBytes)
2887 buf.EncodeUint32(m.TotalPkts)
2888 buf.EncodeBytes(m.ExtHostAddress[:], 4)
2889 buf.EncodeUint16(m.ExtHostPort)
2890 return buf.Bytes(), nil
2892 func (m *Nat44EiUserSessionDetails) Unmarshal(b []byte) error {
2893 buf := codec.NewBuffer(b)
2894 copy(m.OutsideIPAddress[:], buf.DecodeBytes(4))
2895 m.OutsidePort = buf.DecodeUint16()
2896 copy(m.InsideIPAddress[:], buf.DecodeBytes(4))
2897 m.InsidePort = buf.DecodeUint16()
2898 m.Protocol = buf.DecodeUint16()
2899 m.Flags = Nat44EiConfigFlags(buf.DecodeUint8())
2900 m.LastHeard = buf.DecodeUint64()
2901 m.TotalBytes = buf.DecodeUint64()
2902 m.TotalPkts = buf.DecodeUint32()
2903 copy(m.ExtHostAddress[:], buf.DecodeBytes(4))
2904 m.ExtHostPort = buf.DecodeUint16()
2908 // Nat44EiUserSessionDump defines message 'nat44_ei_user_session_dump'.
2909 // InProgress: the message form may change in the future versions
2910 type Nat44EiUserSessionDump struct {
2911 IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
2912 VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
2915 func (m *Nat44EiUserSessionDump) Reset() { *m = Nat44EiUserSessionDump{} }
2916 func (*Nat44EiUserSessionDump) GetMessageName() string { return "nat44_ei_user_session_dump" }
2917 func (*Nat44EiUserSessionDump) GetCrcString() string { return "e1899c98" }
2918 func (*Nat44EiUserSessionDump) GetMessageType() api.MessageType {
2919 return api.RequestMessage
2922 func (m *Nat44EiUserSessionDump) Size() (size int) {
2926 size += 1 * 4 // m.IPAddress
2927 size += 4 // m.VrfID
2930 func (m *Nat44EiUserSessionDump) Marshal(b []byte) ([]byte, error) {
2932 b = make([]byte, m.Size())
2934 buf := codec.NewBuffer(b)
2935 buf.EncodeBytes(m.IPAddress[:], 4)
2936 buf.EncodeUint32(m.VrfID)
2937 return buf.Bytes(), nil
2939 func (m *Nat44EiUserSessionDump) Unmarshal(b []byte) error {
2940 buf := codec.NewBuffer(b)
2941 copy(m.IPAddress[:], buf.DecodeBytes(4))
2942 m.VrfID = buf.DecodeUint32()
2946 // Nat44EiWorkerDetails defines message 'nat44_ei_worker_details'.
2947 // InProgress: the message form may change in the future versions
2948 type Nat44EiWorkerDetails struct {
2949 WorkerIndex uint32 `binapi:"u32,name=worker_index" json:"worker_index,omitempty"`
2950 LcoreID uint32 `binapi:"u32,name=lcore_id" json:"lcore_id,omitempty"`
2951 Name string `binapi:"string[64],name=name" json:"name,omitempty"`
2954 func (m *Nat44EiWorkerDetails) Reset() { *m = Nat44EiWorkerDetails{} }
2955 func (*Nat44EiWorkerDetails) GetMessageName() string { return "nat44_ei_worker_details" }
2956 func (*Nat44EiWorkerDetails) GetCrcString() string { return "84bf06fc" }
2957 func (*Nat44EiWorkerDetails) GetMessageType() api.MessageType {
2958 return api.ReplyMessage
2961 func (m *Nat44EiWorkerDetails) Size() (size int) {
2965 size += 4 // m.WorkerIndex
2966 size += 4 // m.LcoreID
2967 size += 64 // m.Name
2970 func (m *Nat44EiWorkerDetails) Marshal(b []byte) ([]byte, error) {
2972 b = make([]byte, m.Size())
2974 buf := codec.NewBuffer(b)
2975 buf.EncodeUint32(m.WorkerIndex)
2976 buf.EncodeUint32(m.LcoreID)
2977 buf.EncodeString(m.Name, 64)
2978 return buf.Bytes(), nil
2980 func (m *Nat44EiWorkerDetails) Unmarshal(b []byte) error {
2981 buf := codec.NewBuffer(b)
2982 m.WorkerIndex = buf.DecodeUint32()
2983 m.LcoreID = buf.DecodeUint32()
2984 m.Name = buf.DecodeString(64)
2988 // Nat44EiWorkerDump defines message 'nat44_ei_worker_dump'.
2989 // InProgress: the message form may change in the future versions
2990 type Nat44EiWorkerDump struct{}
2992 func (m *Nat44EiWorkerDump) Reset() { *m = Nat44EiWorkerDump{} }
2993 func (*Nat44EiWorkerDump) GetMessageName() string { return "nat44_ei_worker_dump" }
2994 func (*Nat44EiWorkerDump) GetCrcString() string { return "51077d14" }
2995 func (*Nat44EiWorkerDump) GetMessageType() api.MessageType {
2996 return api.RequestMessage
2999 func (m *Nat44EiWorkerDump) Size() (size int) {
3005 func (m *Nat44EiWorkerDump) Marshal(b []byte) ([]byte, error) {
3007 b = make([]byte, m.Size())
3009 buf := codec.NewBuffer(b)
3010 return buf.Bytes(), nil
3012 func (m *Nat44EiWorkerDump) Unmarshal(b []byte) error {
3016 func init() { file_nat44_ei_binapi_init() }
3017 func file_nat44_ei_binapi_init() {
3018 api.RegisterMessage((*Nat44EiAddDelAddressRange)(nil), "nat44_ei_add_del_address_range_35f21abc")
3019 api.RegisterMessage((*Nat44EiAddDelAddressRangeReply)(nil), "nat44_ei_add_del_address_range_reply_e8d4e804")
3020 api.RegisterMessage((*Nat44EiAddDelIdentityMapping)(nil), "nat44_ei_add_del_identity_mapping_cb8606b9")
3021 api.RegisterMessage((*Nat44EiAddDelIdentityMappingReply)(nil), "nat44_ei_add_del_identity_mapping_reply_e8d4e804")
3022 api.RegisterMessage((*Nat44EiAddDelInterfaceAddr)(nil), "nat44_ei_add_del_interface_addr_883abbcc")
3023 api.RegisterMessage((*Nat44EiAddDelInterfaceAddrReply)(nil), "nat44_ei_add_del_interface_addr_reply_e8d4e804")
3024 api.RegisterMessage((*Nat44EiAddDelStaticMapping)(nil), "nat44_ei_add_del_static_mapping_b404b7fe")
3025 api.RegisterMessage((*Nat44EiAddDelStaticMappingReply)(nil), "nat44_ei_add_del_static_mapping_reply_e8d4e804")
3026 api.RegisterMessage((*Nat44EiAddressDetails)(nil), "nat44_ei_address_details_318f1202")
3027 api.RegisterMessage((*Nat44EiAddressDump)(nil), "nat44_ei_address_dump_51077d14")
3028 api.RegisterMessage((*Nat44EiDelSession)(nil), "nat44_ei_del_session_74969ffe")
3029 api.RegisterMessage((*Nat44EiDelSessionReply)(nil), "nat44_ei_del_session_reply_e8d4e804")
3030 api.RegisterMessage((*Nat44EiDelUser)(nil), "nat44_ei_del_user_99a9f998")
3031 api.RegisterMessage((*Nat44EiDelUserReply)(nil), "nat44_ei_del_user_reply_e8d4e804")
3032 api.RegisterMessage((*Nat44EiForwardingEnableDisable)(nil), "nat44_ei_forwarding_enable_disable_b3e225d2")
3033 api.RegisterMessage((*Nat44EiForwardingEnableDisableReply)(nil), "nat44_ei_forwarding_enable_disable_reply_e8d4e804")
3034 api.RegisterMessage((*Nat44EiGetAddrAndPortAllocAlg)(nil), "nat44_ei_get_addr_and_port_alloc_alg_51077d14")
3035 api.RegisterMessage((*Nat44EiGetAddrAndPortAllocAlgReply)(nil), "nat44_ei_get_addr_and_port_alloc_alg_reply_3607a7d0")
3036 api.RegisterMessage((*Nat44EiGetMssClamping)(nil), "nat44_ei_get_mss_clamping_51077d14")
3037 api.RegisterMessage((*Nat44EiGetMssClampingReply)(nil), "nat44_ei_get_mss_clamping_reply_1c0b2a78")
3038 api.RegisterMessage((*Nat44EiHaFlush)(nil), "nat44_ei_ha_flush_51077d14")
3039 api.RegisterMessage((*Nat44EiHaFlushReply)(nil), "nat44_ei_ha_flush_reply_e8d4e804")
3040 api.RegisterMessage((*Nat44EiHaGetFailover)(nil), "nat44_ei_ha_get_failover_51077d14")
3041 api.RegisterMessage((*Nat44EiHaGetFailoverReply)(nil), "nat44_ei_ha_get_failover_reply_a67d8752")
3042 api.RegisterMessage((*Nat44EiHaGetListener)(nil), "nat44_ei_ha_get_listener_51077d14")
3043 api.RegisterMessage((*Nat44EiHaGetListenerReply)(nil), "nat44_ei_ha_get_listener_reply_123ea41f")
3044 api.RegisterMessage((*Nat44EiHaResync)(nil), "nat44_ei_ha_resync_c8ab9e03")
3045 api.RegisterMessage((*Nat44EiHaResyncCompletedEvent)(nil), "nat44_ei_ha_resync_completed_event_fdc598fb")
3046 api.RegisterMessage((*Nat44EiHaResyncReply)(nil), "nat44_ei_ha_resync_reply_e8d4e804")
3047 api.RegisterMessage((*Nat44EiHaSetFailover)(nil), "nat44_ei_ha_set_failover_718246af")
3048 api.RegisterMessage((*Nat44EiHaSetFailoverReply)(nil), "nat44_ei_ha_set_failover_reply_e8d4e804")
3049 api.RegisterMessage((*Nat44EiHaSetListener)(nil), "nat44_ei_ha_set_listener_e4a8cb4e")
3050 api.RegisterMessage((*Nat44EiHaSetListenerReply)(nil), "nat44_ei_ha_set_listener_reply_e8d4e804")
3051 api.RegisterMessage((*Nat44EiIdentityMappingDetails)(nil), "nat44_ei_identity_mapping_details_30d53e26")
3052 api.RegisterMessage((*Nat44EiIdentityMappingDump)(nil), "nat44_ei_identity_mapping_dump_51077d14")
3053 api.RegisterMessage((*Nat44EiInterfaceAddDelFeature)(nil), "nat44_ei_interface_add_del_feature_63a2db8b")
3054 api.RegisterMessage((*Nat44EiInterfaceAddDelFeatureReply)(nil), "nat44_ei_interface_add_del_feature_reply_e8d4e804")
3055 api.RegisterMessage((*Nat44EiInterfaceAddDelOutputFeature)(nil), "nat44_ei_interface_add_del_output_feature_63a2db8b")
3056 api.RegisterMessage((*Nat44EiInterfaceAddDelOutputFeatureReply)(nil), "nat44_ei_interface_add_del_output_feature_reply_e8d4e804")
3057 api.RegisterMessage((*Nat44EiInterfaceAddrDetails)(nil), "nat44_ei_interface_addr_details_0b45011c")
3058 api.RegisterMessage((*Nat44EiInterfaceAddrDump)(nil), "nat44_ei_interface_addr_dump_51077d14")
3059 api.RegisterMessage((*Nat44EiInterfaceDetails)(nil), "nat44_ei_interface_details_f446e508")
3060 api.RegisterMessage((*Nat44EiInterfaceDump)(nil), "nat44_ei_interface_dump_51077d14")
3061 api.RegisterMessage((*Nat44EiInterfaceOutputFeatureDetails)(nil), "nat44_ei_interface_output_feature_details_f446e508")
3062 api.RegisterMessage((*Nat44EiInterfaceOutputFeatureDump)(nil), "nat44_ei_interface_output_feature_dump_51077d14")
3063 api.RegisterMessage((*Nat44EiIpfixEnableDisable)(nil), "nat44_ei_ipfix_enable_disable_9af4a2d2")
3064 api.RegisterMessage((*Nat44EiIpfixEnableDisableReply)(nil), "nat44_ei_ipfix_enable_disable_reply_e8d4e804")
3065 api.RegisterMessage((*Nat44EiPluginEnableDisable)(nil), "nat44_ei_plugin_enable_disable_bf692144")
3066 api.RegisterMessage((*Nat44EiPluginEnableDisableReply)(nil), "nat44_ei_plugin_enable_disable_reply_e8d4e804")
3067 api.RegisterMessage((*Nat44EiSetAddrAndPortAllocAlg)(nil), "nat44_ei_set_addr_and_port_alloc_alg_deeb746f")
3068 api.RegisterMessage((*Nat44EiSetAddrAndPortAllocAlgReply)(nil), "nat44_ei_set_addr_and_port_alloc_alg_reply_e8d4e804")
3069 api.RegisterMessage((*Nat44EiSetFqOptions)(nil), "nat44_ei_set_fq_options_2399bd71")
3070 api.RegisterMessage((*Nat44EiSetFqOptionsReply)(nil), "nat44_ei_set_fq_options_reply_e8d4e804")
3071 api.RegisterMessage((*Nat44EiSetLogLevel)(nil), "nat44_ei_set_log_level_70076bfe")
3072 api.RegisterMessage((*Nat44EiSetLogLevelReply)(nil), "nat44_ei_set_log_level_reply_e8d4e804")
3073 api.RegisterMessage((*Nat44EiSetMssClamping)(nil), "nat44_ei_set_mss_clamping_25e90abb")
3074 api.RegisterMessage((*Nat44EiSetMssClampingReply)(nil), "nat44_ei_set_mss_clamping_reply_e8d4e804")
3075 api.RegisterMessage((*Nat44EiSetTimeouts)(nil), "nat44_ei_set_timeouts_d4746b16")
3076 api.RegisterMessage((*Nat44EiSetTimeoutsReply)(nil), "nat44_ei_set_timeouts_reply_e8d4e804")
3077 api.RegisterMessage((*Nat44EiSetWorkers)(nil), "nat44_ei_set_workers_da926638")
3078 api.RegisterMessage((*Nat44EiSetWorkersReply)(nil), "nat44_ei_set_workers_reply_e8d4e804")
3079 api.RegisterMessage((*Nat44EiShowFqOptions)(nil), "nat44_ei_show_fq_options_51077d14")
3080 api.RegisterMessage((*Nat44EiShowFqOptionsReply)(nil), "nat44_ei_show_fq_options_reply_7213b545")
3081 api.RegisterMessage((*Nat44EiShowRunningConfig)(nil), "nat44_ei_show_running_config_51077d14")
3082 api.RegisterMessage((*Nat44EiShowRunningConfigReply)(nil), "nat44_ei_show_running_config_reply_41b66a81")
3083 api.RegisterMessage((*Nat44EiStaticMappingDetails)(nil), "nat44_ei_static_mapping_details_6b51ca6e")
3084 api.RegisterMessage((*Nat44EiStaticMappingDump)(nil), "nat44_ei_static_mapping_dump_51077d14")
3085 api.RegisterMessage((*Nat44EiUserDetails)(nil), "nat44_ei_user_details_355896c2")
3086 api.RegisterMessage((*Nat44EiUserDump)(nil), "nat44_ei_user_dump_51077d14")
3087 api.RegisterMessage((*Nat44EiUserSessionDetails)(nil), "nat44_ei_user_session_details_19b7c0ac")
3088 api.RegisterMessage((*Nat44EiUserSessionDump)(nil), "nat44_ei_user_session_dump_e1899c98")
3089 api.RegisterMessage((*Nat44EiWorkerDetails)(nil), "nat44_ei_worker_details_84bf06fc")
3090 api.RegisterMessage((*Nat44EiWorkerDump)(nil), "nat44_ei_worker_dump_51077d14")
3093 // Messages returns list of all messages in this module.
3094 func AllMessages() []api.Message {
3095 return []api.Message{
3096 (*Nat44EiAddDelAddressRange)(nil),
3097 (*Nat44EiAddDelAddressRangeReply)(nil),
3098 (*Nat44EiAddDelIdentityMapping)(nil),
3099 (*Nat44EiAddDelIdentityMappingReply)(nil),
3100 (*Nat44EiAddDelInterfaceAddr)(nil),
3101 (*Nat44EiAddDelInterfaceAddrReply)(nil),
3102 (*Nat44EiAddDelStaticMapping)(nil),
3103 (*Nat44EiAddDelStaticMappingReply)(nil),
3104 (*Nat44EiAddressDetails)(nil),
3105 (*Nat44EiAddressDump)(nil),
3106 (*Nat44EiDelSession)(nil),
3107 (*Nat44EiDelSessionReply)(nil),
3108 (*Nat44EiDelUser)(nil),
3109 (*Nat44EiDelUserReply)(nil),
3110 (*Nat44EiForwardingEnableDisable)(nil),
3111 (*Nat44EiForwardingEnableDisableReply)(nil),
3112 (*Nat44EiGetAddrAndPortAllocAlg)(nil),
3113 (*Nat44EiGetAddrAndPortAllocAlgReply)(nil),
3114 (*Nat44EiGetMssClamping)(nil),
3115 (*Nat44EiGetMssClampingReply)(nil),
3116 (*Nat44EiHaFlush)(nil),
3117 (*Nat44EiHaFlushReply)(nil),
3118 (*Nat44EiHaGetFailover)(nil),
3119 (*Nat44EiHaGetFailoverReply)(nil),
3120 (*Nat44EiHaGetListener)(nil),
3121 (*Nat44EiHaGetListenerReply)(nil),
3122 (*Nat44EiHaResync)(nil),
3123 (*Nat44EiHaResyncCompletedEvent)(nil),
3124 (*Nat44EiHaResyncReply)(nil),
3125 (*Nat44EiHaSetFailover)(nil),
3126 (*Nat44EiHaSetFailoverReply)(nil),
3127 (*Nat44EiHaSetListener)(nil),
3128 (*Nat44EiHaSetListenerReply)(nil),
3129 (*Nat44EiIdentityMappingDetails)(nil),
3130 (*Nat44EiIdentityMappingDump)(nil),
3131 (*Nat44EiInterfaceAddDelFeature)(nil),
3132 (*Nat44EiInterfaceAddDelFeatureReply)(nil),
3133 (*Nat44EiInterfaceAddDelOutputFeature)(nil),
3134 (*Nat44EiInterfaceAddDelOutputFeatureReply)(nil),
3135 (*Nat44EiInterfaceAddrDetails)(nil),
3136 (*Nat44EiInterfaceAddrDump)(nil),
3137 (*Nat44EiInterfaceDetails)(nil),
3138 (*Nat44EiInterfaceDump)(nil),
3139 (*Nat44EiInterfaceOutputFeatureDetails)(nil),
3140 (*Nat44EiInterfaceOutputFeatureDump)(nil),
3141 (*Nat44EiIpfixEnableDisable)(nil),
3142 (*Nat44EiIpfixEnableDisableReply)(nil),
3143 (*Nat44EiPluginEnableDisable)(nil),
3144 (*Nat44EiPluginEnableDisableReply)(nil),
3145 (*Nat44EiSetAddrAndPortAllocAlg)(nil),
3146 (*Nat44EiSetAddrAndPortAllocAlgReply)(nil),
3147 (*Nat44EiSetFqOptions)(nil),
3148 (*Nat44EiSetFqOptionsReply)(nil),
3149 (*Nat44EiSetLogLevel)(nil),
3150 (*Nat44EiSetLogLevelReply)(nil),
3151 (*Nat44EiSetMssClamping)(nil),
3152 (*Nat44EiSetMssClampingReply)(nil),
3153 (*Nat44EiSetTimeouts)(nil),
3154 (*Nat44EiSetTimeoutsReply)(nil),
3155 (*Nat44EiSetWorkers)(nil),
3156 (*Nat44EiSetWorkersReply)(nil),
3157 (*Nat44EiShowFqOptions)(nil),
3158 (*Nat44EiShowFqOptionsReply)(nil),
3159 (*Nat44EiShowRunningConfig)(nil),
3160 (*Nat44EiShowRunningConfigReply)(nil),
3161 (*Nat44EiStaticMappingDetails)(nil),
3162 (*Nat44EiStaticMappingDump)(nil),
3163 (*Nat44EiUserDetails)(nil),
3164 (*Nat44EiUserDump)(nil),
3165 (*Nat44EiUserSessionDetails)(nil),
3166 (*Nat44EiUserSessionDump)(nil),
3167 (*Nat44EiWorkerDetails)(nil),
3168 (*Nat44EiWorkerDump)(nil),