go.ligato.io/vpp-agent/v3@v3.5.0/plugins/vpp/binapi/vpp2202/nat44_ed/nat44_ed.ba.go (about)

     1  // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
     2  
     3  // Package nat44_ed contains generated bindings for API file nat44_ed.api.
     4  //
     5  // Contents:
     6  // -  1 enum
     7  // -  1 struct
     8  // - 104 messages
     9  package nat44_ed
    10  
    11  import (
    12  	"strconv"
    13  
    14  	api "go.fd.io/govpp/api"
    15  	codec "go.fd.io/govpp/codec"
    16  	interface_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2202/interface_types"
    17  	ip_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2202/ip_types"
    18  	nat_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2202/nat_types"
    19  )
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the GoVPP api package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // GoVPP api package needs to be updated.
    25  const _ = api.GoVppAPIPackageIsVersion2
    26  
    27  const (
    28  	APIFile    = "nat44_ed"
    29  	APIVersion = "5.4.0"
    30  	VersionCrc = 0x5697d0ef
    31  )
    32  
    33  // Nat44ConfigFlags defines enum 'nat44_config_flags'.
    34  type Nat44ConfigFlags uint8
    35  
    36  const (
    37  	NAT44_IS_ENDPOINT_INDEPENDENT Nat44ConfigFlags = 0
    38  	NAT44_IS_ENDPOINT_DEPENDENT   Nat44ConfigFlags = 1
    39  	NAT44_IS_STATIC_MAPPING_ONLY  Nat44ConfigFlags = 2
    40  	NAT44_IS_CONNECTION_TRACKING  Nat44ConfigFlags = 4
    41  	NAT44_IS_OUT2IN_DPO           Nat44ConfigFlags = 8
    42  )
    43  
    44  var (
    45  	Nat44ConfigFlags_name = map[uint8]string{
    46  		0: "NAT44_IS_ENDPOINT_INDEPENDENT",
    47  		1: "NAT44_IS_ENDPOINT_DEPENDENT",
    48  		2: "NAT44_IS_STATIC_MAPPING_ONLY",
    49  		4: "NAT44_IS_CONNECTION_TRACKING",
    50  		8: "NAT44_IS_OUT2IN_DPO",
    51  	}
    52  	Nat44ConfigFlags_value = map[string]uint8{
    53  		"NAT44_IS_ENDPOINT_INDEPENDENT": 0,
    54  		"NAT44_IS_ENDPOINT_DEPENDENT":   1,
    55  		"NAT44_IS_STATIC_MAPPING_ONLY":  2,
    56  		"NAT44_IS_CONNECTION_TRACKING":  4,
    57  		"NAT44_IS_OUT2IN_DPO":           8,
    58  	}
    59  )
    60  
    61  func (x Nat44ConfigFlags) String() string {
    62  	s, ok := Nat44ConfigFlags_name[uint8(x)]
    63  	if ok {
    64  		return s
    65  	}
    66  	str := func(n uint8) string {
    67  		s, ok := Nat44ConfigFlags_name[uint8(n)]
    68  		if ok {
    69  			return s
    70  		}
    71  		return "Nat44ConfigFlags(" + strconv.Itoa(int(n)) + ")"
    72  	}
    73  	for i := uint8(0); i <= 8; i++ {
    74  		val := uint8(x)
    75  		if val&(1<<i) != 0 {
    76  			if s != "" {
    77  				s += "|"
    78  			}
    79  			s += str(1 << i)
    80  		}
    81  	}
    82  	if s == "" {
    83  		return str(uint8(x))
    84  	}
    85  	return s
    86  }
    87  
    88  // Nat44LbAddrPort defines type 'nat44_lb_addr_port'.
    89  type Nat44LbAddrPort struct {
    90  	Addr        ip_types.IP4Address `binapi:"ip4_address,name=addr" json:"addr,omitempty"`
    91  	Port        uint16              `binapi:"u16,name=port" json:"port,omitempty"`
    92  	Probability uint8               `binapi:"u8,name=probability" json:"probability,omitempty"`
    93  	VrfID       uint32              `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
    94  }
    95  
    96  // Nat44AddDelAddressRange defines message 'nat44_add_del_address_range'.
    97  type Nat44AddDelAddressRange struct {
    98  	FirstIPAddress ip_types.IP4Address      `binapi:"ip4_address,name=first_ip_address" json:"first_ip_address,omitempty"`
    99  	LastIPAddress  ip_types.IP4Address      `binapi:"ip4_address,name=last_ip_address" json:"last_ip_address,omitempty"`
   100  	VrfID          uint32                   `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
   101  	IsAdd          bool                     `binapi:"bool,name=is_add" json:"is_add,omitempty"`
   102  	Flags          nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
   103  }
   104  
   105  func (m *Nat44AddDelAddressRange) Reset()               { *m = Nat44AddDelAddressRange{} }
   106  func (*Nat44AddDelAddressRange) GetMessageName() string { return "nat44_add_del_address_range" }
   107  func (*Nat44AddDelAddressRange) GetCrcString() string   { return "6f2b8055" }
   108  func (*Nat44AddDelAddressRange) GetMessageType() api.MessageType {
   109  	return api.RequestMessage
   110  }
   111  
   112  func (m *Nat44AddDelAddressRange) Size() (size int) {
   113  	if m == nil {
   114  		return 0
   115  	}
   116  	size += 1 * 4 // m.FirstIPAddress
   117  	size += 1 * 4 // m.LastIPAddress
   118  	size += 4     // m.VrfID
   119  	size += 1     // m.IsAdd
   120  	size += 1     // m.Flags
   121  	return size
   122  }
   123  func (m *Nat44AddDelAddressRange) Marshal(b []byte) ([]byte, error) {
   124  	if b == nil {
   125  		b = make([]byte, m.Size())
   126  	}
   127  	buf := codec.NewBuffer(b)
   128  	buf.EncodeBytes(m.FirstIPAddress[:], 4)
   129  	buf.EncodeBytes(m.LastIPAddress[:], 4)
   130  	buf.EncodeUint32(m.VrfID)
   131  	buf.EncodeBool(m.IsAdd)
   132  	buf.EncodeUint8(uint8(m.Flags))
   133  	return buf.Bytes(), nil
   134  }
   135  func (m *Nat44AddDelAddressRange) Unmarshal(b []byte) error {
   136  	buf := codec.NewBuffer(b)
   137  	copy(m.FirstIPAddress[:], buf.DecodeBytes(4))
   138  	copy(m.LastIPAddress[:], buf.DecodeBytes(4))
   139  	m.VrfID = buf.DecodeUint32()
   140  	m.IsAdd = buf.DecodeBool()
   141  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
   142  	return nil
   143  }
   144  
   145  // Nat44AddDelAddressRangeReply defines message 'nat44_add_del_address_range_reply'.
   146  type Nat44AddDelAddressRangeReply struct {
   147  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   148  }
   149  
   150  func (m *Nat44AddDelAddressRangeReply) Reset() { *m = Nat44AddDelAddressRangeReply{} }
   151  func (*Nat44AddDelAddressRangeReply) GetMessageName() string {
   152  	return "nat44_add_del_address_range_reply"
   153  }
   154  func (*Nat44AddDelAddressRangeReply) GetCrcString() string { return "e8d4e804" }
   155  func (*Nat44AddDelAddressRangeReply) GetMessageType() api.MessageType {
   156  	return api.ReplyMessage
   157  }
   158  
   159  func (m *Nat44AddDelAddressRangeReply) Size() (size int) {
   160  	if m == nil {
   161  		return 0
   162  	}
   163  	size += 4 // m.Retval
   164  	return size
   165  }
   166  func (m *Nat44AddDelAddressRangeReply) Marshal(b []byte) ([]byte, error) {
   167  	if b == nil {
   168  		b = make([]byte, m.Size())
   169  	}
   170  	buf := codec.NewBuffer(b)
   171  	buf.EncodeInt32(m.Retval)
   172  	return buf.Bytes(), nil
   173  }
   174  func (m *Nat44AddDelAddressRangeReply) Unmarshal(b []byte) error {
   175  	buf := codec.NewBuffer(b)
   176  	m.Retval = buf.DecodeInt32()
   177  	return nil
   178  }
   179  
   180  // Nat44AddDelIdentityMapping defines message 'nat44_add_del_identity_mapping'.
   181  type Nat44AddDelIdentityMapping struct {
   182  	IsAdd     bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
   183  	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
   184  	IPAddress ip_types.IP4Address            `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
   185  	Protocol  uint8                          `binapi:"u8,name=protocol" json:"protocol,omitempty"`
   186  	Port      uint16                         `binapi:"u16,name=port" json:"port,omitempty"`
   187  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   188  	VrfID     uint32                         `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
   189  	Tag       string                         `binapi:"string[64],name=tag" json:"tag,omitempty"`
   190  }
   191  
   192  func (m *Nat44AddDelIdentityMapping) Reset()               { *m = Nat44AddDelIdentityMapping{} }
   193  func (*Nat44AddDelIdentityMapping) GetMessageName() string { return "nat44_add_del_identity_mapping" }
   194  func (*Nat44AddDelIdentityMapping) GetCrcString() string   { return "02faaa22" }
   195  func (*Nat44AddDelIdentityMapping) GetMessageType() api.MessageType {
   196  	return api.RequestMessage
   197  }
   198  
   199  func (m *Nat44AddDelIdentityMapping) Size() (size int) {
   200  	if m == nil {
   201  		return 0
   202  	}
   203  	size += 1     // m.IsAdd
   204  	size += 1     // m.Flags
   205  	size += 1 * 4 // m.IPAddress
   206  	size += 1     // m.Protocol
   207  	size += 2     // m.Port
   208  	size += 4     // m.SwIfIndex
   209  	size += 4     // m.VrfID
   210  	size += 64    // m.Tag
   211  	return size
   212  }
   213  func (m *Nat44AddDelIdentityMapping) Marshal(b []byte) ([]byte, error) {
   214  	if b == nil {
   215  		b = make([]byte, m.Size())
   216  	}
   217  	buf := codec.NewBuffer(b)
   218  	buf.EncodeBool(m.IsAdd)
   219  	buf.EncodeUint8(uint8(m.Flags))
   220  	buf.EncodeBytes(m.IPAddress[:], 4)
   221  	buf.EncodeUint8(m.Protocol)
   222  	buf.EncodeUint16(m.Port)
   223  	buf.EncodeUint32(uint32(m.SwIfIndex))
   224  	buf.EncodeUint32(m.VrfID)
   225  	buf.EncodeString(m.Tag, 64)
   226  	return buf.Bytes(), nil
   227  }
   228  func (m *Nat44AddDelIdentityMapping) Unmarshal(b []byte) error {
   229  	buf := codec.NewBuffer(b)
   230  	m.IsAdd = buf.DecodeBool()
   231  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
   232  	copy(m.IPAddress[:], buf.DecodeBytes(4))
   233  	m.Protocol = buf.DecodeUint8()
   234  	m.Port = buf.DecodeUint16()
   235  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   236  	m.VrfID = buf.DecodeUint32()
   237  	m.Tag = buf.DecodeString(64)
   238  	return nil
   239  }
   240  
   241  // Nat44AddDelIdentityMappingReply defines message 'nat44_add_del_identity_mapping_reply'.
   242  type Nat44AddDelIdentityMappingReply struct {
   243  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   244  }
   245  
   246  func (m *Nat44AddDelIdentityMappingReply) Reset() { *m = Nat44AddDelIdentityMappingReply{} }
   247  func (*Nat44AddDelIdentityMappingReply) GetMessageName() string {
   248  	return "nat44_add_del_identity_mapping_reply"
   249  }
   250  func (*Nat44AddDelIdentityMappingReply) GetCrcString() string { return "e8d4e804" }
   251  func (*Nat44AddDelIdentityMappingReply) GetMessageType() api.MessageType {
   252  	return api.ReplyMessage
   253  }
   254  
   255  func (m *Nat44AddDelIdentityMappingReply) Size() (size int) {
   256  	if m == nil {
   257  		return 0
   258  	}
   259  	size += 4 // m.Retval
   260  	return size
   261  }
   262  func (m *Nat44AddDelIdentityMappingReply) Marshal(b []byte) ([]byte, error) {
   263  	if b == nil {
   264  		b = make([]byte, m.Size())
   265  	}
   266  	buf := codec.NewBuffer(b)
   267  	buf.EncodeInt32(m.Retval)
   268  	return buf.Bytes(), nil
   269  }
   270  func (m *Nat44AddDelIdentityMappingReply) Unmarshal(b []byte) error {
   271  	buf := codec.NewBuffer(b)
   272  	m.Retval = buf.DecodeInt32()
   273  	return nil
   274  }
   275  
   276  // Nat44AddDelInterfaceAddr defines message 'nat44_add_del_interface_addr'.
   277  type Nat44AddDelInterfaceAddr struct {
   278  	IsAdd     bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
   279  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   280  	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
   281  }
   282  
   283  func (m *Nat44AddDelInterfaceAddr) Reset()               { *m = Nat44AddDelInterfaceAddr{} }
   284  func (*Nat44AddDelInterfaceAddr) GetMessageName() string { return "nat44_add_del_interface_addr" }
   285  func (*Nat44AddDelInterfaceAddr) GetCrcString() string   { return "4aed50c0" }
   286  func (*Nat44AddDelInterfaceAddr) GetMessageType() api.MessageType {
   287  	return api.RequestMessage
   288  }
   289  
   290  func (m *Nat44AddDelInterfaceAddr) Size() (size int) {
   291  	if m == nil {
   292  		return 0
   293  	}
   294  	size += 1 // m.IsAdd
   295  	size += 4 // m.SwIfIndex
   296  	size += 1 // m.Flags
   297  	return size
   298  }
   299  func (m *Nat44AddDelInterfaceAddr) Marshal(b []byte) ([]byte, error) {
   300  	if b == nil {
   301  		b = make([]byte, m.Size())
   302  	}
   303  	buf := codec.NewBuffer(b)
   304  	buf.EncodeBool(m.IsAdd)
   305  	buf.EncodeUint32(uint32(m.SwIfIndex))
   306  	buf.EncodeUint8(uint8(m.Flags))
   307  	return buf.Bytes(), nil
   308  }
   309  func (m *Nat44AddDelInterfaceAddr) Unmarshal(b []byte) error {
   310  	buf := codec.NewBuffer(b)
   311  	m.IsAdd = buf.DecodeBool()
   312  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   313  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
   314  	return nil
   315  }
   316  
   317  // Nat44AddDelInterfaceAddrReply defines message 'nat44_add_del_interface_addr_reply'.
   318  type Nat44AddDelInterfaceAddrReply struct {
   319  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   320  }
   321  
   322  func (m *Nat44AddDelInterfaceAddrReply) Reset() { *m = Nat44AddDelInterfaceAddrReply{} }
   323  func (*Nat44AddDelInterfaceAddrReply) GetMessageName() string {
   324  	return "nat44_add_del_interface_addr_reply"
   325  }
   326  func (*Nat44AddDelInterfaceAddrReply) GetCrcString() string { return "e8d4e804" }
   327  func (*Nat44AddDelInterfaceAddrReply) GetMessageType() api.MessageType {
   328  	return api.ReplyMessage
   329  }
   330  
   331  func (m *Nat44AddDelInterfaceAddrReply) Size() (size int) {
   332  	if m == nil {
   333  		return 0
   334  	}
   335  	size += 4 // m.Retval
   336  	return size
   337  }
   338  func (m *Nat44AddDelInterfaceAddrReply) Marshal(b []byte) ([]byte, error) {
   339  	if b == nil {
   340  		b = make([]byte, m.Size())
   341  	}
   342  	buf := codec.NewBuffer(b)
   343  	buf.EncodeInt32(m.Retval)
   344  	return buf.Bytes(), nil
   345  }
   346  func (m *Nat44AddDelInterfaceAddrReply) Unmarshal(b []byte) error {
   347  	buf := codec.NewBuffer(b)
   348  	m.Retval = buf.DecodeInt32()
   349  	return nil
   350  }
   351  
   352  // Nat44AddDelLbStaticMapping defines message 'nat44_add_del_lb_static_mapping'.
   353  type Nat44AddDelLbStaticMapping struct {
   354  	IsAdd        bool                     `binapi:"bool,name=is_add" json:"is_add,omitempty"`
   355  	Flags        nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
   356  	ExternalAddr ip_types.IP4Address      `binapi:"ip4_address,name=external_addr" json:"external_addr,omitempty"`
   357  	ExternalPort uint16                   `binapi:"u16,name=external_port" json:"external_port,omitempty"`
   358  	Protocol     uint8                    `binapi:"u8,name=protocol" json:"protocol,omitempty"`
   359  	Affinity     uint32                   `binapi:"u32,name=affinity" json:"affinity,omitempty"`
   360  	Tag          string                   `binapi:"string[64],name=tag" json:"tag,omitempty"`
   361  	LocalNum     uint32                   `binapi:"u32,name=local_num" json:"-"`
   362  	Locals       []Nat44LbAddrPort        `binapi:"nat44_lb_addr_port[local_num],name=locals" json:"locals,omitempty"`
   363  }
   364  
   365  func (m *Nat44AddDelLbStaticMapping) Reset()               { *m = Nat44AddDelLbStaticMapping{} }
   366  func (*Nat44AddDelLbStaticMapping) GetMessageName() string { return "nat44_add_del_lb_static_mapping" }
   367  func (*Nat44AddDelLbStaticMapping) GetCrcString() string   { return "4f68ee9d" }
   368  func (*Nat44AddDelLbStaticMapping) GetMessageType() api.MessageType {
   369  	return api.RequestMessage
   370  }
   371  
   372  func (m *Nat44AddDelLbStaticMapping) Size() (size int) {
   373  	if m == nil {
   374  		return 0
   375  	}
   376  	size += 1     // m.IsAdd
   377  	size += 1     // m.Flags
   378  	size += 1 * 4 // m.ExternalAddr
   379  	size += 2     // m.ExternalPort
   380  	size += 1     // m.Protocol
   381  	size += 4     // m.Affinity
   382  	size += 64    // m.Tag
   383  	size += 4     // m.LocalNum
   384  	for j1 := 0; j1 < len(m.Locals); j1++ {
   385  		var s1 Nat44LbAddrPort
   386  		_ = s1
   387  		if j1 < len(m.Locals) {
   388  			s1 = m.Locals[j1]
   389  		}
   390  		size += 1 * 4 // s1.Addr
   391  		size += 2     // s1.Port
   392  		size += 1     // s1.Probability
   393  		size += 4     // s1.VrfID
   394  	}
   395  	return size
   396  }
   397  func (m *Nat44AddDelLbStaticMapping) Marshal(b []byte) ([]byte, error) {
   398  	if b == nil {
   399  		b = make([]byte, m.Size())
   400  	}
   401  	buf := codec.NewBuffer(b)
   402  	buf.EncodeBool(m.IsAdd)
   403  	buf.EncodeUint8(uint8(m.Flags))
   404  	buf.EncodeBytes(m.ExternalAddr[:], 4)
   405  	buf.EncodeUint16(m.ExternalPort)
   406  	buf.EncodeUint8(m.Protocol)
   407  	buf.EncodeUint32(m.Affinity)
   408  	buf.EncodeString(m.Tag, 64)
   409  	buf.EncodeUint32(uint32(len(m.Locals)))
   410  	for j0 := 0; j0 < len(m.Locals); j0++ {
   411  		var v0 Nat44LbAddrPort // Locals
   412  		if j0 < len(m.Locals) {
   413  			v0 = m.Locals[j0]
   414  		}
   415  		buf.EncodeBytes(v0.Addr[:], 4)
   416  		buf.EncodeUint16(v0.Port)
   417  		buf.EncodeUint8(v0.Probability)
   418  		buf.EncodeUint32(v0.VrfID)
   419  	}
   420  	return buf.Bytes(), nil
   421  }
   422  func (m *Nat44AddDelLbStaticMapping) Unmarshal(b []byte) error {
   423  	buf := codec.NewBuffer(b)
   424  	m.IsAdd = buf.DecodeBool()
   425  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
   426  	copy(m.ExternalAddr[:], buf.DecodeBytes(4))
   427  	m.ExternalPort = buf.DecodeUint16()
   428  	m.Protocol = buf.DecodeUint8()
   429  	m.Affinity = buf.DecodeUint32()
   430  	m.Tag = buf.DecodeString(64)
   431  	m.LocalNum = buf.DecodeUint32()
   432  	m.Locals = make([]Nat44LbAddrPort, m.LocalNum)
   433  	for j0 := 0; j0 < len(m.Locals); j0++ {
   434  		copy(m.Locals[j0].Addr[:], buf.DecodeBytes(4))
   435  		m.Locals[j0].Port = buf.DecodeUint16()
   436  		m.Locals[j0].Probability = buf.DecodeUint8()
   437  		m.Locals[j0].VrfID = buf.DecodeUint32()
   438  	}
   439  	return nil
   440  }
   441  
   442  // Nat44AddDelLbStaticMappingReply defines message 'nat44_add_del_lb_static_mapping_reply'.
   443  type Nat44AddDelLbStaticMappingReply struct {
   444  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   445  }
   446  
   447  func (m *Nat44AddDelLbStaticMappingReply) Reset() { *m = Nat44AddDelLbStaticMappingReply{} }
   448  func (*Nat44AddDelLbStaticMappingReply) GetMessageName() string {
   449  	return "nat44_add_del_lb_static_mapping_reply"
   450  }
   451  func (*Nat44AddDelLbStaticMappingReply) GetCrcString() string { return "e8d4e804" }
   452  func (*Nat44AddDelLbStaticMappingReply) GetMessageType() api.MessageType {
   453  	return api.ReplyMessage
   454  }
   455  
   456  func (m *Nat44AddDelLbStaticMappingReply) Size() (size int) {
   457  	if m == nil {
   458  		return 0
   459  	}
   460  	size += 4 // m.Retval
   461  	return size
   462  }
   463  func (m *Nat44AddDelLbStaticMappingReply) Marshal(b []byte) ([]byte, error) {
   464  	if b == nil {
   465  		b = make([]byte, m.Size())
   466  	}
   467  	buf := codec.NewBuffer(b)
   468  	buf.EncodeInt32(m.Retval)
   469  	return buf.Bytes(), nil
   470  }
   471  func (m *Nat44AddDelLbStaticMappingReply) Unmarshal(b []byte) error {
   472  	buf := codec.NewBuffer(b)
   473  	m.Retval = buf.DecodeInt32()
   474  	return nil
   475  }
   476  
   477  // Nat44AddDelStaticMapping defines message 'nat44_add_del_static_mapping'.
   478  type Nat44AddDelStaticMapping struct {
   479  	IsAdd             bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
   480  	Flags             nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
   481  	LocalIPAddress    ip_types.IP4Address            `binapi:"ip4_address,name=local_ip_address" json:"local_ip_address,omitempty"`
   482  	ExternalIPAddress ip_types.IP4Address            `binapi:"ip4_address,name=external_ip_address" json:"external_ip_address,omitempty"`
   483  	Protocol          uint8                          `binapi:"u8,name=protocol" json:"protocol,omitempty"`
   484  	LocalPort         uint16                         `binapi:"u16,name=local_port" json:"local_port,omitempty"`
   485  	ExternalPort      uint16                         `binapi:"u16,name=external_port" json:"external_port,omitempty"`
   486  	ExternalSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=external_sw_if_index" json:"external_sw_if_index,omitempty"`
   487  	VrfID             uint32                         `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
   488  	Tag               string                         `binapi:"string[64],name=tag" json:"tag,omitempty"`
   489  }
   490  
   491  func (m *Nat44AddDelStaticMapping) Reset()               { *m = Nat44AddDelStaticMapping{} }
   492  func (*Nat44AddDelStaticMapping) GetMessageName() string { return "nat44_add_del_static_mapping" }
   493  func (*Nat44AddDelStaticMapping) GetCrcString() string   { return "5ae5f03e" }
   494  func (*Nat44AddDelStaticMapping) GetMessageType() api.MessageType {
   495  	return api.RequestMessage
   496  }
   497  
   498  func (m *Nat44AddDelStaticMapping) Size() (size int) {
   499  	if m == nil {
   500  		return 0
   501  	}
   502  	size += 1     // m.IsAdd
   503  	size += 1     // m.Flags
   504  	size += 1 * 4 // m.LocalIPAddress
   505  	size += 1 * 4 // m.ExternalIPAddress
   506  	size += 1     // m.Protocol
   507  	size += 2     // m.LocalPort
   508  	size += 2     // m.ExternalPort
   509  	size += 4     // m.ExternalSwIfIndex
   510  	size += 4     // m.VrfID
   511  	size += 64    // m.Tag
   512  	return size
   513  }
   514  func (m *Nat44AddDelStaticMapping) Marshal(b []byte) ([]byte, error) {
   515  	if b == nil {
   516  		b = make([]byte, m.Size())
   517  	}
   518  	buf := codec.NewBuffer(b)
   519  	buf.EncodeBool(m.IsAdd)
   520  	buf.EncodeUint8(uint8(m.Flags))
   521  	buf.EncodeBytes(m.LocalIPAddress[:], 4)
   522  	buf.EncodeBytes(m.ExternalIPAddress[:], 4)
   523  	buf.EncodeUint8(m.Protocol)
   524  	buf.EncodeUint16(m.LocalPort)
   525  	buf.EncodeUint16(m.ExternalPort)
   526  	buf.EncodeUint32(uint32(m.ExternalSwIfIndex))
   527  	buf.EncodeUint32(m.VrfID)
   528  	buf.EncodeString(m.Tag, 64)
   529  	return buf.Bytes(), nil
   530  }
   531  func (m *Nat44AddDelStaticMapping) Unmarshal(b []byte) error {
   532  	buf := codec.NewBuffer(b)
   533  	m.IsAdd = buf.DecodeBool()
   534  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
   535  	copy(m.LocalIPAddress[:], buf.DecodeBytes(4))
   536  	copy(m.ExternalIPAddress[:], buf.DecodeBytes(4))
   537  	m.Protocol = buf.DecodeUint8()
   538  	m.LocalPort = buf.DecodeUint16()
   539  	m.ExternalPort = buf.DecodeUint16()
   540  	m.ExternalSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   541  	m.VrfID = buf.DecodeUint32()
   542  	m.Tag = buf.DecodeString(64)
   543  	return nil
   544  }
   545  
   546  // Nat44AddDelStaticMappingReply defines message 'nat44_add_del_static_mapping_reply'.
   547  type Nat44AddDelStaticMappingReply struct {
   548  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   549  }
   550  
   551  func (m *Nat44AddDelStaticMappingReply) Reset() { *m = Nat44AddDelStaticMappingReply{} }
   552  func (*Nat44AddDelStaticMappingReply) GetMessageName() string {
   553  	return "nat44_add_del_static_mapping_reply"
   554  }
   555  func (*Nat44AddDelStaticMappingReply) GetCrcString() string { return "e8d4e804" }
   556  func (*Nat44AddDelStaticMappingReply) GetMessageType() api.MessageType {
   557  	return api.ReplyMessage
   558  }
   559  
   560  func (m *Nat44AddDelStaticMappingReply) Size() (size int) {
   561  	if m == nil {
   562  		return 0
   563  	}
   564  	size += 4 // m.Retval
   565  	return size
   566  }
   567  func (m *Nat44AddDelStaticMappingReply) Marshal(b []byte) ([]byte, error) {
   568  	if b == nil {
   569  		b = make([]byte, m.Size())
   570  	}
   571  	buf := codec.NewBuffer(b)
   572  	buf.EncodeInt32(m.Retval)
   573  	return buf.Bytes(), nil
   574  }
   575  func (m *Nat44AddDelStaticMappingReply) Unmarshal(b []byte) error {
   576  	buf := codec.NewBuffer(b)
   577  	m.Retval = buf.DecodeInt32()
   578  	return nil
   579  }
   580  
   581  // Nat44AddDelStaticMappingV2 defines message 'nat44_add_del_static_mapping_v2'.
   582  // InProgress: the message form may change in the future versions
   583  type Nat44AddDelStaticMappingV2 struct {
   584  	IsAdd             bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
   585  	MatchPool         bool                           `binapi:"bool,name=match_pool" json:"match_pool,omitempty"`
   586  	Flags             nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
   587  	PoolIPAddress     ip_types.IP4Address            `binapi:"ip4_address,name=pool_ip_address" json:"pool_ip_address,omitempty"`
   588  	LocalIPAddress    ip_types.IP4Address            `binapi:"ip4_address,name=local_ip_address" json:"local_ip_address,omitempty"`
   589  	ExternalIPAddress ip_types.IP4Address            `binapi:"ip4_address,name=external_ip_address" json:"external_ip_address,omitempty"`
   590  	Protocol          uint8                          `binapi:"u8,name=protocol" json:"protocol,omitempty"`
   591  	LocalPort         uint16                         `binapi:"u16,name=local_port" json:"local_port,omitempty"`
   592  	ExternalPort      uint16                         `binapi:"u16,name=external_port" json:"external_port,omitempty"`
   593  	ExternalSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=external_sw_if_index" json:"external_sw_if_index,omitempty"`
   594  	VrfID             uint32                         `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
   595  	Tag               string                         `binapi:"string[64],name=tag" json:"tag,omitempty"`
   596  }
   597  
   598  func (m *Nat44AddDelStaticMappingV2) Reset()               { *m = Nat44AddDelStaticMappingV2{} }
   599  func (*Nat44AddDelStaticMappingV2) GetMessageName() string { return "nat44_add_del_static_mapping_v2" }
   600  func (*Nat44AddDelStaticMappingV2) GetCrcString() string   { return "5e205f1a" }
   601  func (*Nat44AddDelStaticMappingV2) GetMessageType() api.MessageType {
   602  	return api.RequestMessage
   603  }
   604  
   605  func (m *Nat44AddDelStaticMappingV2) Size() (size int) {
   606  	if m == nil {
   607  		return 0
   608  	}
   609  	size += 1     // m.IsAdd
   610  	size += 1     // m.MatchPool
   611  	size += 1     // m.Flags
   612  	size += 1 * 4 // m.PoolIPAddress
   613  	size += 1 * 4 // m.LocalIPAddress
   614  	size += 1 * 4 // m.ExternalIPAddress
   615  	size += 1     // m.Protocol
   616  	size += 2     // m.LocalPort
   617  	size += 2     // m.ExternalPort
   618  	size += 4     // m.ExternalSwIfIndex
   619  	size += 4     // m.VrfID
   620  	size += 64    // m.Tag
   621  	return size
   622  }
   623  func (m *Nat44AddDelStaticMappingV2) Marshal(b []byte) ([]byte, error) {
   624  	if b == nil {
   625  		b = make([]byte, m.Size())
   626  	}
   627  	buf := codec.NewBuffer(b)
   628  	buf.EncodeBool(m.IsAdd)
   629  	buf.EncodeBool(m.MatchPool)
   630  	buf.EncodeUint8(uint8(m.Flags))
   631  	buf.EncodeBytes(m.PoolIPAddress[:], 4)
   632  	buf.EncodeBytes(m.LocalIPAddress[:], 4)
   633  	buf.EncodeBytes(m.ExternalIPAddress[:], 4)
   634  	buf.EncodeUint8(m.Protocol)
   635  	buf.EncodeUint16(m.LocalPort)
   636  	buf.EncodeUint16(m.ExternalPort)
   637  	buf.EncodeUint32(uint32(m.ExternalSwIfIndex))
   638  	buf.EncodeUint32(m.VrfID)
   639  	buf.EncodeString(m.Tag, 64)
   640  	return buf.Bytes(), nil
   641  }
   642  func (m *Nat44AddDelStaticMappingV2) Unmarshal(b []byte) error {
   643  	buf := codec.NewBuffer(b)
   644  	m.IsAdd = buf.DecodeBool()
   645  	m.MatchPool = buf.DecodeBool()
   646  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
   647  	copy(m.PoolIPAddress[:], buf.DecodeBytes(4))
   648  	copy(m.LocalIPAddress[:], buf.DecodeBytes(4))
   649  	copy(m.ExternalIPAddress[:], buf.DecodeBytes(4))
   650  	m.Protocol = buf.DecodeUint8()
   651  	m.LocalPort = buf.DecodeUint16()
   652  	m.ExternalPort = buf.DecodeUint16()
   653  	m.ExternalSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   654  	m.VrfID = buf.DecodeUint32()
   655  	m.Tag = buf.DecodeString(64)
   656  	return nil
   657  }
   658  
   659  // Nat44AddDelStaticMappingV2Reply defines message 'nat44_add_del_static_mapping_v2_reply'.
   660  // InProgress: the message form may change in the future versions
   661  type Nat44AddDelStaticMappingV2Reply struct {
   662  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   663  }
   664  
   665  func (m *Nat44AddDelStaticMappingV2Reply) Reset() { *m = Nat44AddDelStaticMappingV2Reply{} }
   666  func (*Nat44AddDelStaticMappingV2Reply) GetMessageName() string {
   667  	return "nat44_add_del_static_mapping_v2_reply"
   668  }
   669  func (*Nat44AddDelStaticMappingV2Reply) GetCrcString() string { return "e8d4e804" }
   670  func (*Nat44AddDelStaticMappingV2Reply) GetMessageType() api.MessageType {
   671  	return api.ReplyMessage
   672  }
   673  
   674  func (m *Nat44AddDelStaticMappingV2Reply) Size() (size int) {
   675  	if m == nil {
   676  		return 0
   677  	}
   678  	size += 4 // m.Retval
   679  	return size
   680  }
   681  func (m *Nat44AddDelStaticMappingV2Reply) Marshal(b []byte) ([]byte, error) {
   682  	if b == nil {
   683  		b = make([]byte, m.Size())
   684  	}
   685  	buf := codec.NewBuffer(b)
   686  	buf.EncodeInt32(m.Retval)
   687  	return buf.Bytes(), nil
   688  }
   689  func (m *Nat44AddDelStaticMappingV2Reply) Unmarshal(b []byte) error {
   690  	buf := codec.NewBuffer(b)
   691  	m.Retval = buf.DecodeInt32()
   692  	return nil
   693  }
   694  
   695  // Nat44AddressDetails defines message 'nat44_address_details'.
   696  type Nat44AddressDetails struct {
   697  	IPAddress ip_types.IP4Address      `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
   698  	Flags     nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
   699  	VrfID     uint32                   `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
   700  }
   701  
   702  func (m *Nat44AddressDetails) Reset()               { *m = Nat44AddressDetails{} }
   703  func (*Nat44AddressDetails) GetMessageName() string { return "nat44_address_details" }
   704  func (*Nat44AddressDetails) GetCrcString() string   { return "0d1beac1" }
   705  func (*Nat44AddressDetails) GetMessageType() api.MessageType {
   706  	return api.ReplyMessage
   707  }
   708  
   709  func (m *Nat44AddressDetails) Size() (size int) {
   710  	if m == nil {
   711  		return 0
   712  	}
   713  	size += 1 * 4 // m.IPAddress
   714  	size += 1     // m.Flags
   715  	size += 4     // m.VrfID
   716  	return size
   717  }
   718  func (m *Nat44AddressDetails) Marshal(b []byte) ([]byte, error) {
   719  	if b == nil {
   720  		b = make([]byte, m.Size())
   721  	}
   722  	buf := codec.NewBuffer(b)
   723  	buf.EncodeBytes(m.IPAddress[:], 4)
   724  	buf.EncodeUint8(uint8(m.Flags))
   725  	buf.EncodeUint32(m.VrfID)
   726  	return buf.Bytes(), nil
   727  }
   728  func (m *Nat44AddressDetails) Unmarshal(b []byte) error {
   729  	buf := codec.NewBuffer(b)
   730  	copy(m.IPAddress[:], buf.DecodeBytes(4))
   731  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
   732  	m.VrfID = buf.DecodeUint32()
   733  	return nil
   734  }
   735  
   736  // Nat44AddressDump defines message 'nat44_address_dump'.
   737  type Nat44AddressDump struct{}
   738  
   739  func (m *Nat44AddressDump) Reset()               { *m = Nat44AddressDump{} }
   740  func (*Nat44AddressDump) GetMessageName() string { return "nat44_address_dump" }
   741  func (*Nat44AddressDump) GetCrcString() string   { return "51077d14" }
   742  func (*Nat44AddressDump) GetMessageType() api.MessageType {
   743  	return api.RequestMessage
   744  }
   745  
   746  func (m *Nat44AddressDump) Size() (size int) {
   747  	if m == nil {
   748  		return 0
   749  	}
   750  	return size
   751  }
   752  func (m *Nat44AddressDump) Marshal(b []byte) ([]byte, error) {
   753  	if b == nil {
   754  		b = make([]byte, m.Size())
   755  	}
   756  	buf := codec.NewBuffer(b)
   757  	return buf.Bytes(), nil
   758  }
   759  func (m *Nat44AddressDump) Unmarshal(b []byte) error {
   760  	return nil
   761  }
   762  
   763  // Nat44DelSession defines message 'nat44_del_session'.
   764  type Nat44DelSession struct {
   765  	Address        ip_types.IP4Address      `binapi:"ip4_address,name=address" json:"address,omitempty"`
   766  	Protocol       uint8                    `binapi:"u8,name=protocol" json:"protocol,omitempty"`
   767  	Port           uint16                   `binapi:"u16,name=port" json:"port,omitempty"`
   768  	VrfID          uint32                   `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
   769  	Flags          nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
   770  	ExtHostAddress ip_types.IP4Address      `binapi:"ip4_address,name=ext_host_address" json:"ext_host_address,omitempty"`
   771  	ExtHostPort    uint16                   `binapi:"u16,name=ext_host_port" json:"ext_host_port,omitempty"`
   772  }
   773  
   774  func (m *Nat44DelSession) Reset()               { *m = Nat44DelSession{} }
   775  func (*Nat44DelSession) GetMessageName() string { return "nat44_del_session" }
   776  func (*Nat44DelSession) GetCrcString() string   { return "15a5bf8c" }
   777  func (*Nat44DelSession) GetMessageType() api.MessageType {
   778  	return api.RequestMessage
   779  }
   780  
   781  func (m *Nat44DelSession) Size() (size int) {
   782  	if m == nil {
   783  		return 0
   784  	}
   785  	size += 1 * 4 // m.Address
   786  	size += 1     // m.Protocol
   787  	size += 2     // m.Port
   788  	size += 4     // m.VrfID
   789  	size += 1     // m.Flags
   790  	size += 1 * 4 // m.ExtHostAddress
   791  	size += 2     // m.ExtHostPort
   792  	return size
   793  }
   794  func (m *Nat44DelSession) Marshal(b []byte) ([]byte, error) {
   795  	if b == nil {
   796  		b = make([]byte, m.Size())
   797  	}
   798  	buf := codec.NewBuffer(b)
   799  	buf.EncodeBytes(m.Address[:], 4)
   800  	buf.EncodeUint8(m.Protocol)
   801  	buf.EncodeUint16(m.Port)
   802  	buf.EncodeUint32(m.VrfID)
   803  	buf.EncodeUint8(uint8(m.Flags))
   804  	buf.EncodeBytes(m.ExtHostAddress[:], 4)
   805  	buf.EncodeUint16(m.ExtHostPort)
   806  	return buf.Bytes(), nil
   807  }
   808  func (m *Nat44DelSession) Unmarshal(b []byte) error {
   809  	buf := codec.NewBuffer(b)
   810  	copy(m.Address[:], buf.DecodeBytes(4))
   811  	m.Protocol = buf.DecodeUint8()
   812  	m.Port = buf.DecodeUint16()
   813  	m.VrfID = buf.DecodeUint32()
   814  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
   815  	copy(m.ExtHostAddress[:], buf.DecodeBytes(4))
   816  	m.ExtHostPort = buf.DecodeUint16()
   817  	return nil
   818  }
   819  
   820  // Nat44DelSessionReply defines message 'nat44_del_session_reply'.
   821  type Nat44DelSessionReply struct {
   822  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   823  }
   824  
   825  func (m *Nat44DelSessionReply) Reset()               { *m = Nat44DelSessionReply{} }
   826  func (*Nat44DelSessionReply) GetMessageName() string { return "nat44_del_session_reply" }
   827  func (*Nat44DelSessionReply) GetCrcString() string   { return "e8d4e804" }
   828  func (*Nat44DelSessionReply) GetMessageType() api.MessageType {
   829  	return api.ReplyMessage
   830  }
   831  
   832  func (m *Nat44DelSessionReply) Size() (size int) {
   833  	if m == nil {
   834  		return 0
   835  	}
   836  	size += 4 // m.Retval
   837  	return size
   838  }
   839  func (m *Nat44DelSessionReply) Marshal(b []byte) ([]byte, error) {
   840  	if b == nil {
   841  		b = make([]byte, m.Size())
   842  	}
   843  	buf := codec.NewBuffer(b)
   844  	buf.EncodeInt32(m.Retval)
   845  	return buf.Bytes(), nil
   846  }
   847  func (m *Nat44DelSessionReply) Unmarshal(b []byte) error {
   848  	buf := codec.NewBuffer(b)
   849  	m.Retval = buf.DecodeInt32()
   850  	return nil
   851  }
   852  
   853  // Nat44DelUser defines message 'nat44_del_user'.
   854  type Nat44DelUser struct {
   855  	IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
   856  	FibIndex  uint32              `binapi:"u32,name=fib_index" json:"fib_index,omitempty"`
   857  }
   858  
   859  func (m *Nat44DelUser) Reset()               { *m = Nat44DelUser{} }
   860  func (*Nat44DelUser) GetMessageName() string { return "nat44_del_user" }
   861  func (*Nat44DelUser) GetCrcString() string   { return "99a9f998" }
   862  func (*Nat44DelUser) GetMessageType() api.MessageType {
   863  	return api.RequestMessage
   864  }
   865  
   866  func (m *Nat44DelUser) Size() (size int) {
   867  	if m == nil {
   868  		return 0
   869  	}
   870  	size += 1 * 4 // m.IPAddress
   871  	size += 4     // m.FibIndex
   872  	return size
   873  }
   874  func (m *Nat44DelUser) Marshal(b []byte) ([]byte, error) {
   875  	if b == nil {
   876  		b = make([]byte, m.Size())
   877  	}
   878  	buf := codec.NewBuffer(b)
   879  	buf.EncodeBytes(m.IPAddress[:], 4)
   880  	buf.EncodeUint32(m.FibIndex)
   881  	return buf.Bytes(), nil
   882  }
   883  func (m *Nat44DelUser) Unmarshal(b []byte) error {
   884  	buf := codec.NewBuffer(b)
   885  	copy(m.IPAddress[:], buf.DecodeBytes(4))
   886  	m.FibIndex = buf.DecodeUint32()
   887  	return nil
   888  }
   889  
   890  // Nat44DelUserReply defines message 'nat44_del_user_reply'.
   891  type Nat44DelUserReply struct {
   892  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   893  }
   894  
   895  func (m *Nat44DelUserReply) Reset()               { *m = Nat44DelUserReply{} }
   896  func (*Nat44DelUserReply) GetMessageName() string { return "nat44_del_user_reply" }
   897  func (*Nat44DelUserReply) GetCrcString() string   { return "e8d4e804" }
   898  func (*Nat44DelUserReply) GetMessageType() api.MessageType {
   899  	return api.ReplyMessage
   900  }
   901  
   902  func (m *Nat44DelUserReply) Size() (size int) {
   903  	if m == nil {
   904  		return 0
   905  	}
   906  	size += 4 // m.Retval
   907  	return size
   908  }
   909  func (m *Nat44DelUserReply) Marshal(b []byte) ([]byte, error) {
   910  	if b == nil {
   911  		b = make([]byte, m.Size())
   912  	}
   913  	buf := codec.NewBuffer(b)
   914  	buf.EncodeInt32(m.Retval)
   915  	return buf.Bytes(), nil
   916  }
   917  func (m *Nat44DelUserReply) Unmarshal(b []byte) error {
   918  	buf := codec.NewBuffer(b)
   919  	m.Retval = buf.DecodeInt32()
   920  	return nil
   921  }
   922  
   923  // Nat44EdAddDelOutputInterface defines message 'nat44_ed_add_del_output_interface'.
   924  type Nat44EdAddDelOutputInterface struct {
   925  	IsAdd     bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
   926  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   927  }
   928  
   929  func (m *Nat44EdAddDelOutputInterface) Reset() { *m = Nat44EdAddDelOutputInterface{} }
   930  func (*Nat44EdAddDelOutputInterface) GetMessageName() string {
   931  	return "nat44_ed_add_del_output_interface"
   932  }
   933  func (*Nat44EdAddDelOutputInterface) GetCrcString() string { return "47d6e753" }
   934  func (*Nat44EdAddDelOutputInterface) GetMessageType() api.MessageType {
   935  	return api.RequestMessage
   936  }
   937  
   938  func (m *Nat44EdAddDelOutputInterface) Size() (size int) {
   939  	if m == nil {
   940  		return 0
   941  	}
   942  	size += 1 // m.IsAdd
   943  	size += 4 // m.SwIfIndex
   944  	return size
   945  }
   946  func (m *Nat44EdAddDelOutputInterface) Marshal(b []byte) ([]byte, error) {
   947  	if b == nil {
   948  		b = make([]byte, m.Size())
   949  	}
   950  	buf := codec.NewBuffer(b)
   951  	buf.EncodeBool(m.IsAdd)
   952  	buf.EncodeUint32(uint32(m.SwIfIndex))
   953  	return buf.Bytes(), nil
   954  }
   955  func (m *Nat44EdAddDelOutputInterface) Unmarshal(b []byte) error {
   956  	buf := codec.NewBuffer(b)
   957  	m.IsAdd = buf.DecodeBool()
   958  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   959  	return nil
   960  }
   961  
   962  // Nat44EdAddDelOutputInterfaceReply defines message 'nat44_ed_add_del_output_interface_reply'.
   963  type Nat44EdAddDelOutputInterfaceReply struct {
   964  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   965  }
   966  
   967  func (m *Nat44EdAddDelOutputInterfaceReply) Reset() { *m = Nat44EdAddDelOutputInterfaceReply{} }
   968  func (*Nat44EdAddDelOutputInterfaceReply) GetMessageName() string {
   969  	return "nat44_ed_add_del_output_interface_reply"
   970  }
   971  func (*Nat44EdAddDelOutputInterfaceReply) GetCrcString() string { return "e8d4e804" }
   972  func (*Nat44EdAddDelOutputInterfaceReply) GetMessageType() api.MessageType {
   973  	return api.ReplyMessage
   974  }
   975  
   976  func (m *Nat44EdAddDelOutputInterfaceReply) Size() (size int) {
   977  	if m == nil {
   978  		return 0
   979  	}
   980  	size += 4 // m.Retval
   981  	return size
   982  }
   983  func (m *Nat44EdAddDelOutputInterfaceReply) Marshal(b []byte) ([]byte, error) {
   984  	if b == nil {
   985  		b = make([]byte, m.Size())
   986  	}
   987  	buf := codec.NewBuffer(b)
   988  	buf.EncodeInt32(m.Retval)
   989  	return buf.Bytes(), nil
   990  }
   991  func (m *Nat44EdAddDelOutputInterfaceReply) Unmarshal(b []byte) error {
   992  	buf := codec.NewBuffer(b)
   993  	m.Retval = buf.DecodeInt32()
   994  	return nil
   995  }
   996  
   997  // Nat44EdOutputInterfaceDetails defines message 'nat44_ed_output_interface_details'.
   998  type Nat44EdOutputInterfaceDetails struct {
   999  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1000  }
  1001  
  1002  func (m *Nat44EdOutputInterfaceDetails) Reset() { *m = Nat44EdOutputInterfaceDetails{} }
  1003  func (*Nat44EdOutputInterfaceDetails) GetMessageName() string {
  1004  	return "nat44_ed_output_interface_details"
  1005  }
  1006  func (*Nat44EdOutputInterfaceDetails) GetCrcString() string { return "0b45011c" }
  1007  func (*Nat44EdOutputInterfaceDetails) GetMessageType() api.MessageType {
  1008  	return api.ReplyMessage
  1009  }
  1010  
  1011  func (m *Nat44EdOutputInterfaceDetails) Size() (size int) {
  1012  	if m == nil {
  1013  		return 0
  1014  	}
  1015  	size += 4 // m.SwIfIndex
  1016  	return size
  1017  }
  1018  func (m *Nat44EdOutputInterfaceDetails) Marshal(b []byte) ([]byte, error) {
  1019  	if b == nil {
  1020  		b = make([]byte, m.Size())
  1021  	}
  1022  	buf := codec.NewBuffer(b)
  1023  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1024  	return buf.Bytes(), nil
  1025  }
  1026  func (m *Nat44EdOutputInterfaceDetails) Unmarshal(b []byte) error {
  1027  	buf := codec.NewBuffer(b)
  1028  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1029  	return nil
  1030  }
  1031  
  1032  // Nat44EdOutputInterfaceGet defines message 'nat44_ed_output_interface_get'.
  1033  type Nat44EdOutputInterfaceGet struct {
  1034  	Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
  1035  }
  1036  
  1037  func (m *Nat44EdOutputInterfaceGet) Reset()               { *m = Nat44EdOutputInterfaceGet{} }
  1038  func (*Nat44EdOutputInterfaceGet) GetMessageName() string { return "nat44_ed_output_interface_get" }
  1039  func (*Nat44EdOutputInterfaceGet) GetCrcString() string   { return "f75ba505" }
  1040  func (*Nat44EdOutputInterfaceGet) GetMessageType() api.MessageType {
  1041  	return api.RequestMessage
  1042  }
  1043  
  1044  func (m *Nat44EdOutputInterfaceGet) Size() (size int) {
  1045  	if m == nil {
  1046  		return 0
  1047  	}
  1048  	size += 4 // m.Cursor
  1049  	return size
  1050  }
  1051  func (m *Nat44EdOutputInterfaceGet) Marshal(b []byte) ([]byte, error) {
  1052  	if b == nil {
  1053  		b = make([]byte, m.Size())
  1054  	}
  1055  	buf := codec.NewBuffer(b)
  1056  	buf.EncodeUint32(m.Cursor)
  1057  	return buf.Bytes(), nil
  1058  }
  1059  func (m *Nat44EdOutputInterfaceGet) Unmarshal(b []byte) error {
  1060  	buf := codec.NewBuffer(b)
  1061  	m.Cursor = buf.DecodeUint32()
  1062  	return nil
  1063  }
  1064  
  1065  // Nat44EdOutputInterfaceGetReply defines message 'nat44_ed_output_interface_get_reply'.
  1066  type Nat44EdOutputInterfaceGetReply struct {
  1067  	Retval int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  1068  	Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
  1069  }
  1070  
  1071  func (m *Nat44EdOutputInterfaceGetReply) Reset() { *m = Nat44EdOutputInterfaceGetReply{} }
  1072  func (*Nat44EdOutputInterfaceGetReply) GetMessageName() string {
  1073  	return "nat44_ed_output_interface_get_reply"
  1074  }
  1075  func (*Nat44EdOutputInterfaceGetReply) GetCrcString() string { return "53b48f5d" }
  1076  func (*Nat44EdOutputInterfaceGetReply) GetMessageType() api.MessageType {
  1077  	return api.ReplyMessage
  1078  }
  1079  
  1080  func (m *Nat44EdOutputInterfaceGetReply) Size() (size int) {
  1081  	if m == nil {
  1082  		return 0
  1083  	}
  1084  	size += 4 // m.Retval
  1085  	size += 4 // m.Cursor
  1086  	return size
  1087  }
  1088  func (m *Nat44EdOutputInterfaceGetReply) Marshal(b []byte) ([]byte, error) {
  1089  	if b == nil {
  1090  		b = make([]byte, m.Size())
  1091  	}
  1092  	buf := codec.NewBuffer(b)
  1093  	buf.EncodeInt32(m.Retval)
  1094  	buf.EncodeUint32(m.Cursor)
  1095  	return buf.Bytes(), nil
  1096  }
  1097  func (m *Nat44EdOutputInterfaceGetReply) Unmarshal(b []byte) error {
  1098  	buf := codec.NewBuffer(b)
  1099  	m.Retval = buf.DecodeInt32()
  1100  	m.Cursor = buf.DecodeUint32()
  1101  	return nil
  1102  }
  1103  
  1104  // Nat44EdPluginEnableDisable defines message 'nat44_ed_plugin_enable_disable'.
  1105  // InProgress: the message form may change in the future versions
  1106  type Nat44EdPluginEnableDisable struct {
  1107  	InsideVrf     uint32           `binapi:"u32,name=inside_vrf" json:"inside_vrf,omitempty"`
  1108  	OutsideVrf    uint32           `binapi:"u32,name=outside_vrf" json:"outside_vrf,omitempty"`
  1109  	Sessions      uint32           `binapi:"u32,name=sessions" json:"sessions,omitempty"`
  1110  	SessionMemory uint32           `binapi:"u32,name=session_memory" json:"session_memory,omitempty"`
  1111  	Enable        bool             `binapi:"bool,name=enable" json:"enable,omitempty"`
  1112  	Flags         Nat44ConfigFlags `binapi:"nat44_config_flags,name=flags" json:"flags,omitempty"`
  1113  }
  1114  
  1115  func (m *Nat44EdPluginEnableDisable) Reset()               { *m = Nat44EdPluginEnableDisable{} }
  1116  func (*Nat44EdPluginEnableDisable) GetMessageName() string { return "nat44_ed_plugin_enable_disable" }
  1117  func (*Nat44EdPluginEnableDisable) GetCrcString() string   { return "be17f8dd" }
  1118  func (*Nat44EdPluginEnableDisable) GetMessageType() api.MessageType {
  1119  	return api.RequestMessage
  1120  }
  1121  
  1122  func (m *Nat44EdPluginEnableDisable) Size() (size int) {
  1123  	if m == nil {
  1124  		return 0
  1125  	}
  1126  	size += 4 // m.InsideVrf
  1127  	size += 4 // m.OutsideVrf
  1128  	size += 4 // m.Sessions
  1129  	size += 4 // m.SessionMemory
  1130  	size += 1 // m.Enable
  1131  	size += 1 // m.Flags
  1132  	return size
  1133  }
  1134  func (m *Nat44EdPluginEnableDisable) Marshal(b []byte) ([]byte, error) {
  1135  	if b == nil {
  1136  		b = make([]byte, m.Size())
  1137  	}
  1138  	buf := codec.NewBuffer(b)
  1139  	buf.EncodeUint32(m.InsideVrf)
  1140  	buf.EncodeUint32(m.OutsideVrf)
  1141  	buf.EncodeUint32(m.Sessions)
  1142  	buf.EncodeUint32(m.SessionMemory)
  1143  	buf.EncodeBool(m.Enable)
  1144  	buf.EncodeUint8(uint8(m.Flags))
  1145  	return buf.Bytes(), nil
  1146  }
  1147  func (m *Nat44EdPluginEnableDisable) Unmarshal(b []byte) error {
  1148  	buf := codec.NewBuffer(b)
  1149  	m.InsideVrf = buf.DecodeUint32()
  1150  	m.OutsideVrf = buf.DecodeUint32()
  1151  	m.Sessions = buf.DecodeUint32()
  1152  	m.SessionMemory = buf.DecodeUint32()
  1153  	m.Enable = buf.DecodeBool()
  1154  	m.Flags = Nat44ConfigFlags(buf.DecodeUint8())
  1155  	return nil
  1156  }
  1157  
  1158  // Nat44EdPluginEnableDisableReply defines message 'nat44_ed_plugin_enable_disable_reply'.
  1159  // InProgress: the message form may change in the future versions
  1160  type Nat44EdPluginEnableDisableReply struct {
  1161  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1162  }
  1163  
  1164  func (m *Nat44EdPluginEnableDisableReply) Reset() { *m = Nat44EdPluginEnableDisableReply{} }
  1165  func (*Nat44EdPluginEnableDisableReply) GetMessageName() string {
  1166  	return "nat44_ed_plugin_enable_disable_reply"
  1167  }
  1168  func (*Nat44EdPluginEnableDisableReply) GetCrcString() string { return "e8d4e804" }
  1169  func (*Nat44EdPluginEnableDisableReply) GetMessageType() api.MessageType {
  1170  	return api.ReplyMessage
  1171  }
  1172  
  1173  func (m *Nat44EdPluginEnableDisableReply) Size() (size int) {
  1174  	if m == nil {
  1175  		return 0
  1176  	}
  1177  	size += 4 // m.Retval
  1178  	return size
  1179  }
  1180  func (m *Nat44EdPluginEnableDisableReply) Marshal(b []byte) ([]byte, error) {
  1181  	if b == nil {
  1182  		b = make([]byte, m.Size())
  1183  	}
  1184  	buf := codec.NewBuffer(b)
  1185  	buf.EncodeInt32(m.Retval)
  1186  	return buf.Bytes(), nil
  1187  }
  1188  func (m *Nat44EdPluginEnableDisableReply) Unmarshal(b []byte) error {
  1189  	buf := codec.NewBuffer(b)
  1190  	m.Retval = buf.DecodeInt32()
  1191  	return nil
  1192  }
  1193  
  1194  // Nat44EdSetFqOptions defines message 'nat44_ed_set_fq_options'.
  1195  // InProgress: the message form may change in the future versions
  1196  type Nat44EdSetFqOptions struct {
  1197  	FrameQueueNelts uint32 `binapi:"u32,name=frame_queue_nelts" json:"frame_queue_nelts,omitempty"`
  1198  }
  1199  
  1200  func (m *Nat44EdSetFqOptions) Reset()               { *m = Nat44EdSetFqOptions{} }
  1201  func (*Nat44EdSetFqOptions) GetMessageName() string { return "nat44_ed_set_fq_options" }
  1202  func (*Nat44EdSetFqOptions) GetCrcString() string   { return "2399bd71" }
  1203  func (*Nat44EdSetFqOptions) GetMessageType() api.MessageType {
  1204  	return api.RequestMessage
  1205  }
  1206  
  1207  func (m *Nat44EdSetFqOptions) Size() (size int) {
  1208  	if m == nil {
  1209  		return 0
  1210  	}
  1211  	size += 4 // m.FrameQueueNelts
  1212  	return size
  1213  }
  1214  func (m *Nat44EdSetFqOptions) Marshal(b []byte) ([]byte, error) {
  1215  	if b == nil {
  1216  		b = make([]byte, m.Size())
  1217  	}
  1218  	buf := codec.NewBuffer(b)
  1219  	buf.EncodeUint32(m.FrameQueueNelts)
  1220  	return buf.Bytes(), nil
  1221  }
  1222  func (m *Nat44EdSetFqOptions) Unmarshal(b []byte) error {
  1223  	buf := codec.NewBuffer(b)
  1224  	m.FrameQueueNelts = buf.DecodeUint32()
  1225  	return nil
  1226  }
  1227  
  1228  // Nat44EdSetFqOptionsReply defines message 'nat44_ed_set_fq_options_reply'.
  1229  // InProgress: the message form may change in the future versions
  1230  type Nat44EdSetFqOptionsReply struct {
  1231  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1232  }
  1233  
  1234  func (m *Nat44EdSetFqOptionsReply) Reset()               { *m = Nat44EdSetFqOptionsReply{} }
  1235  func (*Nat44EdSetFqOptionsReply) GetMessageName() string { return "nat44_ed_set_fq_options_reply" }
  1236  func (*Nat44EdSetFqOptionsReply) GetCrcString() string   { return "e8d4e804" }
  1237  func (*Nat44EdSetFqOptionsReply) GetMessageType() api.MessageType {
  1238  	return api.ReplyMessage
  1239  }
  1240  
  1241  func (m *Nat44EdSetFqOptionsReply) Size() (size int) {
  1242  	if m == nil {
  1243  		return 0
  1244  	}
  1245  	size += 4 // m.Retval
  1246  	return size
  1247  }
  1248  func (m *Nat44EdSetFqOptionsReply) Marshal(b []byte) ([]byte, error) {
  1249  	if b == nil {
  1250  		b = make([]byte, m.Size())
  1251  	}
  1252  	buf := codec.NewBuffer(b)
  1253  	buf.EncodeInt32(m.Retval)
  1254  	return buf.Bytes(), nil
  1255  }
  1256  func (m *Nat44EdSetFqOptionsReply) Unmarshal(b []byte) error {
  1257  	buf := codec.NewBuffer(b)
  1258  	m.Retval = buf.DecodeInt32()
  1259  	return nil
  1260  }
  1261  
  1262  // Nat44EdShowFqOptions defines message 'nat44_ed_show_fq_options'.
  1263  // InProgress: the message form may change in the future versions
  1264  type Nat44EdShowFqOptions struct{}
  1265  
  1266  func (m *Nat44EdShowFqOptions) Reset()               { *m = Nat44EdShowFqOptions{} }
  1267  func (*Nat44EdShowFqOptions) GetMessageName() string { return "nat44_ed_show_fq_options" }
  1268  func (*Nat44EdShowFqOptions) GetCrcString() string   { return "51077d14" }
  1269  func (*Nat44EdShowFqOptions) GetMessageType() api.MessageType {
  1270  	return api.RequestMessage
  1271  }
  1272  
  1273  func (m *Nat44EdShowFqOptions) Size() (size int) {
  1274  	if m == nil {
  1275  		return 0
  1276  	}
  1277  	return size
  1278  }
  1279  func (m *Nat44EdShowFqOptions) Marshal(b []byte) ([]byte, error) {
  1280  	if b == nil {
  1281  		b = make([]byte, m.Size())
  1282  	}
  1283  	buf := codec.NewBuffer(b)
  1284  	return buf.Bytes(), nil
  1285  }
  1286  func (m *Nat44EdShowFqOptions) Unmarshal(b []byte) error {
  1287  	return nil
  1288  }
  1289  
  1290  // Nat44EdShowFqOptionsReply defines message 'nat44_ed_show_fq_options_reply'.
  1291  // InProgress: the message form may change in the future versions
  1292  type Nat44EdShowFqOptionsReply struct {
  1293  	Retval          int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  1294  	FrameQueueNelts uint32 `binapi:"u32,name=frame_queue_nelts" json:"frame_queue_nelts,omitempty"`
  1295  }
  1296  
  1297  func (m *Nat44EdShowFqOptionsReply) Reset()               { *m = Nat44EdShowFqOptionsReply{} }
  1298  func (*Nat44EdShowFqOptionsReply) GetMessageName() string { return "nat44_ed_show_fq_options_reply" }
  1299  func (*Nat44EdShowFqOptionsReply) GetCrcString() string   { return "7213b545" }
  1300  func (*Nat44EdShowFqOptionsReply) GetMessageType() api.MessageType {
  1301  	return api.ReplyMessage
  1302  }
  1303  
  1304  func (m *Nat44EdShowFqOptionsReply) Size() (size int) {
  1305  	if m == nil {
  1306  		return 0
  1307  	}
  1308  	size += 4 // m.Retval
  1309  	size += 4 // m.FrameQueueNelts
  1310  	return size
  1311  }
  1312  func (m *Nat44EdShowFqOptionsReply) Marshal(b []byte) ([]byte, error) {
  1313  	if b == nil {
  1314  		b = make([]byte, m.Size())
  1315  	}
  1316  	buf := codec.NewBuffer(b)
  1317  	buf.EncodeInt32(m.Retval)
  1318  	buf.EncodeUint32(m.FrameQueueNelts)
  1319  	return buf.Bytes(), nil
  1320  }
  1321  func (m *Nat44EdShowFqOptionsReply) Unmarshal(b []byte) error {
  1322  	buf := codec.NewBuffer(b)
  1323  	m.Retval = buf.DecodeInt32()
  1324  	m.FrameQueueNelts = buf.DecodeUint32()
  1325  	return nil
  1326  }
  1327  
  1328  // Nat44ForwardingEnableDisable defines message 'nat44_forwarding_enable_disable'.
  1329  // Deprecated: the message will be removed in the future versions
  1330  type Nat44ForwardingEnableDisable struct {
  1331  	Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
  1332  }
  1333  
  1334  func (m *Nat44ForwardingEnableDisable) Reset() { *m = Nat44ForwardingEnableDisable{} }
  1335  func (*Nat44ForwardingEnableDisable) GetMessageName() string {
  1336  	return "nat44_forwarding_enable_disable"
  1337  }
  1338  func (*Nat44ForwardingEnableDisable) GetCrcString() string { return "b3e225d2" }
  1339  func (*Nat44ForwardingEnableDisable) GetMessageType() api.MessageType {
  1340  	return api.RequestMessage
  1341  }
  1342  
  1343  func (m *Nat44ForwardingEnableDisable) Size() (size int) {
  1344  	if m == nil {
  1345  		return 0
  1346  	}
  1347  	size += 1 // m.Enable
  1348  	return size
  1349  }
  1350  func (m *Nat44ForwardingEnableDisable) Marshal(b []byte) ([]byte, error) {
  1351  	if b == nil {
  1352  		b = make([]byte, m.Size())
  1353  	}
  1354  	buf := codec.NewBuffer(b)
  1355  	buf.EncodeBool(m.Enable)
  1356  	return buf.Bytes(), nil
  1357  }
  1358  func (m *Nat44ForwardingEnableDisable) Unmarshal(b []byte) error {
  1359  	buf := codec.NewBuffer(b)
  1360  	m.Enable = buf.DecodeBool()
  1361  	return nil
  1362  }
  1363  
  1364  // Nat44ForwardingEnableDisableReply defines message 'nat44_forwarding_enable_disable_reply'.
  1365  // Deprecated: the message will be removed in the future versions
  1366  type Nat44ForwardingEnableDisableReply struct {
  1367  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1368  }
  1369  
  1370  func (m *Nat44ForwardingEnableDisableReply) Reset() { *m = Nat44ForwardingEnableDisableReply{} }
  1371  func (*Nat44ForwardingEnableDisableReply) GetMessageName() string {
  1372  	return "nat44_forwarding_enable_disable_reply"
  1373  }
  1374  func (*Nat44ForwardingEnableDisableReply) GetCrcString() string { return "e8d4e804" }
  1375  func (*Nat44ForwardingEnableDisableReply) GetMessageType() api.MessageType {
  1376  	return api.ReplyMessage
  1377  }
  1378  
  1379  func (m *Nat44ForwardingEnableDisableReply) Size() (size int) {
  1380  	if m == nil {
  1381  		return 0
  1382  	}
  1383  	size += 4 // m.Retval
  1384  	return size
  1385  }
  1386  func (m *Nat44ForwardingEnableDisableReply) Marshal(b []byte) ([]byte, error) {
  1387  	if b == nil {
  1388  		b = make([]byte, m.Size())
  1389  	}
  1390  	buf := codec.NewBuffer(b)
  1391  	buf.EncodeInt32(m.Retval)
  1392  	return buf.Bytes(), nil
  1393  }
  1394  func (m *Nat44ForwardingEnableDisableReply) Unmarshal(b []byte) error {
  1395  	buf := codec.NewBuffer(b)
  1396  	m.Retval = buf.DecodeInt32()
  1397  	return nil
  1398  }
  1399  
  1400  // Nat44ForwardingIsEnabled defines message 'nat44_forwarding_is_enabled'.
  1401  // Deprecated: the message will be removed in the future versions
  1402  type Nat44ForwardingIsEnabled struct{}
  1403  
  1404  func (m *Nat44ForwardingIsEnabled) Reset()               { *m = Nat44ForwardingIsEnabled{} }
  1405  func (*Nat44ForwardingIsEnabled) GetMessageName() string { return "nat44_forwarding_is_enabled" }
  1406  func (*Nat44ForwardingIsEnabled) GetCrcString() string   { return "51077d14" }
  1407  func (*Nat44ForwardingIsEnabled) GetMessageType() api.MessageType {
  1408  	return api.RequestMessage
  1409  }
  1410  
  1411  func (m *Nat44ForwardingIsEnabled) Size() (size int) {
  1412  	if m == nil {
  1413  		return 0
  1414  	}
  1415  	return size
  1416  }
  1417  func (m *Nat44ForwardingIsEnabled) Marshal(b []byte) ([]byte, error) {
  1418  	if b == nil {
  1419  		b = make([]byte, m.Size())
  1420  	}
  1421  	buf := codec.NewBuffer(b)
  1422  	return buf.Bytes(), nil
  1423  }
  1424  func (m *Nat44ForwardingIsEnabled) Unmarshal(b []byte) error {
  1425  	return nil
  1426  }
  1427  
  1428  // Nat44ForwardingIsEnabledReply defines message 'nat44_forwarding_is_enabled_reply'.
  1429  // Deprecated: the message will be removed in the future versions
  1430  type Nat44ForwardingIsEnabledReply struct {
  1431  	Enabled bool `binapi:"bool,name=enabled" json:"enabled,omitempty"`
  1432  }
  1433  
  1434  func (m *Nat44ForwardingIsEnabledReply) Reset() { *m = Nat44ForwardingIsEnabledReply{} }
  1435  func (*Nat44ForwardingIsEnabledReply) GetMessageName() string {
  1436  	return "nat44_forwarding_is_enabled_reply"
  1437  }
  1438  func (*Nat44ForwardingIsEnabledReply) GetCrcString() string { return "46924a06" }
  1439  func (*Nat44ForwardingIsEnabledReply) GetMessageType() api.MessageType {
  1440  	return api.ReplyMessage
  1441  }
  1442  
  1443  func (m *Nat44ForwardingIsEnabledReply) Size() (size int) {
  1444  	if m == nil {
  1445  		return 0
  1446  	}
  1447  	size += 1 // m.Enabled
  1448  	return size
  1449  }
  1450  func (m *Nat44ForwardingIsEnabledReply) Marshal(b []byte) ([]byte, error) {
  1451  	if b == nil {
  1452  		b = make([]byte, m.Size())
  1453  	}
  1454  	buf := codec.NewBuffer(b)
  1455  	buf.EncodeBool(m.Enabled)
  1456  	return buf.Bytes(), nil
  1457  }
  1458  func (m *Nat44ForwardingIsEnabledReply) Unmarshal(b []byte) error {
  1459  	buf := codec.NewBuffer(b)
  1460  	m.Enabled = buf.DecodeBool()
  1461  	return nil
  1462  }
  1463  
  1464  // Nat44IdentityMappingDetails defines message 'nat44_identity_mapping_details'.
  1465  type Nat44IdentityMappingDetails struct {
  1466  	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  1467  	IPAddress ip_types.IP4Address            `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  1468  	Protocol  uint8                          `binapi:"u8,name=protocol" json:"protocol,omitempty"`
  1469  	Port      uint16                         `binapi:"u16,name=port" json:"port,omitempty"`
  1470  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1471  	VrfID     uint32                         `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  1472  	Tag       string                         `binapi:"string[64],name=tag" json:"tag,omitempty"`
  1473  }
  1474  
  1475  func (m *Nat44IdentityMappingDetails) Reset()               { *m = Nat44IdentityMappingDetails{} }
  1476  func (*Nat44IdentityMappingDetails) GetMessageName() string { return "nat44_identity_mapping_details" }
  1477  func (*Nat44IdentityMappingDetails) GetCrcString() string   { return "2a52a030" }
  1478  func (*Nat44IdentityMappingDetails) GetMessageType() api.MessageType {
  1479  	return api.ReplyMessage
  1480  }
  1481  
  1482  func (m *Nat44IdentityMappingDetails) Size() (size int) {
  1483  	if m == nil {
  1484  		return 0
  1485  	}
  1486  	size += 1     // m.Flags
  1487  	size += 1 * 4 // m.IPAddress
  1488  	size += 1     // m.Protocol
  1489  	size += 2     // m.Port
  1490  	size += 4     // m.SwIfIndex
  1491  	size += 4     // m.VrfID
  1492  	size += 64    // m.Tag
  1493  	return size
  1494  }
  1495  func (m *Nat44IdentityMappingDetails) Marshal(b []byte) ([]byte, error) {
  1496  	if b == nil {
  1497  		b = make([]byte, m.Size())
  1498  	}
  1499  	buf := codec.NewBuffer(b)
  1500  	buf.EncodeUint8(uint8(m.Flags))
  1501  	buf.EncodeBytes(m.IPAddress[:], 4)
  1502  	buf.EncodeUint8(m.Protocol)
  1503  	buf.EncodeUint16(m.Port)
  1504  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1505  	buf.EncodeUint32(m.VrfID)
  1506  	buf.EncodeString(m.Tag, 64)
  1507  	return buf.Bytes(), nil
  1508  }
  1509  func (m *Nat44IdentityMappingDetails) Unmarshal(b []byte) error {
  1510  	buf := codec.NewBuffer(b)
  1511  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  1512  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  1513  	m.Protocol = buf.DecodeUint8()
  1514  	m.Port = buf.DecodeUint16()
  1515  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1516  	m.VrfID = buf.DecodeUint32()
  1517  	m.Tag = buf.DecodeString(64)
  1518  	return nil
  1519  }
  1520  
  1521  // Nat44IdentityMappingDump defines message 'nat44_identity_mapping_dump'.
  1522  type Nat44IdentityMappingDump struct{}
  1523  
  1524  func (m *Nat44IdentityMappingDump) Reset()               { *m = Nat44IdentityMappingDump{} }
  1525  func (*Nat44IdentityMappingDump) GetMessageName() string { return "nat44_identity_mapping_dump" }
  1526  func (*Nat44IdentityMappingDump) GetCrcString() string   { return "51077d14" }
  1527  func (*Nat44IdentityMappingDump) GetMessageType() api.MessageType {
  1528  	return api.RequestMessage
  1529  }
  1530  
  1531  func (m *Nat44IdentityMappingDump) Size() (size int) {
  1532  	if m == nil {
  1533  		return 0
  1534  	}
  1535  	return size
  1536  }
  1537  func (m *Nat44IdentityMappingDump) Marshal(b []byte) ([]byte, error) {
  1538  	if b == nil {
  1539  		b = make([]byte, m.Size())
  1540  	}
  1541  	buf := codec.NewBuffer(b)
  1542  	return buf.Bytes(), nil
  1543  }
  1544  func (m *Nat44IdentityMappingDump) Unmarshal(b []byte) error {
  1545  	return nil
  1546  }
  1547  
  1548  // Nat44InterfaceAddDelFeature defines message 'nat44_interface_add_del_feature'.
  1549  type Nat44InterfaceAddDelFeature struct {
  1550  	IsAdd     bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
  1551  	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  1552  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1553  }
  1554  
  1555  func (m *Nat44InterfaceAddDelFeature) Reset()               { *m = Nat44InterfaceAddDelFeature{} }
  1556  func (*Nat44InterfaceAddDelFeature) GetMessageName() string { return "nat44_interface_add_del_feature" }
  1557  func (*Nat44InterfaceAddDelFeature) GetCrcString() string   { return "f3699b83" }
  1558  func (*Nat44InterfaceAddDelFeature) GetMessageType() api.MessageType {
  1559  	return api.RequestMessage
  1560  }
  1561  
  1562  func (m *Nat44InterfaceAddDelFeature) Size() (size int) {
  1563  	if m == nil {
  1564  		return 0
  1565  	}
  1566  	size += 1 // m.IsAdd
  1567  	size += 1 // m.Flags
  1568  	size += 4 // m.SwIfIndex
  1569  	return size
  1570  }
  1571  func (m *Nat44InterfaceAddDelFeature) Marshal(b []byte) ([]byte, error) {
  1572  	if b == nil {
  1573  		b = make([]byte, m.Size())
  1574  	}
  1575  	buf := codec.NewBuffer(b)
  1576  	buf.EncodeBool(m.IsAdd)
  1577  	buf.EncodeUint8(uint8(m.Flags))
  1578  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1579  	return buf.Bytes(), nil
  1580  }
  1581  func (m *Nat44InterfaceAddDelFeature) Unmarshal(b []byte) error {
  1582  	buf := codec.NewBuffer(b)
  1583  	m.IsAdd = buf.DecodeBool()
  1584  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  1585  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1586  	return nil
  1587  }
  1588  
  1589  // Nat44InterfaceAddDelFeatureReply defines message 'nat44_interface_add_del_feature_reply'.
  1590  type Nat44InterfaceAddDelFeatureReply struct {
  1591  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1592  }
  1593  
  1594  func (m *Nat44InterfaceAddDelFeatureReply) Reset() { *m = Nat44InterfaceAddDelFeatureReply{} }
  1595  func (*Nat44InterfaceAddDelFeatureReply) GetMessageName() string {
  1596  	return "nat44_interface_add_del_feature_reply"
  1597  }
  1598  func (*Nat44InterfaceAddDelFeatureReply) GetCrcString() string { return "e8d4e804" }
  1599  func (*Nat44InterfaceAddDelFeatureReply) GetMessageType() api.MessageType {
  1600  	return api.ReplyMessage
  1601  }
  1602  
  1603  func (m *Nat44InterfaceAddDelFeatureReply) Size() (size int) {
  1604  	if m == nil {
  1605  		return 0
  1606  	}
  1607  	size += 4 // m.Retval
  1608  	return size
  1609  }
  1610  func (m *Nat44InterfaceAddDelFeatureReply) Marshal(b []byte) ([]byte, error) {
  1611  	if b == nil {
  1612  		b = make([]byte, m.Size())
  1613  	}
  1614  	buf := codec.NewBuffer(b)
  1615  	buf.EncodeInt32(m.Retval)
  1616  	return buf.Bytes(), nil
  1617  }
  1618  func (m *Nat44InterfaceAddDelFeatureReply) Unmarshal(b []byte) error {
  1619  	buf := codec.NewBuffer(b)
  1620  	m.Retval = buf.DecodeInt32()
  1621  	return nil
  1622  }
  1623  
  1624  // Nat44InterfaceAddDelOutputFeature defines message 'nat44_interface_add_del_output_feature'.
  1625  // Deprecated: the message will be removed in the future versions
  1626  type Nat44InterfaceAddDelOutputFeature struct {
  1627  	IsAdd     bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
  1628  	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  1629  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1630  }
  1631  
  1632  func (m *Nat44InterfaceAddDelOutputFeature) Reset() { *m = Nat44InterfaceAddDelOutputFeature{} }
  1633  func (*Nat44InterfaceAddDelOutputFeature) GetMessageName() string {
  1634  	return "nat44_interface_add_del_output_feature"
  1635  }
  1636  func (*Nat44InterfaceAddDelOutputFeature) GetCrcString() string { return "f3699b83" }
  1637  func (*Nat44InterfaceAddDelOutputFeature) GetMessageType() api.MessageType {
  1638  	return api.RequestMessage
  1639  }
  1640  
  1641  func (m *Nat44InterfaceAddDelOutputFeature) Size() (size int) {
  1642  	if m == nil {
  1643  		return 0
  1644  	}
  1645  	size += 1 // m.IsAdd
  1646  	size += 1 // m.Flags
  1647  	size += 4 // m.SwIfIndex
  1648  	return size
  1649  }
  1650  func (m *Nat44InterfaceAddDelOutputFeature) Marshal(b []byte) ([]byte, error) {
  1651  	if b == nil {
  1652  		b = make([]byte, m.Size())
  1653  	}
  1654  	buf := codec.NewBuffer(b)
  1655  	buf.EncodeBool(m.IsAdd)
  1656  	buf.EncodeUint8(uint8(m.Flags))
  1657  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1658  	return buf.Bytes(), nil
  1659  }
  1660  func (m *Nat44InterfaceAddDelOutputFeature) Unmarshal(b []byte) error {
  1661  	buf := codec.NewBuffer(b)
  1662  	m.IsAdd = buf.DecodeBool()
  1663  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  1664  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1665  	return nil
  1666  }
  1667  
  1668  // Nat44InterfaceAddDelOutputFeatureReply defines message 'nat44_interface_add_del_output_feature_reply'.
  1669  // Deprecated: the message will be removed in the future versions
  1670  type Nat44InterfaceAddDelOutputFeatureReply struct {
  1671  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1672  }
  1673  
  1674  func (m *Nat44InterfaceAddDelOutputFeatureReply) Reset() {
  1675  	*m = Nat44InterfaceAddDelOutputFeatureReply{}
  1676  }
  1677  func (*Nat44InterfaceAddDelOutputFeatureReply) GetMessageName() string {
  1678  	return "nat44_interface_add_del_output_feature_reply"
  1679  }
  1680  func (*Nat44InterfaceAddDelOutputFeatureReply) GetCrcString() string { return "e8d4e804" }
  1681  func (*Nat44InterfaceAddDelOutputFeatureReply) GetMessageType() api.MessageType {
  1682  	return api.ReplyMessage
  1683  }
  1684  
  1685  func (m *Nat44InterfaceAddDelOutputFeatureReply) Size() (size int) {
  1686  	if m == nil {
  1687  		return 0
  1688  	}
  1689  	size += 4 // m.Retval
  1690  	return size
  1691  }
  1692  func (m *Nat44InterfaceAddDelOutputFeatureReply) Marshal(b []byte) ([]byte, error) {
  1693  	if b == nil {
  1694  		b = make([]byte, m.Size())
  1695  	}
  1696  	buf := codec.NewBuffer(b)
  1697  	buf.EncodeInt32(m.Retval)
  1698  	return buf.Bytes(), nil
  1699  }
  1700  func (m *Nat44InterfaceAddDelOutputFeatureReply) Unmarshal(b []byte) error {
  1701  	buf := codec.NewBuffer(b)
  1702  	m.Retval = buf.DecodeInt32()
  1703  	return nil
  1704  }
  1705  
  1706  // Nat44InterfaceAddrDetails defines message 'nat44_interface_addr_details'.
  1707  type Nat44InterfaceAddrDetails struct {
  1708  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1709  	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  1710  }
  1711  
  1712  func (m *Nat44InterfaceAddrDetails) Reset()               { *m = Nat44InterfaceAddrDetails{} }
  1713  func (*Nat44InterfaceAddrDetails) GetMessageName() string { return "nat44_interface_addr_details" }
  1714  func (*Nat44InterfaceAddrDetails) GetCrcString() string   { return "e4aca9ca" }
  1715  func (*Nat44InterfaceAddrDetails) GetMessageType() api.MessageType {
  1716  	return api.ReplyMessage
  1717  }
  1718  
  1719  func (m *Nat44InterfaceAddrDetails) Size() (size int) {
  1720  	if m == nil {
  1721  		return 0
  1722  	}
  1723  	size += 4 // m.SwIfIndex
  1724  	size += 1 // m.Flags
  1725  	return size
  1726  }
  1727  func (m *Nat44InterfaceAddrDetails) Marshal(b []byte) ([]byte, error) {
  1728  	if b == nil {
  1729  		b = make([]byte, m.Size())
  1730  	}
  1731  	buf := codec.NewBuffer(b)
  1732  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1733  	buf.EncodeUint8(uint8(m.Flags))
  1734  	return buf.Bytes(), nil
  1735  }
  1736  func (m *Nat44InterfaceAddrDetails) Unmarshal(b []byte) error {
  1737  	buf := codec.NewBuffer(b)
  1738  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1739  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  1740  	return nil
  1741  }
  1742  
  1743  // Nat44InterfaceAddrDump defines message 'nat44_interface_addr_dump'.
  1744  type Nat44InterfaceAddrDump struct{}
  1745  
  1746  func (m *Nat44InterfaceAddrDump) Reset()               { *m = Nat44InterfaceAddrDump{} }
  1747  func (*Nat44InterfaceAddrDump) GetMessageName() string { return "nat44_interface_addr_dump" }
  1748  func (*Nat44InterfaceAddrDump) GetCrcString() string   { return "51077d14" }
  1749  func (*Nat44InterfaceAddrDump) GetMessageType() api.MessageType {
  1750  	return api.RequestMessage
  1751  }
  1752  
  1753  func (m *Nat44InterfaceAddrDump) Size() (size int) {
  1754  	if m == nil {
  1755  		return 0
  1756  	}
  1757  	return size
  1758  }
  1759  func (m *Nat44InterfaceAddrDump) Marshal(b []byte) ([]byte, error) {
  1760  	if b == nil {
  1761  		b = make([]byte, m.Size())
  1762  	}
  1763  	buf := codec.NewBuffer(b)
  1764  	return buf.Bytes(), nil
  1765  }
  1766  func (m *Nat44InterfaceAddrDump) Unmarshal(b []byte) error {
  1767  	return nil
  1768  }
  1769  
  1770  // Nat44InterfaceDetails defines message 'nat44_interface_details'.
  1771  type Nat44InterfaceDetails struct {
  1772  	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  1773  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1774  }
  1775  
  1776  func (m *Nat44InterfaceDetails) Reset()               { *m = Nat44InterfaceDetails{} }
  1777  func (*Nat44InterfaceDetails) GetMessageName() string { return "nat44_interface_details" }
  1778  func (*Nat44InterfaceDetails) GetCrcString() string   { return "5d286289" }
  1779  func (*Nat44InterfaceDetails) GetMessageType() api.MessageType {
  1780  	return api.ReplyMessage
  1781  }
  1782  
  1783  func (m *Nat44InterfaceDetails) Size() (size int) {
  1784  	if m == nil {
  1785  		return 0
  1786  	}
  1787  	size += 1 // m.Flags
  1788  	size += 4 // m.SwIfIndex
  1789  	return size
  1790  }
  1791  func (m *Nat44InterfaceDetails) Marshal(b []byte) ([]byte, error) {
  1792  	if b == nil {
  1793  		b = make([]byte, m.Size())
  1794  	}
  1795  	buf := codec.NewBuffer(b)
  1796  	buf.EncodeUint8(uint8(m.Flags))
  1797  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1798  	return buf.Bytes(), nil
  1799  }
  1800  func (m *Nat44InterfaceDetails) Unmarshal(b []byte) error {
  1801  	buf := codec.NewBuffer(b)
  1802  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  1803  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1804  	return nil
  1805  }
  1806  
  1807  // Nat44InterfaceDump defines message 'nat44_interface_dump'.
  1808  type Nat44InterfaceDump struct{}
  1809  
  1810  func (m *Nat44InterfaceDump) Reset()               { *m = Nat44InterfaceDump{} }
  1811  func (*Nat44InterfaceDump) GetMessageName() string { return "nat44_interface_dump" }
  1812  func (*Nat44InterfaceDump) GetCrcString() string   { return "51077d14" }
  1813  func (*Nat44InterfaceDump) GetMessageType() api.MessageType {
  1814  	return api.RequestMessage
  1815  }
  1816  
  1817  func (m *Nat44InterfaceDump) Size() (size int) {
  1818  	if m == nil {
  1819  		return 0
  1820  	}
  1821  	return size
  1822  }
  1823  func (m *Nat44InterfaceDump) Marshal(b []byte) ([]byte, error) {
  1824  	if b == nil {
  1825  		b = make([]byte, m.Size())
  1826  	}
  1827  	buf := codec.NewBuffer(b)
  1828  	return buf.Bytes(), nil
  1829  }
  1830  func (m *Nat44InterfaceDump) Unmarshal(b []byte) error {
  1831  	return nil
  1832  }
  1833  
  1834  // Nat44InterfaceOutputFeatureDetails defines message 'nat44_interface_output_feature_details'.
  1835  // Deprecated: the message will be removed in the future versions
  1836  type Nat44InterfaceOutputFeatureDetails struct {
  1837  	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  1838  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1839  }
  1840  
  1841  func (m *Nat44InterfaceOutputFeatureDetails) Reset() { *m = Nat44InterfaceOutputFeatureDetails{} }
  1842  func (*Nat44InterfaceOutputFeatureDetails) GetMessageName() string {
  1843  	return "nat44_interface_output_feature_details"
  1844  }
  1845  func (*Nat44InterfaceOutputFeatureDetails) GetCrcString() string { return "5d286289" }
  1846  func (*Nat44InterfaceOutputFeatureDetails) GetMessageType() api.MessageType {
  1847  	return api.ReplyMessage
  1848  }
  1849  
  1850  func (m *Nat44InterfaceOutputFeatureDetails) Size() (size int) {
  1851  	if m == nil {
  1852  		return 0
  1853  	}
  1854  	size += 1 // m.Flags
  1855  	size += 4 // m.SwIfIndex
  1856  	return size
  1857  }
  1858  func (m *Nat44InterfaceOutputFeatureDetails) Marshal(b []byte) ([]byte, error) {
  1859  	if b == nil {
  1860  		b = make([]byte, m.Size())
  1861  	}
  1862  	buf := codec.NewBuffer(b)
  1863  	buf.EncodeUint8(uint8(m.Flags))
  1864  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1865  	return buf.Bytes(), nil
  1866  }
  1867  func (m *Nat44InterfaceOutputFeatureDetails) Unmarshal(b []byte) error {
  1868  	buf := codec.NewBuffer(b)
  1869  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  1870  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1871  	return nil
  1872  }
  1873  
  1874  // Nat44InterfaceOutputFeatureDump defines message 'nat44_interface_output_feature_dump'.
  1875  // Deprecated: the message will be removed in the future versions
  1876  type Nat44InterfaceOutputFeatureDump struct{}
  1877  
  1878  func (m *Nat44InterfaceOutputFeatureDump) Reset() { *m = Nat44InterfaceOutputFeatureDump{} }
  1879  func (*Nat44InterfaceOutputFeatureDump) GetMessageName() string {
  1880  	return "nat44_interface_output_feature_dump"
  1881  }
  1882  func (*Nat44InterfaceOutputFeatureDump) GetCrcString() string { return "51077d14" }
  1883  func (*Nat44InterfaceOutputFeatureDump) GetMessageType() api.MessageType {
  1884  	return api.RequestMessage
  1885  }
  1886  
  1887  func (m *Nat44InterfaceOutputFeatureDump) Size() (size int) {
  1888  	if m == nil {
  1889  		return 0
  1890  	}
  1891  	return size
  1892  }
  1893  func (m *Nat44InterfaceOutputFeatureDump) Marshal(b []byte) ([]byte, error) {
  1894  	if b == nil {
  1895  		b = make([]byte, m.Size())
  1896  	}
  1897  	buf := codec.NewBuffer(b)
  1898  	return buf.Bytes(), nil
  1899  }
  1900  func (m *Nat44InterfaceOutputFeatureDump) Unmarshal(b []byte) error {
  1901  	return nil
  1902  }
  1903  
  1904  // Nat44LbStaticMappingAddDelLocal defines message 'nat44_lb_static_mapping_add_del_local'.
  1905  type Nat44LbStaticMappingAddDelLocal struct {
  1906  	IsAdd        bool                `binapi:"bool,name=is_add" json:"is_add,omitempty"`
  1907  	ExternalAddr ip_types.IP4Address `binapi:"ip4_address,name=external_addr" json:"external_addr,omitempty"`
  1908  	ExternalPort uint16              `binapi:"u16,name=external_port" json:"external_port,omitempty"`
  1909  	Protocol     uint8               `binapi:"u8,name=protocol" json:"protocol,omitempty"`
  1910  	Local        Nat44LbAddrPort     `binapi:"nat44_lb_addr_port,name=local" json:"local,omitempty"`
  1911  }
  1912  
  1913  func (m *Nat44LbStaticMappingAddDelLocal) Reset() { *m = Nat44LbStaticMappingAddDelLocal{} }
  1914  func (*Nat44LbStaticMappingAddDelLocal) GetMessageName() string {
  1915  	return "nat44_lb_static_mapping_add_del_local"
  1916  }
  1917  func (*Nat44LbStaticMappingAddDelLocal) GetCrcString() string { return "7ca47547" }
  1918  func (*Nat44LbStaticMappingAddDelLocal) GetMessageType() api.MessageType {
  1919  	return api.RequestMessage
  1920  }
  1921  
  1922  func (m *Nat44LbStaticMappingAddDelLocal) Size() (size int) {
  1923  	if m == nil {
  1924  		return 0
  1925  	}
  1926  	size += 1     // m.IsAdd
  1927  	size += 1 * 4 // m.ExternalAddr
  1928  	size += 2     // m.ExternalPort
  1929  	size += 1     // m.Protocol
  1930  	size += 1 * 4 // m.Local.Addr
  1931  	size += 2     // m.Local.Port
  1932  	size += 1     // m.Local.Probability
  1933  	size += 4     // m.Local.VrfID
  1934  	return size
  1935  }
  1936  func (m *Nat44LbStaticMappingAddDelLocal) Marshal(b []byte) ([]byte, error) {
  1937  	if b == nil {
  1938  		b = make([]byte, m.Size())
  1939  	}
  1940  	buf := codec.NewBuffer(b)
  1941  	buf.EncodeBool(m.IsAdd)
  1942  	buf.EncodeBytes(m.ExternalAddr[:], 4)
  1943  	buf.EncodeUint16(m.ExternalPort)
  1944  	buf.EncodeUint8(m.Protocol)
  1945  	buf.EncodeBytes(m.Local.Addr[:], 4)
  1946  	buf.EncodeUint16(m.Local.Port)
  1947  	buf.EncodeUint8(m.Local.Probability)
  1948  	buf.EncodeUint32(m.Local.VrfID)
  1949  	return buf.Bytes(), nil
  1950  }
  1951  func (m *Nat44LbStaticMappingAddDelLocal) Unmarshal(b []byte) error {
  1952  	buf := codec.NewBuffer(b)
  1953  	m.IsAdd = buf.DecodeBool()
  1954  	copy(m.ExternalAddr[:], buf.DecodeBytes(4))
  1955  	m.ExternalPort = buf.DecodeUint16()
  1956  	m.Protocol = buf.DecodeUint8()
  1957  	copy(m.Local.Addr[:], buf.DecodeBytes(4))
  1958  	m.Local.Port = buf.DecodeUint16()
  1959  	m.Local.Probability = buf.DecodeUint8()
  1960  	m.Local.VrfID = buf.DecodeUint32()
  1961  	return nil
  1962  }
  1963  
  1964  // Nat44LbStaticMappingAddDelLocalReply defines message 'nat44_lb_static_mapping_add_del_local_reply'.
  1965  type Nat44LbStaticMappingAddDelLocalReply struct {
  1966  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1967  }
  1968  
  1969  func (m *Nat44LbStaticMappingAddDelLocalReply) Reset() { *m = Nat44LbStaticMappingAddDelLocalReply{} }
  1970  func (*Nat44LbStaticMappingAddDelLocalReply) GetMessageName() string {
  1971  	return "nat44_lb_static_mapping_add_del_local_reply"
  1972  }
  1973  func (*Nat44LbStaticMappingAddDelLocalReply) GetCrcString() string { return "e8d4e804" }
  1974  func (*Nat44LbStaticMappingAddDelLocalReply) GetMessageType() api.MessageType {
  1975  	return api.ReplyMessage
  1976  }
  1977  
  1978  func (m *Nat44LbStaticMappingAddDelLocalReply) Size() (size int) {
  1979  	if m == nil {
  1980  		return 0
  1981  	}
  1982  	size += 4 // m.Retval
  1983  	return size
  1984  }
  1985  func (m *Nat44LbStaticMappingAddDelLocalReply) Marshal(b []byte) ([]byte, error) {
  1986  	if b == nil {
  1987  		b = make([]byte, m.Size())
  1988  	}
  1989  	buf := codec.NewBuffer(b)
  1990  	buf.EncodeInt32(m.Retval)
  1991  	return buf.Bytes(), nil
  1992  }
  1993  func (m *Nat44LbStaticMappingAddDelLocalReply) Unmarshal(b []byte) error {
  1994  	buf := codec.NewBuffer(b)
  1995  	m.Retval = buf.DecodeInt32()
  1996  	return nil
  1997  }
  1998  
  1999  // Nat44LbStaticMappingDetails defines message 'nat44_lb_static_mapping_details'.
  2000  type Nat44LbStaticMappingDetails struct {
  2001  	ExternalAddr ip_types.IP4Address      `binapi:"ip4_address,name=external_addr" json:"external_addr,omitempty"`
  2002  	ExternalPort uint16                   `binapi:"u16,name=external_port" json:"external_port,omitempty"`
  2003  	Protocol     uint8                    `binapi:"u8,name=protocol" json:"protocol,omitempty"`
  2004  	Flags        nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  2005  	Affinity     uint32                   `binapi:"u32,name=affinity" json:"affinity,omitempty"`
  2006  	Tag          string                   `binapi:"string[64],name=tag" json:"tag,omitempty"`
  2007  	LocalNum     uint32                   `binapi:"u32,name=local_num" json:"-"`
  2008  	Locals       []Nat44LbAddrPort        `binapi:"nat44_lb_addr_port[local_num],name=locals" json:"locals,omitempty"`
  2009  }
  2010  
  2011  func (m *Nat44LbStaticMappingDetails) Reset()               { *m = Nat44LbStaticMappingDetails{} }
  2012  func (*Nat44LbStaticMappingDetails) GetMessageName() string { return "nat44_lb_static_mapping_details" }
  2013  func (*Nat44LbStaticMappingDetails) GetCrcString() string   { return "ed5ce876" }
  2014  func (*Nat44LbStaticMappingDetails) GetMessageType() api.MessageType {
  2015  	return api.ReplyMessage
  2016  }
  2017  
  2018  func (m *Nat44LbStaticMappingDetails) Size() (size int) {
  2019  	if m == nil {
  2020  		return 0
  2021  	}
  2022  	size += 1 * 4 // m.ExternalAddr
  2023  	size += 2     // m.ExternalPort
  2024  	size += 1     // m.Protocol
  2025  	size += 1     // m.Flags
  2026  	size += 4     // m.Affinity
  2027  	size += 64    // m.Tag
  2028  	size += 4     // m.LocalNum
  2029  	for j1 := 0; j1 < len(m.Locals); j1++ {
  2030  		var s1 Nat44LbAddrPort
  2031  		_ = s1
  2032  		if j1 < len(m.Locals) {
  2033  			s1 = m.Locals[j1]
  2034  		}
  2035  		size += 1 * 4 // s1.Addr
  2036  		size += 2     // s1.Port
  2037  		size += 1     // s1.Probability
  2038  		size += 4     // s1.VrfID
  2039  	}
  2040  	return size
  2041  }
  2042  func (m *Nat44LbStaticMappingDetails) Marshal(b []byte) ([]byte, error) {
  2043  	if b == nil {
  2044  		b = make([]byte, m.Size())
  2045  	}
  2046  	buf := codec.NewBuffer(b)
  2047  	buf.EncodeBytes(m.ExternalAddr[:], 4)
  2048  	buf.EncodeUint16(m.ExternalPort)
  2049  	buf.EncodeUint8(m.Protocol)
  2050  	buf.EncodeUint8(uint8(m.Flags))
  2051  	buf.EncodeUint32(m.Affinity)
  2052  	buf.EncodeString(m.Tag, 64)
  2053  	buf.EncodeUint32(uint32(len(m.Locals)))
  2054  	for j0 := 0; j0 < len(m.Locals); j0++ {
  2055  		var v0 Nat44LbAddrPort // Locals
  2056  		if j0 < len(m.Locals) {
  2057  			v0 = m.Locals[j0]
  2058  		}
  2059  		buf.EncodeBytes(v0.Addr[:], 4)
  2060  		buf.EncodeUint16(v0.Port)
  2061  		buf.EncodeUint8(v0.Probability)
  2062  		buf.EncodeUint32(v0.VrfID)
  2063  	}
  2064  	return buf.Bytes(), nil
  2065  }
  2066  func (m *Nat44LbStaticMappingDetails) Unmarshal(b []byte) error {
  2067  	buf := codec.NewBuffer(b)
  2068  	copy(m.ExternalAddr[:], buf.DecodeBytes(4))
  2069  	m.ExternalPort = buf.DecodeUint16()
  2070  	m.Protocol = buf.DecodeUint8()
  2071  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  2072  	m.Affinity = buf.DecodeUint32()
  2073  	m.Tag = buf.DecodeString(64)
  2074  	m.LocalNum = buf.DecodeUint32()
  2075  	m.Locals = make([]Nat44LbAddrPort, m.LocalNum)
  2076  	for j0 := 0; j0 < len(m.Locals); j0++ {
  2077  		copy(m.Locals[j0].Addr[:], buf.DecodeBytes(4))
  2078  		m.Locals[j0].Port = buf.DecodeUint16()
  2079  		m.Locals[j0].Probability = buf.DecodeUint8()
  2080  		m.Locals[j0].VrfID = buf.DecodeUint32()
  2081  	}
  2082  	return nil
  2083  }
  2084  
  2085  // Nat44LbStaticMappingDump defines message 'nat44_lb_static_mapping_dump'.
  2086  type Nat44LbStaticMappingDump struct{}
  2087  
  2088  func (m *Nat44LbStaticMappingDump) Reset()               { *m = Nat44LbStaticMappingDump{} }
  2089  func (*Nat44LbStaticMappingDump) GetMessageName() string { return "nat44_lb_static_mapping_dump" }
  2090  func (*Nat44LbStaticMappingDump) GetCrcString() string   { return "51077d14" }
  2091  func (*Nat44LbStaticMappingDump) GetMessageType() api.MessageType {
  2092  	return api.RequestMessage
  2093  }
  2094  
  2095  func (m *Nat44LbStaticMappingDump) Size() (size int) {
  2096  	if m == nil {
  2097  		return 0
  2098  	}
  2099  	return size
  2100  }
  2101  func (m *Nat44LbStaticMappingDump) Marshal(b []byte) ([]byte, error) {
  2102  	if b == nil {
  2103  		b = make([]byte, m.Size())
  2104  	}
  2105  	buf := codec.NewBuffer(b)
  2106  	return buf.Bytes(), nil
  2107  }
  2108  func (m *Nat44LbStaticMappingDump) Unmarshal(b []byte) error {
  2109  	return nil
  2110  }
  2111  
  2112  // Nat44PluginEnableDisable defines message 'nat44_plugin_enable_disable'.
  2113  // Deprecated: the message will be removed in the future versions
  2114  type Nat44PluginEnableDisable struct {
  2115  	InsideVrf     uint32           `binapi:"u32,name=inside_vrf" json:"inside_vrf,omitempty"`
  2116  	OutsideVrf    uint32           `binapi:"u32,name=outside_vrf" json:"outside_vrf,omitempty"`
  2117  	Users         uint32           `binapi:"u32,name=users" json:"users,omitempty"`
  2118  	UserMemory    uint32           `binapi:"u32,name=user_memory" json:"user_memory,omitempty"`
  2119  	Sessions      uint32           `binapi:"u32,name=sessions" json:"sessions,omitempty"`
  2120  	SessionMemory uint32           `binapi:"u32,name=session_memory" json:"session_memory,omitempty"`
  2121  	UserSessions  uint32           `binapi:"u32,name=user_sessions" json:"user_sessions,omitempty"`
  2122  	Enable        bool             `binapi:"bool,name=enable" json:"enable,omitempty"`
  2123  	Flags         Nat44ConfigFlags `binapi:"nat44_config_flags,name=flags" json:"flags,omitempty"`
  2124  }
  2125  
  2126  func (m *Nat44PluginEnableDisable) Reset()               { *m = Nat44PluginEnableDisable{} }
  2127  func (*Nat44PluginEnableDisable) GetMessageName() string { return "nat44_plugin_enable_disable" }
  2128  func (*Nat44PluginEnableDisable) GetCrcString() string   { return "dea0d501" }
  2129  func (*Nat44PluginEnableDisable) GetMessageType() api.MessageType {
  2130  	return api.RequestMessage
  2131  }
  2132  
  2133  func (m *Nat44PluginEnableDisable) Size() (size int) {
  2134  	if m == nil {
  2135  		return 0
  2136  	}
  2137  	size += 4 // m.InsideVrf
  2138  	size += 4 // m.OutsideVrf
  2139  	size += 4 // m.Users
  2140  	size += 4 // m.UserMemory
  2141  	size += 4 // m.Sessions
  2142  	size += 4 // m.SessionMemory
  2143  	size += 4 // m.UserSessions
  2144  	size += 1 // m.Enable
  2145  	size += 1 // m.Flags
  2146  	return size
  2147  }
  2148  func (m *Nat44PluginEnableDisable) Marshal(b []byte) ([]byte, error) {
  2149  	if b == nil {
  2150  		b = make([]byte, m.Size())
  2151  	}
  2152  	buf := codec.NewBuffer(b)
  2153  	buf.EncodeUint32(m.InsideVrf)
  2154  	buf.EncodeUint32(m.OutsideVrf)
  2155  	buf.EncodeUint32(m.Users)
  2156  	buf.EncodeUint32(m.UserMemory)
  2157  	buf.EncodeUint32(m.Sessions)
  2158  	buf.EncodeUint32(m.SessionMemory)
  2159  	buf.EncodeUint32(m.UserSessions)
  2160  	buf.EncodeBool(m.Enable)
  2161  	buf.EncodeUint8(uint8(m.Flags))
  2162  	return buf.Bytes(), nil
  2163  }
  2164  func (m *Nat44PluginEnableDisable) Unmarshal(b []byte) error {
  2165  	buf := codec.NewBuffer(b)
  2166  	m.InsideVrf = buf.DecodeUint32()
  2167  	m.OutsideVrf = buf.DecodeUint32()
  2168  	m.Users = buf.DecodeUint32()
  2169  	m.UserMemory = buf.DecodeUint32()
  2170  	m.Sessions = buf.DecodeUint32()
  2171  	m.SessionMemory = buf.DecodeUint32()
  2172  	m.UserSessions = buf.DecodeUint32()
  2173  	m.Enable = buf.DecodeBool()
  2174  	m.Flags = Nat44ConfigFlags(buf.DecodeUint8())
  2175  	return nil
  2176  }
  2177  
  2178  // Nat44PluginEnableDisableReply defines message 'nat44_plugin_enable_disable_reply'.
  2179  // Deprecated: the message will be removed in the future versions
  2180  type Nat44PluginEnableDisableReply struct {
  2181  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2182  }
  2183  
  2184  func (m *Nat44PluginEnableDisableReply) Reset() { *m = Nat44PluginEnableDisableReply{} }
  2185  func (*Nat44PluginEnableDisableReply) GetMessageName() string {
  2186  	return "nat44_plugin_enable_disable_reply"
  2187  }
  2188  func (*Nat44PluginEnableDisableReply) GetCrcString() string { return "e8d4e804" }
  2189  func (*Nat44PluginEnableDisableReply) GetMessageType() api.MessageType {
  2190  	return api.ReplyMessage
  2191  }
  2192  
  2193  func (m *Nat44PluginEnableDisableReply) Size() (size int) {
  2194  	if m == nil {
  2195  		return 0
  2196  	}
  2197  	size += 4 // m.Retval
  2198  	return size
  2199  }
  2200  func (m *Nat44PluginEnableDisableReply) Marshal(b []byte) ([]byte, error) {
  2201  	if b == nil {
  2202  		b = make([]byte, m.Size())
  2203  	}
  2204  	buf := codec.NewBuffer(b)
  2205  	buf.EncodeInt32(m.Retval)
  2206  	return buf.Bytes(), nil
  2207  }
  2208  func (m *Nat44PluginEnableDisableReply) Unmarshal(b []byte) error {
  2209  	buf := codec.NewBuffer(b)
  2210  	m.Retval = buf.DecodeInt32()
  2211  	return nil
  2212  }
  2213  
  2214  // Nat44SessionCleanup defines message 'nat44_session_cleanup'.
  2215  // Deprecated: the message will be removed in the future versions
  2216  type Nat44SessionCleanup struct{}
  2217  
  2218  func (m *Nat44SessionCleanup) Reset()               { *m = Nat44SessionCleanup{} }
  2219  func (*Nat44SessionCleanup) GetMessageName() string { return "nat44_session_cleanup" }
  2220  func (*Nat44SessionCleanup) GetCrcString() string   { return "51077d14" }
  2221  func (*Nat44SessionCleanup) GetMessageType() api.MessageType {
  2222  	return api.RequestMessage
  2223  }
  2224  
  2225  func (m *Nat44SessionCleanup) Size() (size int) {
  2226  	if m == nil {
  2227  		return 0
  2228  	}
  2229  	return size
  2230  }
  2231  func (m *Nat44SessionCleanup) Marshal(b []byte) ([]byte, error) {
  2232  	if b == nil {
  2233  		b = make([]byte, m.Size())
  2234  	}
  2235  	buf := codec.NewBuffer(b)
  2236  	return buf.Bytes(), nil
  2237  }
  2238  func (m *Nat44SessionCleanup) Unmarshal(b []byte) error {
  2239  	return nil
  2240  }
  2241  
  2242  // Nat44SessionCleanupReply defines message 'nat44_session_cleanup_reply'.
  2243  // Deprecated: the message will be removed in the future versions
  2244  type Nat44SessionCleanupReply struct {
  2245  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2246  }
  2247  
  2248  func (m *Nat44SessionCleanupReply) Reset()               { *m = Nat44SessionCleanupReply{} }
  2249  func (*Nat44SessionCleanupReply) GetMessageName() string { return "nat44_session_cleanup_reply" }
  2250  func (*Nat44SessionCleanupReply) GetCrcString() string   { return "e8d4e804" }
  2251  func (*Nat44SessionCleanupReply) GetMessageType() api.MessageType {
  2252  	return api.ReplyMessage
  2253  }
  2254  
  2255  func (m *Nat44SessionCleanupReply) Size() (size int) {
  2256  	if m == nil {
  2257  		return 0
  2258  	}
  2259  	size += 4 // m.Retval
  2260  	return size
  2261  }
  2262  func (m *Nat44SessionCleanupReply) Marshal(b []byte) ([]byte, error) {
  2263  	if b == nil {
  2264  		b = make([]byte, m.Size())
  2265  	}
  2266  	buf := codec.NewBuffer(b)
  2267  	buf.EncodeInt32(m.Retval)
  2268  	return buf.Bytes(), nil
  2269  }
  2270  func (m *Nat44SessionCleanupReply) Unmarshal(b []byte) error {
  2271  	buf := codec.NewBuffer(b)
  2272  	m.Retval = buf.DecodeInt32()
  2273  	return nil
  2274  }
  2275  
  2276  // Nat44SetSessionLimit defines message 'nat44_set_session_limit'.
  2277  type Nat44SetSessionLimit struct {
  2278  	SessionLimit uint32 `binapi:"u32,name=session_limit" json:"session_limit,omitempty"`
  2279  	VrfID        uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  2280  }
  2281  
  2282  func (m *Nat44SetSessionLimit) Reset()               { *m = Nat44SetSessionLimit{} }
  2283  func (*Nat44SetSessionLimit) GetMessageName() string { return "nat44_set_session_limit" }
  2284  func (*Nat44SetSessionLimit) GetCrcString() string   { return "8899bbb1" }
  2285  func (*Nat44SetSessionLimit) GetMessageType() api.MessageType {
  2286  	return api.RequestMessage
  2287  }
  2288  
  2289  func (m *Nat44SetSessionLimit) Size() (size int) {
  2290  	if m == nil {
  2291  		return 0
  2292  	}
  2293  	size += 4 // m.SessionLimit
  2294  	size += 4 // m.VrfID
  2295  	return size
  2296  }
  2297  func (m *Nat44SetSessionLimit) Marshal(b []byte) ([]byte, error) {
  2298  	if b == nil {
  2299  		b = make([]byte, m.Size())
  2300  	}
  2301  	buf := codec.NewBuffer(b)
  2302  	buf.EncodeUint32(m.SessionLimit)
  2303  	buf.EncodeUint32(m.VrfID)
  2304  	return buf.Bytes(), nil
  2305  }
  2306  func (m *Nat44SetSessionLimit) Unmarshal(b []byte) error {
  2307  	buf := codec.NewBuffer(b)
  2308  	m.SessionLimit = buf.DecodeUint32()
  2309  	m.VrfID = buf.DecodeUint32()
  2310  	return nil
  2311  }
  2312  
  2313  // Nat44SetSessionLimitReply defines message 'nat44_set_session_limit_reply'.
  2314  type Nat44SetSessionLimitReply struct {
  2315  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2316  }
  2317  
  2318  func (m *Nat44SetSessionLimitReply) Reset()               { *m = Nat44SetSessionLimitReply{} }
  2319  func (*Nat44SetSessionLimitReply) GetMessageName() string { return "nat44_set_session_limit_reply" }
  2320  func (*Nat44SetSessionLimitReply) GetCrcString() string   { return "e8d4e804" }
  2321  func (*Nat44SetSessionLimitReply) GetMessageType() api.MessageType {
  2322  	return api.ReplyMessage
  2323  }
  2324  
  2325  func (m *Nat44SetSessionLimitReply) Size() (size int) {
  2326  	if m == nil {
  2327  		return 0
  2328  	}
  2329  	size += 4 // m.Retval
  2330  	return size
  2331  }
  2332  func (m *Nat44SetSessionLimitReply) Marshal(b []byte) ([]byte, error) {
  2333  	if b == nil {
  2334  		b = make([]byte, m.Size())
  2335  	}
  2336  	buf := codec.NewBuffer(b)
  2337  	buf.EncodeInt32(m.Retval)
  2338  	return buf.Bytes(), nil
  2339  }
  2340  func (m *Nat44SetSessionLimitReply) Unmarshal(b []byte) error {
  2341  	buf := codec.NewBuffer(b)
  2342  	m.Retval = buf.DecodeInt32()
  2343  	return nil
  2344  }
  2345  
  2346  // Nat44ShowRunningConfig defines message 'nat44_show_running_config'.
  2347  // InProgress: the message form may change in the future versions
  2348  type Nat44ShowRunningConfig struct{}
  2349  
  2350  func (m *Nat44ShowRunningConfig) Reset()               { *m = Nat44ShowRunningConfig{} }
  2351  func (*Nat44ShowRunningConfig) GetMessageName() string { return "nat44_show_running_config" }
  2352  func (*Nat44ShowRunningConfig) GetCrcString() string   { return "51077d14" }
  2353  func (*Nat44ShowRunningConfig) GetMessageType() api.MessageType {
  2354  	return api.RequestMessage
  2355  }
  2356  
  2357  func (m *Nat44ShowRunningConfig) Size() (size int) {
  2358  	if m == nil {
  2359  		return 0
  2360  	}
  2361  	return size
  2362  }
  2363  func (m *Nat44ShowRunningConfig) Marshal(b []byte) ([]byte, error) {
  2364  	if b == nil {
  2365  		b = make([]byte, m.Size())
  2366  	}
  2367  	buf := codec.NewBuffer(b)
  2368  	return buf.Bytes(), nil
  2369  }
  2370  func (m *Nat44ShowRunningConfig) Unmarshal(b []byte) error {
  2371  	return nil
  2372  }
  2373  
  2374  // Nat44ShowRunningConfigReply defines message 'nat44_show_running_config_reply'.
  2375  // InProgress: the message form may change in the future versions
  2376  type Nat44ShowRunningConfigReply struct {
  2377  	Retval              int32                 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2378  	InsideVrf           uint32                `binapi:"u32,name=inside_vrf" json:"inside_vrf,omitempty"`
  2379  	OutsideVrf          uint32                `binapi:"u32,name=outside_vrf" json:"outside_vrf,omitempty"`
  2380  	Users               uint32                `binapi:"u32,name=users" json:"users,omitempty"`
  2381  	Sessions            uint32                `binapi:"u32,name=sessions" json:"sessions,omitempty"`
  2382  	UserSessions        uint32                `binapi:"u32,name=user_sessions" json:"user_sessions,omitempty"`
  2383  	UserBuckets         uint32                `binapi:"u32,name=user_buckets" json:"user_buckets,omitempty"`
  2384  	TranslationBuckets  uint32                `binapi:"u32,name=translation_buckets" json:"translation_buckets,omitempty"`
  2385  	ForwardingEnabled   bool                  `binapi:"bool,name=forwarding_enabled" json:"forwarding_enabled,omitempty"`
  2386  	IpfixLoggingEnabled bool                  `binapi:"bool,name=ipfix_logging_enabled" json:"ipfix_logging_enabled,omitempty"`
  2387  	Timeouts            nat_types.NatTimeouts `binapi:"nat_timeouts,name=timeouts" json:"timeouts,omitempty"`
  2388  	LogLevel            nat_types.NatLogLevel `binapi:"nat_log_level,name=log_level" json:"log_level,omitempty"`
  2389  	Flags               Nat44ConfigFlags      `binapi:"nat44_config_flags,name=flags" json:"flags,omitempty"`
  2390  }
  2391  
  2392  func (m *Nat44ShowRunningConfigReply) Reset()               { *m = Nat44ShowRunningConfigReply{} }
  2393  func (*Nat44ShowRunningConfigReply) GetMessageName() string { return "nat44_show_running_config_reply" }
  2394  func (*Nat44ShowRunningConfigReply) GetCrcString() string   { return "93d8e267" }
  2395  func (*Nat44ShowRunningConfigReply) GetMessageType() api.MessageType {
  2396  	return api.ReplyMessage
  2397  }
  2398  
  2399  func (m *Nat44ShowRunningConfigReply) Size() (size int) {
  2400  	if m == nil {
  2401  		return 0
  2402  	}
  2403  	size += 4 // m.Retval
  2404  	size += 4 // m.InsideVrf
  2405  	size += 4 // m.OutsideVrf
  2406  	size += 4 // m.Users
  2407  	size += 4 // m.Sessions
  2408  	size += 4 // m.UserSessions
  2409  	size += 4 // m.UserBuckets
  2410  	size += 4 // m.TranslationBuckets
  2411  	size += 1 // m.ForwardingEnabled
  2412  	size += 1 // m.IpfixLoggingEnabled
  2413  	size += 4 // m.Timeouts.UDP
  2414  	size += 4 // m.Timeouts.TCPEstablished
  2415  	size += 4 // m.Timeouts.TCPTransitory
  2416  	size += 4 // m.Timeouts.ICMP
  2417  	size += 1 // m.LogLevel
  2418  	size += 1 // m.Flags
  2419  	return size
  2420  }
  2421  func (m *Nat44ShowRunningConfigReply) Marshal(b []byte) ([]byte, error) {
  2422  	if b == nil {
  2423  		b = make([]byte, m.Size())
  2424  	}
  2425  	buf := codec.NewBuffer(b)
  2426  	buf.EncodeInt32(m.Retval)
  2427  	buf.EncodeUint32(m.InsideVrf)
  2428  	buf.EncodeUint32(m.OutsideVrf)
  2429  	buf.EncodeUint32(m.Users)
  2430  	buf.EncodeUint32(m.Sessions)
  2431  	buf.EncodeUint32(m.UserSessions)
  2432  	buf.EncodeUint32(m.UserBuckets)
  2433  	buf.EncodeUint32(m.TranslationBuckets)
  2434  	buf.EncodeBool(m.ForwardingEnabled)
  2435  	buf.EncodeBool(m.IpfixLoggingEnabled)
  2436  	buf.EncodeUint32(m.Timeouts.UDP)
  2437  	buf.EncodeUint32(m.Timeouts.TCPEstablished)
  2438  	buf.EncodeUint32(m.Timeouts.TCPTransitory)
  2439  	buf.EncodeUint32(m.Timeouts.ICMP)
  2440  	buf.EncodeUint8(uint8(m.LogLevel))
  2441  	buf.EncodeUint8(uint8(m.Flags))
  2442  	return buf.Bytes(), nil
  2443  }
  2444  func (m *Nat44ShowRunningConfigReply) Unmarshal(b []byte) error {
  2445  	buf := codec.NewBuffer(b)
  2446  	m.Retval = buf.DecodeInt32()
  2447  	m.InsideVrf = buf.DecodeUint32()
  2448  	m.OutsideVrf = buf.DecodeUint32()
  2449  	m.Users = buf.DecodeUint32()
  2450  	m.Sessions = buf.DecodeUint32()
  2451  	m.UserSessions = buf.DecodeUint32()
  2452  	m.UserBuckets = buf.DecodeUint32()
  2453  	m.TranslationBuckets = buf.DecodeUint32()
  2454  	m.ForwardingEnabled = buf.DecodeBool()
  2455  	m.IpfixLoggingEnabled = buf.DecodeBool()
  2456  	m.Timeouts.UDP = buf.DecodeUint32()
  2457  	m.Timeouts.TCPEstablished = buf.DecodeUint32()
  2458  	m.Timeouts.TCPTransitory = buf.DecodeUint32()
  2459  	m.Timeouts.ICMP = buf.DecodeUint32()
  2460  	m.LogLevel = nat_types.NatLogLevel(buf.DecodeUint8())
  2461  	m.Flags = Nat44ConfigFlags(buf.DecodeUint8())
  2462  	return nil
  2463  }
  2464  
  2465  // Nat44StaticMappingDetails defines message 'nat44_static_mapping_details'.
  2466  type Nat44StaticMappingDetails struct {
  2467  	Flags             nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  2468  	LocalIPAddress    ip_types.IP4Address            `binapi:"ip4_address,name=local_ip_address" json:"local_ip_address,omitempty"`
  2469  	ExternalIPAddress ip_types.IP4Address            `binapi:"ip4_address,name=external_ip_address" json:"external_ip_address,omitempty"`
  2470  	Protocol          uint8                          `binapi:"u8,name=protocol" json:"protocol,omitempty"`
  2471  	LocalPort         uint16                         `binapi:"u16,name=local_port" json:"local_port,omitempty"`
  2472  	ExternalPort      uint16                         `binapi:"u16,name=external_port" json:"external_port,omitempty"`
  2473  	ExternalSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=external_sw_if_index" json:"external_sw_if_index,omitempty"`
  2474  	VrfID             uint32                         `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  2475  	Tag               string                         `binapi:"string[64],name=tag" json:"tag,omitempty"`
  2476  }
  2477  
  2478  func (m *Nat44StaticMappingDetails) Reset()               { *m = Nat44StaticMappingDetails{} }
  2479  func (*Nat44StaticMappingDetails) GetMessageName() string { return "nat44_static_mapping_details" }
  2480  func (*Nat44StaticMappingDetails) GetCrcString() string   { return "06cb40b2" }
  2481  func (*Nat44StaticMappingDetails) GetMessageType() api.MessageType {
  2482  	return api.ReplyMessage
  2483  }
  2484  
  2485  func (m *Nat44StaticMappingDetails) Size() (size int) {
  2486  	if m == nil {
  2487  		return 0
  2488  	}
  2489  	size += 1     // m.Flags
  2490  	size += 1 * 4 // m.LocalIPAddress
  2491  	size += 1 * 4 // m.ExternalIPAddress
  2492  	size += 1     // m.Protocol
  2493  	size += 2     // m.LocalPort
  2494  	size += 2     // m.ExternalPort
  2495  	size += 4     // m.ExternalSwIfIndex
  2496  	size += 4     // m.VrfID
  2497  	size += 64    // m.Tag
  2498  	return size
  2499  }
  2500  func (m *Nat44StaticMappingDetails) Marshal(b []byte) ([]byte, error) {
  2501  	if b == nil {
  2502  		b = make([]byte, m.Size())
  2503  	}
  2504  	buf := codec.NewBuffer(b)
  2505  	buf.EncodeUint8(uint8(m.Flags))
  2506  	buf.EncodeBytes(m.LocalIPAddress[:], 4)
  2507  	buf.EncodeBytes(m.ExternalIPAddress[:], 4)
  2508  	buf.EncodeUint8(m.Protocol)
  2509  	buf.EncodeUint16(m.LocalPort)
  2510  	buf.EncodeUint16(m.ExternalPort)
  2511  	buf.EncodeUint32(uint32(m.ExternalSwIfIndex))
  2512  	buf.EncodeUint32(m.VrfID)
  2513  	buf.EncodeString(m.Tag, 64)
  2514  	return buf.Bytes(), nil
  2515  }
  2516  func (m *Nat44StaticMappingDetails) Unmarshal(b []byte) error {
  2517  	buf := codec.NewBuffer(b)
  2518  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  2519  	copy(m.LocalIPAddress[:], buf.DecodeBytes(4))
  2520  	copy(m.ExternalIPAddress[:], buf.DecodeBytes(4))
  2521  	m.Protocol = buf.DecodeUint8()
  2522  	m.LocalPort = buf.DecodeUint16()
  2523  	m.ExternalPort = buf.DecodeUint16()
  2524  	m.ExternalSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  2525  	m.VrfID = buf.DecodeUint32()
  2526  	m.Tag = buf.DecodeString(64)
  2527  	return nil
  2528  }
  2529  
  2530  // Nat44StaticMappingDump defines message 'nat44_static_mapping_dump'.
  2531  type Nat44StaticMappingDump struct{}
  2532  
  2533  func (m *Nat44StaticMappingDump) Reset()               { *m = Nat44StaticMappingDump{} }
  2534  func (*Nat44StaticMappingDump) GetMessageName() string { return "nat44_static_mapping_dump" }
  2535  func (*Nat44StaticMappingDump) GetCrcString() string   { return "51077d14" }
  2536  func (*Nat44StaticMappingDump) GetMessageType() api.MessageType {
  2537  	return api.RequestMessage
  2538  }
  2539  
  2540  func (m *Nat44StaticMappingDump) Size() (size int) {
  2541  	if m == nil {
  2542  		return 0
  2543  	}
  2544  	return size
  2545  }
  2546  func (m *Nat44StaticMappingDump) Marshal(b []byte) ([]byte, error) {
  2547  	if b == nil {
  2548  		b = make([]byte, m.Size())
  2549  	}
  2550  	buf := codec.NewBuffer(b)
  2551  	return buf.Bytes(), nil
  2552  }
  2553  func (m *Nat44StaticMappingDump) Unmarshal(b []byte) error {
  2554  	return nil
  2555  }
  2556  
  2557  // Nat44UserDetails defines message 'nat44_user_details'.
  2558  type Nat44UserDetails struct {
  2559  	VrfID           uint32              `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  2560  	IPAddress       ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  2561  	Nsessions       uint32              `binapi:"u32,name=nsessions" json:"nsessions,omitempty"`
  2562  	Nstaticsessions uint32              `binapi:"u32,name=nstaticsessions" json:"nstaticsessions,omitempty"`
  2563  }
  2564  
  2565  func (m *Nat44UserDetails) Reset()               { *m = Nat44UserDetails{} }
  2566  func (*Nat44UserDetails) GetMessageName() string { return "nat44_user_details" }
  2567  func (*Nat44UserDetails) GetCrcString() string   { return "355896c2" }
  2568  func (*Nat44UserDetails) GetMessageType() api.MessageType {
  2569  	return api.ReplyMessage
  2570  }
  2571  
  2572  func (m *Nat44UserDetails) Size() (size int) {
  2573  	if m == nil {
  2574  		return 0
  2575  	}
  2576  	size += 4     // m.VrfID
  2577  	size += 1 * 4 // m.IPAddress
  2578  	size += 4     // m.Nsessions
  2579  	size += 4     // m.Nstaticsessions
  2580  	return size
  2581  }
  2582  func (m *Nat44UserDetails) Marshal(b []byte) ([]byte, error) {
  2583  	if b == nil {
  2584  		b = make([]byte, m.Size())
  2585  	}
  2586  	buf := codec.NewBuffer(b)
  2587  	buf.EncodeUint32(m.VrfID)
  2588  	buf.EncodeBytes(m.IPAddress[:], 4)
  2589  	buf.EncodeUint32(m.Nsessions)
  2590  	buf.EncodeUint32(m.Nstaticsessions)
  2591  	return buf.Bytes(), nil
  2592  }
  2593  func (m *Nat44UserDetails) Unmarshal(b []byte) error {
  2594  	buf := codec.NewBuffer(b)
  2595  	m.VrfID = buf.DecodeUint32()
  2596  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  2597  	m.Nsessions = buf.DecodeUint32()
  2598  	m.Nstaticsessions = buf.DecodeUint32()
  2599  	return nil
  2600  }
  2601  
  2602  // Nat44UserDump defines message 'nat44_user_dump'.
  2603  type Nat44UserDump struct{}
  2604  
  2605  func (m *Nat44UserDump) Reset()               { *m = Nat44UserDump{} }
  2606  func (*Nat44UserDump) GetMessageName() string { return "nat44_user_dump" }
  2607  func (*Nat44UserDump) GetCrcString() string   { return "51077d14" }
  2608  func (*Nat44UserDump) GetMessageType() api.MessageType {
  2609  	return api.RequestMessage
  2610  }
  2611  
  2612  func (m *Nat44UserDump) Size() (size int) {
  2613  	if m == nil {
  2614  		return 0
  2615  	}
  2616  	return size
  2617  }
  2618  func (m *Nat44UserDump) Marshal(b []byte) ([]byte, error) {
  2619  	if b == nil {
  2620  		b = make([]byte, m.Size())
  2621  	}
  2622  	buf := codec.NewBuffer(b)
  2623  	return buf.Bytes(), nil
  2624  }
  2625  func (m *Nat44UserDump) Unmarshal(b []byte) error {
  2626  	return nil
  2627  }
  2628  
  2629  // Nat44UserSessionDetails defines message 'nat44_user_session_details'.
  2630  type Nat44UserSessionDetails struct {
  2631  	OutsideIPAddress  ip_types.IP4Address      `binapi:"ip4_address,name=outside_ip_address" json:"outside_ip_address,omitempty"`
  2632  	OutsidePort       uint16                   `binapi:"u16,name=outside_port" json:"outside_port,omitempty"`
  2633  	InsideIPAddress   ip_types.IP4Address      `binapi:"ip4_address,name=inside_ip_address" json:"inside_ip_address,omitempty"`
  2634  	InsidePort        uint16                   `binapi:"u16,name=inside_port" json:"inside_port,omitempty"`
  2635  	Protocol          uint16                   `binapi:"u16,name=protocol" json:"protocol,omitempty"`
  2636  	Flags             nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  2637  	LastHeard         uint64                   `binapi:"u64,name=last_heard" json:"last_heard,omitempty"`
  2638  	TotalBytes        uint64                   `binapi:"u64,name=total_bytes" json:"total_bytes,omitempty"`
  2639  	TotalPkts         uint32                   `binapi:"u32,name=total_pkts" json:"total_pkts,omitempty"`
  2640  	ExtHostAddress    ip_types.IP4Address      `binapi:"ip4_address,name=ext_host_address" json:"ext_host_address,omitempty"`
  2641  	ExtHostPort       uint16                   `binapi:"u16,name=ext_host_port" json:"ext_host_port,omitempty"`
  2642  	ExtHostNatAddress ip_types.IP4Address      `binapi:"ip4_address,name=ext_host_nat_address" json:"ext_host_nat_address,omitempty"`
  2643  	ExtHostNatPort    uint16                   `binapi:"u16,name=ext_host_nat_port" json:"ext_host_nat_port,omitempty"`
  2644  }
  2645  
  2646  func (m *Nat44UserSessionDetails) Reset()               { *m = Nat44UserSessionDetails{} }
  2647  func (*Nat44UserSessionDetails) GetMessageName() string { return "nat44_user_session_details" }
  2648  func (*Nat44UserSessionDetails) GetCrcString() string   { return "2cf6e16d" }
  2649  func (*Nat44UserSessionDetails) GetMessageType() api.MessageType {
  2650  	return api.ReplyMessage
  2651  }
  2652  
  2653  func (m *Nat44UserSessionDetails) Size() (size int) {
  2654  	if m == nil {
  2655  		return 0
  2656  	}
  2657  	size += 1 * 4 // m.OutsideIPAddress
  2658  	size += 2     // m.OutsidePort
  2659  	size += 1 * 4 // m.InsideIPAddress
  2660  	size += 2     // m.InsidePort
  2661  	size += 2     // m.Protocol
  2662  	size += 1     // m.Flags
  2663  	size += 8     // m.LastHeard
  2664  	size += 8     // m.TotalBytes
  2665  	size += 4     // m.TotalPkts
  2666  	size += 1 * 4 // m.ExtHostAddress
  2667  	size += 2     // m.ExtHostPort
  2668  	size += 1 * 4 // m.ExtHostNatAddress
  2669  	size += 2     // m.ExtHostNatPort
  2670  	return size
  2671  }
  2672  func (m *Nat44UserSessionDetails) Marshal(b []byte) ([]byte, error) {
  2673  	if b == nil {
  2674  		b = make([]byte, m.Size())
  2675  	}
  2676  	buf := codec.NewBuffer(b)
  2677  	buf.EncodeBytes(m.OutsideIPAddress[:], 4)
  2678  	buf.EncodeUint16(m.OutsidePort)
  2679  	buf.EncodeBytes(m.InsideIPAddress[:], 4)
  2680  	buf.EncodeUint16(m.InsidePort)
  2681  	buf.EncodeUint16(m.Protocol)
  2682  	buf.EncodeUint8(uint8(m.Flags))
  2683  	buf.EncodeUint64(m.LastHeard)
  2684  	buf.EncodeUint64(m.TotalBytes)
  2685  	buf.EncodeUint32(m.TotalPkts)
  2686  	buf.EncodeBytes(m.ExtHostAddress[:], 4)
  2687  	buf.EncodeUint16(m.ExtHostPort)
  2688  	buf.EncodeBytes(m.ExtHostNatAddress[:], 4)
  2689  	buf.EncodeUint16(m.ExtHostNatPort)
  2690  	return buf.Bytes(), nil
  2691  }
  2692  func (m *Nat44UserSessionDetails) Unmarshal(b []byte) error {
  2693  	buf := codec.NewBuffer(b)
  2694  	copy(m.OutsideIPAddress[:], buf.DecodeBytes(4))
  2695  	m.OutsidePort = buf.DecodeUint16()
  2696  	copy(m.InsideIPAddress[:], buf.DecodeBytes(4))
  2697  	m.InsidePort = buf.DecodeUint16()
  2698  	m.Protocol = buf.DecodeUint16()
  2699  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  2700  	m.LastHeard = buf.DecodeUint64()
  2701  	m.TotalBytes = buf.DecodeUint64()
  2702  	m.TotalPkts = buf.DecodeUint32()
  2703  	copy(m.ExtHostAddress[:], buf.DecodeBytes(4))
  2704  	m.ExtHostPort = buf.DecodeUint16()
  2705  	copy(m.ExtHostNatAddress[:], buf.DecodeBytes(4))
  2706  	m.ExtHostNatPort = buf.DecodeUint16()
  2707  	return nil
  2708  }
  2709  
  2710  // Nat44UserSessionDump defines message 'nat44_user_session_dump'.
  2711  type Nat44UserSessionDump struct {
  2712  	IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  2713  	VrfID     uint32              `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  2714  }
  2715  
  2716  func (m *Nat44UserSessionDump) Reset()               { *m = Nat44UserSessionDump{} }
  2717  func (*Nat44UserSessionDump) GetMessageName() string { return "nat44_user_session_dump" }
  2718  func (*Nat44UserSessionDump) GetCrcString() string   { return "e1899c98" }
  2719  func (*Nat44UserSessionDump) GetMessageType() api.MessageType {
  2720  	return api.RequestMessage
  2721  }
  2722  
  2723  func (m *Nat44UserSessionDump) Size() (size int) {
  2724  	if m == nil {
  2725  		return 0
  2726  	}
  2727  	size += 1 * 4 // m.IPAddress
  2728  	size += 4     // m.VrfID
  2729  	return size
  2730  }
  2731  func (m *Nat44UserSessionDump) Marshal(b []byte) ([]byte, error) {
  2732  	if b == nil {
  2733  		b = make([]byte, m.Size())
  2734  	}
  2735  	buf := codec.NewBuffer(b)
  2736  	buf.EncodeBytes(m.IPAddress[:], 4)
  2737  	buf.EncodeUint32(m.VrfID)
  2738  	return buf.Bytes(), nil
  2739  }
  2740  func (m *Nat44UserSessionDump) Unmarshal(b []byte) error {
  2741  	buf := codec.NewBuffer(b)
  2742  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  2743  	m.VrfID = buf.DecodeUint32()
  2744  	return nil
  2745  }
  2746  
  2747  // Nat44UserSessionV2Details defines message 'nat44_user_session_v2_details'.
  2748  // InProgress: the message form may change in the future versions
  2749  type Nat44UserSessionV2Details struct {
  2750  	OutsideIPAddress  ip_types.IP4Address      `binapi:"ip4_address,name=outside_ip_address" json:"outside_ip_address,omitempty"`
  2751  	OutsidePort       uint16                   `binapi:"u16,name=outside_port" json:"outside_port,omitempty"`
  2752  	InsideIPAddress   ip_types.IP4Address      `binapi:"ip4_address,name=inside_ip_address" json:"inside_ip_address,omitempty"`
  2753  	InsidePort        uint16                   `binapi:"u16,name=inside_port" json:"inside_port,omitempty"`
  2754  	Protocol          uint16                   `binapi:"u16,name=protocol" json:"protocol,omitempty"`
  2755  	Flags             nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  2756  	LastHeard         uint64                   `binapi:"u64,name=last_heard" json:"last_heard,omitempty"`
  2757  	TotalBytes        uint64                   `binapi:"u64,name=total_bytes" json:"total_bytes,omitempty"`
  2758  	TotalPkts         uint32                   `binapi:"u32,name=total_pkts" json:"total_pkts,omitempty"`
  2759  	ExtHostAddress    ip_types.IP4Address      `binapi:"ip4_address,name=ext_host_address" json:"ext_host_address,omitempty"`
  2760  	ExtHostPort       uint16                   `binapi:"u16,name=ext_host_port" json:"ext_host_port,omitempty"`
  2761  	ExtHostNatAddress ip_types.IP4Address      `binapi:"ip4_address,name=ext_host_nat_address" json:"ext_host_nat_address,omitempty"`
  2762  	ExtHostNatPort    uint16                   `binapi:"u16,name=ext_host_nat_port" json:"ext_host_nat_port,omitempty"`
  2763  	IsTimedOut        bool                     `binapi:"bool,name=is_timed_out" json:"is_timed_out,omitempty"`
  2764  }
  2765  
  2766  func (m *Nat44UserSessionV2Details) Reset()               { *m = Nat44UserSessionV2Details{} }
  2767  func (*Nat44UserSessionV2Details) GetMessageName() string { return "nat44_user_session_v2_details" }
  2768  func (*Nat44UserSessionV2Details) GetCrcString() string   { return "fd42b729" }
  2769  func (*Nat44UserSessionV2Details) GetMessageType() api.MessageType {
  2770  	return api.ReplyMessage
  2771  }
  2772  
  2773  func (m *Nat44UserSessionV2Details) Size() (size int) {
  2774  	if m == nil {
  2775  		return 0
  2776  	}
  2777  	size += 1 * 4 // m.OutsideIPAddress
  2778  	size += 2     // m.OutsidePort
  2779  	size += 1 * 4 // m.InsideIPAddress
  2780  	size += 2     // m.InsidePort
  2781  	size += 2     // m.Protocol
  2782  	size += 1     // m.Flags
  2783  	size += 8     // m.LastHeard
  2784  	size += 8     // m.TotalBytes
  2785  	size += 4     // m.TotalPkts
  2786  	size += 1 * 4 // m.ExtHostAddress
  2787  	size += 2     // m.ExtHostPort
  2788  	size += 1 * 4 // m.ExtHostNatAddress
  2789  	size += 2     // m.ExtHostNatPort
  2790  	size += 1     // m.IsTimedOut
  2791  	return size
  2792  }
  2793  func (m *Nat44UserSessionV2Details) Marshal(b []byte) ([]byte, error) {
  2794  	if b == nil {
  2795  		b = make([]byte, m.Size())
  2796  	}
  2797  	buf := codec.NewBuffer(b)
  2798  	buf.EncodeBytes(m.OutsideIPAddress[:], 4)
  2799  	buf.EncodeUint16(m.OutsidePort)
  2800  	buf.EncodeBytes(m.InsideIPAddress[:], 4)
  2801  	buf.EncodeUint16(m.InsidePort)
  2802  	buf.EncodeUint16(m.Protocol)
  2803  	buf.EncodeUint8(uint8(m.Flags))
  2804  	buf.EncodeUint64(m.LastHeard)
  2805  	buf.EncodeUint64(m.TotalBytes)
  2806  	buf.EncodeUint32(m.TotalPkts)
  2807  	buf.EncodeBytes(m.ExtHostAddress[:], 4)
  2808  	buf.EncodeUint16(m.ExtHostPort)
  2809  	buf.EncodeBytes(m.ExtHostNatAddress[:], 4)
  2810  	buf.EncodeUint16(m.ExtHostNatPort)
  2811  	buf.EncodeBool(m.IsTimedOut)
  2812  	return buf.Bytes(), nil
  2813  }
  2814  func (m *Nat44UserSessionV2Details) Unmarshal(b []byte) error {
  2815  	buf := codec.NewBuffer(b)
  2816  	copy(m.OutsideIPAddress[:], buf.DecodeBytes(4))
  2817  	m.OutsidePort = buf.DecodeUint16()
  2818  	copy(m.InsideIPAddress[:], buf.DecodeBytes(4))
  2819  	m.InsidePort = buf.DecodeUint16()
  2820  	m.Protocol = buf.DecodeUint16()
  2821  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  2822  	m.LastHeard = buf.DecodeUint64()
  2823  	m.TotalBytes = buf.DecodeUint64()
  2824  	m.TotalPkts = buf.DecodeUint32()
  2825  	copy(m.ExtHostAddress[:], buf.DecodeBytes(4))
  2826  	m.ExtHostPort = buf.DecodeUint16()
  2827  	copy(m.ExtHostNatAddress[:], buf.DecodeBytes(4))
  2828  	m.ExtHostNatPort = buf.DecodeUint16()
  2829  	m.IsTimedOut = buf.DecodeBool()
  2830  	return nil
  2831  }
  2832  
  2833  // Nat44UserSessionV2Dump defines message 'nat44_user_session_v2_dump'.
  2834  // InProgress: the message form may change in the future versions
  2835  type Nat44UserSessionV2Dump struct {
  2836  	IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  2837  	VrfID     uint32              `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  2838  }
  2839  
  2840  func (m *Nat44UserSessionV2Dump) Reset()               { *m = Nat44UserSessionV2Dump{} }
  2841  func (*Nat44UserSessionV2Dump) GetMessageName() string { return "nat44_user_session_v2_dump" }
  2842  func (*Nat44UserSessionV2Dump) GetCrcString() string   { return "e1899c98" }
  2843  func (*Nat44UserSessionV2Dump) GetMessageType() api.MessageType {
  2844  	return api.RequestMessage
  2845  }
  2846  
  2847  func (m *Nat44UserSessionV2Dump) Size() (size int) {
  2848  	if m == nil {
  2849  		return 0
  2850  	}
  2851  	size += 1 * 4 // m.IPAddress
  2852  	size += 4     // m.VrfID
  2853  	return size
  2854  }
  2855  func (m *Nat44UserSessionV2Dump) Marshal(b []byte) ([]byte, error) {
  2856  	if b == nil {
  2857  		b = make([]byte, m.Size())
  2858  	}
  2859  	buf := codec.NewBuffer(b)
  2860  	buf.EncodeBytes(m.IPAddress[:], 4)
  2861  	buf.EncodeUint32(m.VrfID)
  2862  	return buf.Bytes(), nil
  2863  }
  2864  func (m *Nat44UserSessionV2Dump) Unmarshal(b []byte) error {
  2865  	buf := codec.NewBuffer(b)
  2866  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  2867  	m.VrfID = buf.DecodeUint32()
  2868  	return nil
  2869  }
  2870  
  2871  // NatControlPing defines message 'nat_control_ping'.
  2872  // Deprecated: the message will be removed in the future versions
  2873  type NatControlPing struct{}
  2874  
  2875  func (m *NatControlPing) Reset()               { *m = NatControlPing{} }
  2876  func (*NatControlPing) GetMessageName() string { return "nat_control_ping" }
  2877  func (*NatControlPing) GetCrcString() string   { return "51077d14" }
  2878  func (*NatControlPing) GetMessageType() api.MessageType {
  2879  	return api.RequestMessage
  2880  }
  2881  
  2882  func (m *NatControlPing) Size() (size int) {
  2883  	if m == nil {
  2884  		return 0
  2885  	}
  2886  	return size
  2887  }
  2888  func (m *NatControlPing) Marshal(b []byte) ([]byte, error) {
  2889  	if b == nil {
  2890  		b = make([]byte, m.Size())
  2891  	}
  2892  	buf := codec.NewBuffer(b)
  2893  	return buf.Bytes(), nil
  2894  }
  2895  func (m *NatControlPing) Unmarshal(b []byte) error {
  2896  	return nil
  2897  }
  2898  
  2899  // NatControlPingReply defines message 'nat_control_ping_reply'.
  2900  // Deprecated: the message will be removed in the future versions
  2901  type NatControlPingReply struct {
  2902  	Retval      int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  2903  	ClientIndex uint32 `binapi:"u32,name=client_index" json:"client_index,omitempty"`
  2904  	VpePID      uint32 `binapi:"u32,name=vpe_pid" json:"vpe_pid,omitempty"`
  2905  }
  2906  
  2907  func (m *NatControlPingReply) Reset()               { *m = NatControlPingReply{} }
  2908  func (*NatControlPingReply) GetMessageName() string { return "nat_control_ping_reply" }
  2909  func (*NatControlPingReply) GetCrcString() string   { return "f6b0b8ca" }
  2910  func (*NatControlPingReply) GetMessageType() api.MessageType {
  2911  	return api.ReplyMessage
  2912  }
  2913  
  2914  func (m *NatControlPingReply) Size() (size int) {
  2915  	if m == nil {
  2916  		return 0
  2917  	}
  2918  	size += 4 // m.Retval
  2919  	size += 4 // m.ClientIndex
  2920  	size += 4 // m.VpePID
  2921  	return size
  2922  }
  2923  func (m *NatControlPingReply) Marshal(b []byte) ([]byte, error) {
  2924  	if b == nil {
  2925  		b = make([]byte, m.Size())
  2926  	}
  2927  	buf := codec.NewBuffer(b)
  2928  	buf.EncodeInt32(m.Retval)
  2929  	buf.EncodeUint32(m.ClientIndex)
  2930  	buf.EncodeUint32(m.VpePID)
  2931  	return buf.Bytes(), nil
  2932  }
  2933  func (m *NatControlPingReply) Unmarshal(b []byte) error {
  2934  	buf := codec.NewBuffer(b)
  2935  	m.Retval = buf.DecodeInt32()
  2936  	m.ClientIndex = buf.DecodeUint32()
  2937  	m.VpePID = buf.DecodeUint32()
  2938  	return nil
  2939  }
  2940  
  2941  // NatGetAddrAndPortAllocAlg defines message 'nat_get_addr_and_port_alloc_alg'.
  2942  type NatGetAddrAndPortAllocAlg struct{}
  2943  
  2944  func (m *NatGetAddrAndPortAllocAlg) Reset()               { *m = NatGetAddrAndPortAllocAlg{} }
  2945  func (*NatGetAddrAndPortAllocAlg) GetMessageName() string { return "nat_get_addr_and_port_alloc_alg" }
  2946  func (*NatGetAddrAndPortAllocAlg) GetCrcString() string   { return "51077d14" }
  2947  func (*NatGetAddrAndPortAllocAlg) GetMessageType() api.MessageType {
  2948  	return api.RequestMessage
  2949  }
  2950  
  2951  func (m *NatGetAddrAndPortAllocAlg) Size() (size int) {
  2952  	if m == nil {
  2953  		return 0
  2954  	}
  2955  	return size
  2956  }
  2957  func (m *NatGetAddrAndPortAllocAlg) Marshal(b []byte) ([]byte, error) {
  2958  	if b == nil {
  2959  		b = make([]byte, m.Size())
  2960  	}
  2961  	buf := codec.NewBuffer(b)
  2962  	return buf.Bytes(), nil
  2963  }
  2964  func (m *NatGetAddrAndPortAllocAlg) Unmarshal(b []byte) error {
  2965  	return nil
  2966  }
  2967  
  2968  // NatGetAddrAndPortAllocAlgReply defines message 'nat_get_addr_and_port_alloc_alg_reply'.
  2969  type NatGetAddrAndPortAllocAlgReply struct {
  2970  	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  2971  	Alg        uint8  `binapi:"u8,name=alg" json:"alg,omitempty"`
  2972  	PsidOffset uint8  `binapi:"u8,name=psid_offset" json:"psid_offset,omitempty"`
  2973  	PsidLength uint8  `binapi:"u8,name=psid_length" json:"psid_length,omitempty"`
  2974  	Psid       uint16 `binapi:"u16,name=psid" json:"psid,omitempty"`
  2975  	StartPort  uint16 `binapi:"u16,name=start_port" json:"start_port,omitempty"`
  2976  	EndPort    uint16 `binapi:"u16,name=end_port" json:"end_port,omitempty"`
  2977  }
  2978  
  2979  func (m *NatGetAddrAndPortAllocAlgReply) Reset() { *m = NatGetAddrAndPortAllocAlgReply{} }
  2980  func (*NatGetAddrAndPortAllocAlgReply) GetMessageName() string {
  2981  	return "nat_get_addr_and_port_alloc_alg_reply"
  2982  }
  2983  func (*NatGetAddrAndPortAllocAlgReply) GetCrcString() string { return "3607a7d0" }
  2984  func (*NatGetAddrAndPortAllocAlgReply) GetMessageType() api.MessageType {
  2985  	return api.ReplyMessage
  2986  }
  2987  
  2988  func (m *NatGetAddrAndPortAllocAlgReply) Size() (size int) {
  2989  	if m == nil {
  2990  		return 0
  2991  	}
  2992  	size += 4 // m.Retval
  2993  	size += 1 // m.Alg
  2994  	size += 1 // m.PsidOffset
  2995  	size += 1 // m.PsidLength
  2996  	size += 2 // m.Psid
  2997  	size += 2 // m.StartPort
  2998  	size += 2 // m.EndPort
  2999  	return size
  3000  }
  3001  func (m *NatGetAddrAndPortAllocAlgReply) Marshal(b []byte) ([]byte, error) {
  3002  	if b == nil {
  3003  		b = make([]byte, m.Size())
  3004  	}
  3005  	buf := codec.NewBuffer(b)
  3006  	buf.EncodeInt32(m.Retval)
  3007  	buf.EncodeUint8(m.Alg)
  3008  	buf.EncodeUint8(m.PsidOffset)
  3009  	buf.EncodeUint8(m.PsidLength)
  3010  	buf.EncodeUint16(m.Psid)
  3011  	buf.EncodeUint16(m.StartPort)
  3012  	buf.EncodeUint16(m.EndPort)
  3013  	return buf.Bytes(), nil
  3014  }
  3015  func (m *NatGetAddrAndPortAllocAlgReply) Unmarshal(b []byte) error {
  3016  	buf := codec.NewBuffer(b)
  3017  	m.Retval = buf.DecodeInt32()
  3018  	m.Alg = buf.DecodeUint8()
  3019  	m.PsidOffset = buf.DecodeUint8()
  3020  	m.PsidLength = buf.DecodeUint8()
  3021  	m.Psid = buf.DecodeUint16()
  3022  	m.StartPort = buf.DecodeUint16()
  3023  	m.EndPort = buf.DecodeUint16()
  3024  	return nil
  3025  }
  3026  
  3027  // NatGetMssClamping defines message 'nat_get_mss_clamping'.
  3028  type NatGetMssClamping struct{}
  3029  
  3030  func (m *NatGetMssClamping) Reset()               { *m = NatGetMssClamping{} }
  3031  func (*NatGetMssClamping) GetMessageName() string { return "nat_get_mss_clamping" }
  3032  func (*NatGetMssClamping) GetCrcString() string   { return "51077d14" }
  3033  func (*NatGetMssClamping) GetMessageType() api.MessageType {
  3034  	return api.RequestMessage
  3035  }
  3036  
  3037  func (m *NatGetMssClamping) Size() (size int) {
  3038  	if m == nil {
  3039  		return 0
  3040  	}
  3041  	return size
  3042  }
  3043  func (m *NatGetMssClamping) Marshal(b []byte) ([]byte, error) {
  3044  	if b == nil {
  3045  		b = make([]byte, m.Size())
  3046  	}
  3047  	buf := codec.NewBuffer(b)
  3048  	return buf.Bytes(), nil
  3049  }
  3050  func (m *NatGetMssClamping) Unmarshal(b []byte) error {
  3051  	return nil
  3052  }
  3053  
  3054  // NatGetMssClampingReply defines message 'nat_get_mss_clamping_reply'.
  3055  type NatGetMssClampingReply struct {
  3056  	Retval   int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  3057  	MssValue uint16 `binapi:"u16,name=mss_value" json:"mss_value,omitempty"`
  3058  	Enable   bool   `binapi:"bool,name=enable" json:"enable,omitempty"`
  3059  }
  3060  
  3061  func (m *NatGetMssClampingReply) Reset()               { *m = NatGetMssClampingReply{} }
  3062  func (*NatGetMssClampingReply) GetMessageName() string { return "nat_get_mss_clamping_reply" }
  3063  func (*NatGetMssClampingReply) GetCrcString() string   { return "1c0b2a78" }
  3064  func (*NatGetMssClampingReply) GetMessageType() api.MessageType {
  3065  	return api.ReplyMessage
  3066  }
  3067  
  3068  func (m *NatGetMssClampingReply) Size() (size int) {
  3069  	if m == nil {
  3070  		return 0
  3071  	}
  3072  	size += 4 // m.Retval
  3073  	size += 2 // m.MssValue
  3074  	size += 1 // m.Enable
  3075  	return size
  3076  }
  3077  func (m *NatGetMssClampingReply) Marshal(b []byte) ([]byte, error) {
  3078  	if b == nil {
  3079  		b = make([]byte, m.Size())
  3080  	}
  3081  	buf := codec.NewBuffer(b)
  3082  	buf.EncodeInt32(m.Retval)
  3083  	buf.EncodeUint16(m.MssValue)
  3084  	buf.EncodeBool(m.Enable)
  3085  	return buf.Bytes(), nil
  3086  }
  3087  func (m *NatGetMssClampingReply) Unmarshal(b []byte) error {
  3088  	buf := codec.NewBuffer(b)
  3089  	m.Retval = buf.DecodeInt32()
  3090  	m.MssValue = buf.DecodeUint16()
  3091  	m.Enable = buf.DecodeBool()
  3092  	return nil
  3093  }
  3094  
  3095  // NatGetTimeouts defines message 'nat_get_timeouts'.
  3096  // Deprecated: the message will be removed in the future versions
  3097  type NatGetTimeouts struct{}
  3098  
  3099  func (m *NatGetTimeouts) Reset()               { *m = NatGetTimeouts{} }
  3100  func (*NatGetTimeouts) GetMessageName() string { return "nat_get_timeouts" }
  3101  func (*NatGetTimeouts) GetCrcString() string   { return "51077d14" }
  3102  func (*NatGetTimeouts) GetMessageType() api.MessageType {
  3103  	return api.RequestMessage
  3104  }
  3105  
  3106  func (m *NatGetTimeouts) Size() (size int) {
  3107  	if m == nil {
  3108  		return 0
  3109  	}
  3110  	return size
  3111  }
  3112  func (m *NatGetTimeouts) Marshal(b []byte) ([]byte, error) {
  3113  	if b == nil {
  3114  		b = make([]byte, m.Size())
  3115  	}
  3116  	buf := codec.NewBuffer(b)
  3117  	return buf.Bytes(), nil
  3118  }
  3119  func (m *NatGetTimeouts) Unmarshal(b []byte) error {
  3120  	return nil
  3121  }
  3122  
  3123  // NatGetTimeoutsReply defines message 'nat_get_timeouts_reply'.
  3124  // Deprecated: the message will be removed in the future versions
  3125  type NatGetTimeoutsReply struct {
  3126  	Retval         int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  3127  	UDP            uint32 `binapi:"u32,name=udp" json:"udp,omitempty"`
  3128  	TCPEstablished uint32 `binapi:"u32,name=tcp_established" json:"tcp_established,omitempty"`
  3129  	TCPTransitory  uint32 `binapi:"u32,name=tcp_transitory" json:"tcp_transitory,omitempty"`
  3130  	ICMP           uint32 `binapi:"u32,name=icmp" json:"icmp,omitempty"`
  3131  }
  3132  
  3133  func (m *NatGetTimeoutsReply) Reset()               { *m = NatGetTimeoutsReply{} }
  3134  func (*NatGetTimeoutsReply) GetMessageName() string { return "nat_get_timeouts_reply" }
  3135  func (*NatGetTimeoutsReply) GetCrcString() string   { return "3c4df4e1" }
  3136  func (*NatGetTimeoutsReply) GetMessageType() api.MessageType {
  3137  	return api.ReplyMessage
  3138  }
  3139  
  3140  func (m *NatGetTimeoutsReply) Size() (size int) {
  3141  	if m == nil {
  3142  		return 0
  3143  	}
  3144  	size += 4 // m.Retval
  3145  	size += 4 // m.UDP
  3146  	size += 4 // m.TCPEstablished
  3147  	size += 4 // m.TCPTransitory
  3148  	size += 4 // m.ICMP
  3149  	return size
  3150  }
  3151  func (m *NatGetTimeoutsReply) Marshal(b []byte) ([]byte, error) {
  3152  	if b == nil {
  3153  		b = make([]byte, m.Size())
  3154  	}
  3155  	buf := codec.NewBuffer(b)
  3156  	buf.EncodeInt32(m.Retval)
  3157  	buf.EncodeUint32(m.UDP)
  3158  	buf.EncodeUint32(m.TCPEstablished)
  3159  	buf.EncodeUint32(m.TCPTransitory)
  3160  	buf.EncodeUint32(m.ICMP)
  3161  	return buf.Bytes(), nil
  3162  }
  3163  func (m *NatGetTimeoutsReply) Unmarshal(b []byte) error {
  3164  	buf := codec.NewBuffer(b)
  3165  	m.Retval = buf.DecodeInt32()
  3166  	m.UDP = buf.DecodeUint32()
  3167  	m.TCPEstablished = buf.DecodeUint32()
  3168  	m.TCPTransitory = buf.DecodeUint32()
  3169  	m.ICMP = buf.DecodeUint32()
  3170  	return nil
  3171  }
  3172  
  3173  // NatHaFlush defines message 'nat_ha_flush'.
  3174  type NatHaFlush struct{}
  3175  
  3176  func (m *NatHaFlush) Reset()               { *m = NatHaFlush{} }
  3177  func (*NatHaFlush) GetMessageName() string { return "nat_ha_flush" }
  3178  func (*NatHaFlush) GetCrcString() string   { return "51077d14" }
  3179  func (*NatHaFlush) GetMessageType() api.MessageType {
  3180  	return api.RequestMessage
  3181  }
  3182  
  3183  func (m *NatHaFlush) Size() (size int) {
  3184  	if m == nil {
  3185  		return 0
  3186  	}
  3187  	return size
  3188  }
  3189  func (m *NatHaFlush) Marshal(b []byte) ([]byte, error) {
  3190  	if b == nil {
  3191  		b = make([]byte, m.Size())
  3192  	}
  3193  	buf := codec.NewBuffer(b)
  3194  	return buf.Bytes(), nil
  3195  }
  3196  func (m *NatHaFlush) Unmarshal(b []byte) error {
  3197  	return nil
  3198  }
  3199  
  3200  // NatHaFlushReply defines message 'nat_ha_flush_reply'.
  3201  type NatHaFlushReply struct {
  3202  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3203  }
  3204  
  3205  func (m *NatHaFlushReply) Reset()               { *m = NatHaFlushReply{} }
  3206  func (*NatHaFlushReply) GetMessageName() string { return "nat_ha_flush_reply" }
  3207  func (*NatHaFlushReply) GetCrcString() string   { return "e8d4e804" }
  3208  func (*NatHaFlushReply) GetMessageType() api.MessageType {
  3209  	return api.ReplyMessage
  3210  }
  3211  
  3212  func (m *NatHaFlushReply) Size() (size int) {
  3213  	if m == nil {
  3214  		return 0
  3215  	}
  3216  	size += 4 // m.Retval
  3217  	return size
  3218  }
  3219  func (m *NatHaFlushReply) Marshal(b []byte) ([]byte, error) {
  3220  	if b == nil {
  3221  		b = make([]byte, m.Size())
  3222  	}
  3223  	buf := codec.NewBuffer(b)
  3224  	buf.EncodeInt32(m.Retval)
  3225  	return buf.Bytes(), nil
  3226  }
  3227  func (m *NatHaFlushReply) Unmarshal(b []byte) error {
  3228  	buf := codec.NewBuffer(b)
  3229  	m.Retval = buf.DecodeInt32()
  3230  	return nil
  3231  }
  3232  
  3233  // NatHaGetFailover defines message 'nat_ha_get_failover'.
  3234  type NatHaGetFailover struct{}
  3235  
  3236  func (m *NatHaGetFailover) Reset()               { *m = NatHaGetFailover{} }
  3237  func (*NatHaGetFailover) GetMessageName() string { return "nat_ha_get_failover" }
  3238  func (*NatHaGetFailover) GetCrcString() string   { return "51077d14" }
  3239  func (*NatHaGetFailover) GetMessageType() api.MessageType {
  3240  	return api.RequestMessage
  3241  }
  3242  
  3243  func (m *NatHaGetFailover) Size() (size int) {
  3244  	if m == nil {
  3245  		return 0
  3246  	}
  3247  	return size
  3248  }
  3249  func (m *NatHaGetFailover) Marshal(b []byte) ([]byte, error) {
  3250  	if b == nil {
  3251  		b = make([]byte, m.Size())
  3252  	}
  3253  	buf := codec.NewBuffer(b)
  3254  	return buf.Bytes(), nil
  3255  }
  3256  func (m *NatHaGetFailover) Unmarshal(b []byte) error {
  3257  	return nil
  3258  }
  3259  
  3260  // NatHaGetFailoverReply defines message 'nat_ha_get_failover_reply'.
  3261  type NatHaGetFailoverReply struct {
  3262  	Retval                 int32               `binapi:"i32,name=retval" json:"retval,omitempty"`
  3263  	IPAddress              ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  3264  	Port                   uint16              `binapi:"u16,name=port" json:"port,omitempty"`
  3265  	SessionRefreshInterval uint32              `binapi:"u32,name=session_refresh_interval" json:"session_refresh_interval,omitempty"`
  3266  }
  3267  
  3268  func (m *NatHaGetFailoverReply) Reset()               { *m = NatHaGetFailoverReply{} }
  3269  func (*NatHaGetFailoverReply) GetMessageName() string { return "nat_ha_get_failover_reply" }
  3270  func (*NatHaGetFailoverReply) GetCrcString() string   { return "a67d8752" }
  3271  func (*NatHaGetFailoverReply) GetMessageType() api.MessageType {
  3272  	return api.ReplyMessage
  3273  }
  3274  
  3275  func (m *NatHaGetFailoverReply) Size() (size int) {
  3276  	if m == nil {
  3277  		return 0
  3278  	}
  3279  	size += 4     // m.Retval
  3280  	size += 1 * 4 // m.IPAddress
  3281  	size += 2     // m.Port
  3282  	size += 4     // m.SessionRefreshInterval
  3283  	return size
  3284  }
  3285  func (m *NatHaGetFailoverReply) Marshal(b []byte) ([]byte, error) {
  3286  	if b == nil {
  3287  		b = make([]byte, m.Size())
  3288  	}
  3289  	buf := codec.NewBuffer(b)
  3290  	buf.EncodeInt32(m.Retval)
  3291  	buf.EncodeBytes(m.IPAddress[:], 4)
  3292  	buf.EncodeUint16(m.Port)
  3293  	buf.EncodeUint32(m.SessionRefreshInterval)
  3294  	return buf.Bytes(), nil
  3295  }
  3296  func (m *NatHaGetFailoverReply) Unmarshal(b []byte) error {
  3297  	buf := codec.NewBuffer(b)
  3298  	m.Retval = buf.DecodeInt32()
  3299  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  3300  	m.Port = buf.DecodeUint16()
  3301  	m.SessionRefreshInterval = buf.DecodeUint32()
  3302  	return nil
  3303  }
  3304  
  3305  // NatHaGetListener defines message 'nat_ha_get_listener'.
  3306  type NatHaGetListener struct{}
  3307  
  3308  func (m *NatHaGetListener) Reset()               { *m = NatHaGetListener{} }
  3309  func (*NatHaGetListener) GetMessageName() string { return "nat_ha_get_listener" }
  3310  func (*NatHaGetListener) GetCrcString() string   { return "51077d14" }
  3311  func (*NatHaGetListener) GetMessageType() api.MessageType {
  3312  	return api.RequestMessage
  3313  }
  3314  
  3315  func (m *NatHaGetListener) Size() (size int) {
  3316  	if m == nil {
  3317  		return 0
  3318  	}
  3319  	return size
  3320  }
  3321  func (m *NatHaGetListener) Marshal(b []byte) ([]byte, error) {
  3322  	if b == nil {
  3323  		b = make([]byte, m.Size())
  3324  	}
  3325  	buf := codec.NewBuffer(b)
  3326  	return buf.Bytes(), nil
  3327  }
  3328  func (m *NatHaGetListener) Unmarshal(b []byte) error {
  3329  	return nil
  3330  }
  3331  
  3332  // NatHaGetListenerReply defines message 'nat_ha_get_listener_reply'.
  3333  type NatHaGetListenerReply struct {
  3334  	Retval    int32               `binapi:"i32,name=retval" json:"retval,omitempty"`
  3335  	IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  3336  	Port      uint16              `binapi:"u16,name=port" json:"port,omitempty"`
  3337  	PathMtu   uint32              `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
  3338  }
  3339  
  3340  func (m *NatHaGetListenerReply) Reset()               { *m = NatHaGetListenerReply{} }
  3341  func (*NatHaGetListenerReply) GetMessageName() string { return "nat_ha_get_listener_reply" }
  3342  func (*NatHaGetListenerReply) GetCrcString() string   { return "123ea41f" }
  3343  func (*NatHaGetListenerReply) GetMessageType() api.MessageType {
  3344  	return api.ReplyMessage
  3345  }
  3346  
  3347  func (m *NatHaGetListenerReply) Size() (size int) {
  3348  	if m == nil {
  3349  		return 0
  3350  	}
  3351  	size += 4     // m.Retval
  3352  	size += 1 * 4 // m.IPAddress
  3353  	size += 2     // m.Port
  3354  	size += 4     // m.PathMtu
  3355  	return size
  3356  }
  3357  func (m *NatHaGetListenerReply) Marshal(b []byte) ([]byte, error) {
  3358  	if b == nil {
  3359  		b = make([]byte, m.Size())
  3360  	}
  3361  	buf := codec.NewBuffer(b)
  3362  	buf.EncodeInt32(m.Retval)
  3363  	buf.EncodeBytes(m.IPAddress[:], 4)
  3364  	buf.EncodeUint16(m.Port)
  3365  	buf.EncodeUint32(m.PathMtu)
  3366  	return buf.Bytes(), nil
  3367  }
  3368  func (m *NatHaGetListenerReply) Unmarshal(b []byte) error {
  3369  	buf := codec.NewBuffer(b)
  3370  	m.Retval = buf.DecodeInt32()
  3371  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  3372  	m.Port = buf.DecodeUint16()
  3373  	m.PathMtu = buf.DecodeUint32()
  3374  	return nil
  3375  }
  3376  
  3377  // NatHaResync defines message 'nat_ha_resync'.
  3378  type NatHaResync struct {
  3379  	WantResyncEvent uint8  `binapi:"u8,name=want_resync_event" json:"want_resync_event,omitempty"`
  3380  	PID             uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
  3381  }
  3382  
  3383  func (m *NatHaResync) Reset()               { *m = NatHaResync{} }
  3384  func (*NatHaResync) GetMessageName() string { return "nat_ha_resync" }
  3385  func (*NatHaResync) GetCrcString() string   { return "c8ab9e03" }
  3386  func (*NatHaResync) GetMessageType() api.MessageType {
  3387  	return api.RequestMessage
  3388  }
  3389  
  3390  func (m *NatHaResync) Size() (size int) {
  3391  	if m == nil {
  3392  		return 0
  3393  	}
  3394  	size += 1 // m.WantResyncEvent
  3395  	size += 4 // m.PID
  3396  	return size
  3397  }
  3398  func (m *NatHaResync) Marshal(b []byte) ([]byte, error) {
  3399  	if b == nil {
  3400  		b = make([]byte, m.Size())
  3401  	}
  3402  	buf := codec.NewBuffer(b)
  3403  	buf.EncodeUint8(m.WantResyncEvent)
  3404  	buf.EncodeUint32(m.PID)
  3405  	return buf.Bytes(), nil
  3406  }
  3407  func (m *NatHaResync) Unmarshal(b []byte) error {
  3408  	buf := codec.NewBuffer(b)
  3409  	m.WantResyncEvent = buf.DecodeUint8()
  3410  	m.PID = buf.DecodeUint32()
  3411  	return nil
  3412  }
  3413  
  3414  // NatHaResyncCompletedEvent defines message 'nat_ha_resync_completed_event'.
  3415  type NatHaResyncCompletedEvent struct {
  3416  	PID         uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
  3417  	MissedCount uint32 `binapi:"u32,name=missed_count" json:"missed_count,omitempty"`
  3418  }
  3419  
  3420  func (m *NatHaResyncCompletedEvent) Reset()               { *m = NatHaResyncCompletedEvent{} }
  3421  func (*NatHaResyncCompletedEvent) GetMessageName() string { return "nat_ha_resync_completed_event" }
  3422  func (*NatHaResyncCompletedEvent) GetCrcString() string   { return "fdc598fb" }
  3423  func (*NatHaResyncCompletedEvent) GetMessageType() api.MessageType {
  3424  	return api.EventMessage
  3425  }
  3426  
  3427  func (m *NatHaResyncCompletedEvent) Size() (size int) {
  3428  	if m == nil {
  3429  		return 0
  3430  	}
  3431  	size += 4 // m.PID
  3432  	size += 4 // m.MissedCount
  3433  	return size
  3434  }
  3435  func (m *NatHaResyncCompletedEvent) Marshal(b []byte) ([]byte, error) {
  3436  	if b == nil {
  3437  		b = make([]byte, m.Size())
  3438  	}
  3439  	buf := codec.NewBuffer(b)
  3440  	buf.EncodeUint32(m.PID)
  3441  	buf.EncodeUint32(m.MissedCount)
  3442  	return buf.Bytes(), nil
  3443  }
  3444  func (m *NatHaResyncCompletedEvent) Unmarshal(b []byte) error {
  3445  	buf := codec.NewBuffer(b)
  3446  	m.PID = buf.DecodeUint32()
  3447  	m.MissedCount = buf.DecodeUint32()
  3448  	return nil
  3449  }
  3450  
  3451  // NatHaResyncReply defines message 'nat_ha_resync_reply'.
  3452  type NatHaResyncReply struct {
  3453  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3454  }
  3455  
  3456  func (m *NatHaResyncReply) Reset()               { *m = NatHaResyncReply{} }
  3457  func (*NatHaResyncReply) GetMessageName() string { return "nat_ha_resync_reply" }
  3458  func (*NatHaResyncReply) GetCrcString() string   { return "e8d4e804" }
  3459  func (*NatHaResyncReply) GetMessageType() api.MessageType {
  3460  	return api.ReplyMessage
  3461  }
  3462  
  3463  func (m *NatHaResyncReply) Size() (size int) {
  3464  	if m == nil {
  3465  		return 0
  3466  	}
  3467  	size += 4 // m.Retval
  3468  	return size
  3469  }
  3470  func (m *NatHaResyncReply) Marshal(b []byte) ([]byte, error) {
  3471  	if b == nil {
  3472  		b = make([]byte, m.Size())
  3473  	}
  3474  	buf := codec.NewBuffer(b)
  3475  	buf.EncodeInt32(m.Retval)
  3476  	return buf.Bytes(), nil
  3477  }
  3478  func (m *NatHaResyncReply) Unmarshal(b []byte) error {
  3479  	buf := codec.NewBuffer(b)
  3480  	m.Retval = buf.DecodeInt32()
  3481  	return nil
  3482  }
  3483  
  3484  // NatHaSetFailover defines message 'nat_ha_set_failover'.
  3485  type NatHaSetFailover struct {
  3486  	IPAddress              ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  3487  	Port                   uint16              `binapi:"u16,name=port" json:"port,omitempty"`
  3488  	SessionRefreshInterval uint32              `binapi:"u32,name=session_refresh_interval" json:"session_refresh_interval,omitempty"`
  3489  }
  3490  
  3491  func (m *NatHaSetFailover) Reset()               { *m = NatHaSetFailover{} }
  3492  func (*NatHaSetFailover) GetMessageName() string { return "nat_ha_set_failover" }
  3493  func (*NatHaSetFailover) GetCrcString() string   { return "718246af" }
  3494  func (*NatHaSetFailover) GetMessageType() api.MessageType {
  3495  	return api.RequestMessage
  3496  }
  3497  
  3498  func (m *NatHaSetFailover) Size() (size int) {
  3499  	if m == nil {
  3500  		return 0
  3501  	}
  3502  	size += 1 * 4 // m.IPAddress
  3503  	size += 2     // m.Port
  3504  	size += 4     // m.SessionRefreshInterval
  3505  	return size
  3506  }
  3507  func (m *NatHaSetFailover) Marshal(b []byte) ([]byte, error) {
  3508  	if b == nil {
  3509  		b = make([]byte, m.Size())
  3510  	}
  3511  	buf := codec.NewBuffer(b)
  3512  	buf.EncodeBytes(m.IPAddress[:], 4)
  3513  	buf.EncodeUint16(m.Port)
  3514  	buf.EncodeUint32(m.SessionRefreshInterval)
  3515  	return buf.Bytes(), nil
  3516  }
  3517  func (m *NatHaSetFailover) Unmarshal(b []byte) error {
  3518  	buf := codec.NewBuffer(b)
  3519  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  3520  	m.Port = buf.DecodeUint16()
  3521  	m.SessionRefreshInterval = buf.DecodeUint32()
  3522  	return nil
  3523  }
  3524  
  3525  // NatHaSetFailoverReply defines message 'nat_ha_set_failover_reply'.
  3526  type NatHaSetFailoverReply struct {
  3527  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3528  }
  3529  
  3530  func (m *NatHaSetFailoverReply) Reset()               { *m = NatHaSetFailoverReply{} }
  3531  func (*NatHaSetFailoverReply) GetMessageName() string { return "nat_ha_set_failover_reply" }
  3532  func (*NatHaSetFailoverReply) GetCrcString() string   { return "e8d4e804" }
  3533  func (*NatHaSetFailoverReply) GetMessageType() api.MessageType {
  3534  	return api.ReplyMessage
  3535  }
  3536  
  3537  func (m *NatHaSetFailoverReply) Size() (size int) {
  3538  	if m == nil {
  3539  		return 0
  3540  	}
  3541  	size += 4 // m.Retval
  3542  	return size
  3543  }
  3544  func (m *NatHaSetFailoverReply) Marshal(b []byte) ([]byte, error) {
  3545  	if b == nil {
  3546  		b = make([]byte, m.Size())
  3547  	}
  3548  	buf := codec.NewBuffer(b)
  3549  	buf.EncodeInt32(m.Retval)
  3550  	return buf.Bytes(), nil
  3551  }
  3552  func (m *NatHaSetFailoverReply) Unmarshal(b []byte) error {
  3553  	buf := codec.NewBuffer(b)
  3554  	m.Retval = buf.DecodeInt32()
  3555  	return nil
  3556  }
  3557  
  3558  // NatHaSetListener defines message 'nat_ha_set_listener'.
  3559  type NatHaSetListener struct {
  3560  	IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  3561  	Port      uint16              `binapi:"u16,name=port" json:"port,omitempty"`
  3562  	PathMtu   uint32              `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
  3563  }
  3564  
  3565  func (m *NatHaSetListener) Reset()               { *m = NatHaSetListener{} }
  3566  func (*NatHaSetListener) GetMessageName() string { return "nat_ha_set_listener" }
  3567  func (*NatHaSetListener) GetCrcString() string   { return "e4a8cb4e" }
  3568  func (*NatHaSetListener) GetMessageType() api.MessageType {
  3569  	return api.RequestMessage
  3570  }
  3571  
  3572  func (m *NatHaSetListener) Size() (size int) {
  3573  	if m == nil {
  3574  		return 0
  3575  	}
  3576  	size += 1 * 4 // m.IPAddress
  3577  	size += 2     // m.Port
  3578  	size += 4     // m.PathMtu
  3579  	return size
  3580  }
  3581  func (m *NatHaSetListener) Marshal(b []byte) ([]byte, error) {
  3582  	if b == nil {
  3583  		b = make([]byte, m.Size())
  3584  	}
  3585  	buf := codec.NewBuffer(b)
  3586  	buf.EncodeBytes(m.IPAddress[:], 4)
  3587  	buf.EncodeUint16(m.Port)
  3588  	buf.EncodeUint32(m.PathMtu)
  3589  	return buf.Bytes(), nil
  3590  }
  3591  func (m *NatHaSetListener) Unmarshal(b []byte) error {
  3592  	buf := codec.NewBuffer(b)
  3593  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  3594  	m.Port = buf.DecodeUint16()
  3595  	m.PathMtu = buf.DecodeUint32()
  3596  	return nil
  3597  }
  3598  
  3599  // NatHaSetListenerReply defines message 'nat_ha_set_listener_reply'.
  3600  type NatHaSetListenerReply struct {
  3601  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3602  }
  3603  
  3604  func (m *NatHaSetListenerReply) Reset()               { *m = NatHaSetListenerReply{} }
  3605  func (*NatHaSetListenerReply) GetMessageName() string { return "nat_ha_set_listener_reply" }
  3606  func (*NatHaSetListenerReply) GetCrcString() string   { return "e8d4e804" }
  3607  func (*NatHaSetListenerReply) GetMessageType() api.MessageType {
  3608  	return api.ReplyMessage
  3609  }
  3610  
  3611  func (m *NatHaSetListenerReply) Size() (size int) {
  3612  	if m == nil {
  3613  		return 0
  3614  	}
  3615  	size += 4 // m.Retval
  3616  	return size
  3617  }
  3618  func (m *NatHaSetListenerReply) Marshal(b []byte) ([]byte, error) {
  3619  	if b == nil {
  3620  		b = make([]byte, m.Size())
  3621  	}
  3622  	buf := codec.NewBuffer(b)
  3623  	buf.EncodeInt32(m.Retval)
  3624  	return buf.Bytes(), nil
  3625  }
  3626  func (m *NatHaSetListenerReply) Unmarshal(b []byte) error {
  3627  	buf := codec.NewBuffer(b)
  3628  	m.Retval = buf.DecodeInt32()
  3629  	return nil
  3630  }
  3631  
  3632  // NatIpfixEnableDisable defines message 'nat_ipfix_enable_disable'.
  3633  // Deprecated: the message will be removed in the future versions
  3634  type NatIpfixEnableDisable struct {
  3635  	DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"`
  3636  	SrcPort  uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"`
  3637  	Enable   bool   `binapi:"bool,name=enable" json:"enable,omitempty"`
  3638  }
  3639  
  3640  func (m *NatIpfixEnableDisable) Reset()               { *m = NatIpfixEnableDisable{} }
  3641  func (*NatIpfixEnableDisable) GetMessageName() string { return "nat_ipfix_enable_disable" }
  3642  func (*NatIpfixEnableDisable) GetCrcString() string   { return "9af4a2d2" }
  3643  func (*NatIpfixEnableDisable) GetMessageType() api.MessageType {
  3644  	return api.RequestMessage
  3645  }
  3646  
  3647  func (m *NatIpfixEnableDisable) Size() (size int) {
  3648  	if m == nil {
  3649  		return 0
  3650  	}
  3651  	size += 4 // m.DomainID
  3652  	size += 2 // m.SrcPort
  3653  	size += 1 // m.Enable
  3654  	return size
  3655  }
  3656  func (m *NatIpfixEnableDisable) Marshal(b []byte) ([]byte, error) {
  3657  	if b == nil {
  3658  		b = make([]byte, m.Size())
  3659  	}
  3660  	buf := codec.NewBuffer(b)
  3661  	buf.EncodeUint32(m.DomainID)
  3662  	buf.EncodeUint16(m.SrcPort)
  3663  	buf.EncodeBool(m.Enable)
  3664  	return buf.Bytes(), nil
  3665  }
  3666  func (m *NatIpfixEnableDisable) Unmarshal(b []byte) error {
  3667  	buf := codec.NewBuffer(b)
  3668  	m.DomainID = buf.DecodeUint32()
  3669  	m.SrcPort = buf.DecodeUint16()
  3670  	m.Enable = buf.DecodeBool()
  3671  	return nil
  3672  }
  3673  
  3674  // NatIpfixEnableDisableReply defines message 'nat_ipfix_enable_disable_reply'.
  3675  // Deprecated: the message will be removed in the future versions
  3676  type NatIpfixEnableDisableReply struct {
  3677  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3678  }
  3679  
  3680  func (m *NatIpfixEnableDisableReply) Reset()               { *m = NatIpfixEnableDisableReply{} }
  3681  func (*NatIpfixEnableDisableReply) GetMessageName() string { return "nat_ipfix_enable_disable_reply" }
  3682  func (*NatIpfixEnableDisableReply) GetCrcString() string   { return "e8d4e804" }
  3683  func (*NatIpfixEnableDisableReply) GetMessageType() api.MessageType {
  3684  	return api.ReplyMessage
  3685  }
  3686  
  3687  func (m *NatIpfixEnableDisableReply) Size() (size int) {
  3688  	if m == nil {
  3689  		return 0
  3690  	}
  3691  	size += 4 // m.Retval
  3692  	return size
  3693  }
  3694  func (m *NatIpfixEnableDisableReply) Marshal(b []byte) ([]byte, error) {
  3695  	if b == nil {
  3696  		b = make([]byte, m.Size())
  3697  	}
  3698  	buf := codec.NewBuffer(b)
  3699  	buf.EncodeInt32(m.Retval)
  3700  	return buf.Bytes(), nil
  3701  }
  3702  func (m *NatIpfixEnableDisableReply) Unmarshal(b []byte) error {
  3703  	buf := codec.NewBuffer(b)
  3704  	m.Retval = buf.DecodeInt32()
  3705  	return nil
  3706  }
  3707  
  3708  // NatSetAddrAndPortAllocAlg defines message 'nat_set_addr_and_port_alloc_alg'.
  3709  type NatSetAddrAndPortAllocAlg struct {
  3710  	Alg        uint8  `binapi:"u8,name=alg" json:"alg,omitempty"`
  3711  	PsidOffset uint8  `binapi:"u8,name=psid_offset" json:"psid_offset,omitempty"`
  3712  	PsidLength uint8  `binapi:"u8,name=psid_length" json:"psid_length,omitempty"`
  3713  	Psid       uint16 `binapi:"u16,name=psid" json:"psid,omitempty"`
  3714  	StartPort  uint16 `binapi:"u16,name=start_port" json:"start_port,omitempty"`
  3715  	EndPort    uint16 `binapi:"u16,name=end_port" json:"end_port,omitempty"`
  3716  }
  3717  
  3718  func (m *NatSetAddrAndPortAllocAlg) Reset()               { *m = NatSetAddrAndPortAllocAlg{} }
  3719  func (*NatSetAddrAndPortAllocAlg) GetMessageName() string { return "nat_set_addr_and_port_alloc_alg" }
  3720  func (*NatSetAddrAndPortAllocAlg) GetCrcString() string   { return "deeb746f" }
  3721  func (*NatSetAddrAndPortAllocAlg) GetMessageType() api.MessageType {
  3722  	return api.RequestMessage
  3723  }
  3724  
  3725  func (m *NatSetAddrAndPortAllocAlg) Size() (size int) {
  3726  	if m == nil {
  3727  		return 0
  3728  	}
  3729  	size += 1 // m.Alg
  3730  	size += 1 // m.PsidOffset
  3731  	size += 1 // m.PsidLength
  3732  	size += 2 // m.Psid
  3733  	size += 2 // m.StartPort
  3734  	size += 2 // m.EndPort
  3735  	return size
  3736  }
  3737  func (m *NatSetAddrAndPortAllocAlg) Marshal(b []byte) ([]byte, error) {
  3738  	if b == nil {
  3739  		b = make([]byte, m.Size())
  3740  	}
  3741  	buf := codec.NewBuffer(b)
  3742  	buf.EncodeUint8(m.Alg)
  3743  	buf.EncodeUint8(m.PsidOffset)
  3744  	buf.EncodeUint8(m.PsidLength)
  3745  	buf.EncodeUint16(m.Psid)
  3746  	buf.EncodeUint16(m.StartPort)
  3747  	buf.EncodeUint16(m.EndPort)
  3748  	return buf.Bytes(), nil
  3749  }
  3750  func (m *NatSetAddrAndPortAllocAlg) Unmarshal(b []byte) error {
  3751  	buf := codec.NewBuffer(b)
  3752  	m.Alg = buf.DecodeUint8()
  3753  	m.PsidOffset = buf.DecodeUint8()
  3754  	m.PsidLength = buf.DecodeUint8()
  3755  	m.Psid = buf.DecodeUint16()
  3756  	m.StartPort = buf.DecodeUint16()
  3757  	m.EndPort = buf.DecodeUint16()
  3758  	return nil
  3759  }
  3760  
  3761  // NatSetAddrAndPortAllocAlgReply defines message 'nat_set_addr_and_port_alloc_alg_reply'.
  3762  type NatSetAddrAndPortAllocAlgReply struct {
  3763  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3764  }
  3765  
  3766  func (m *NatSetAddrAndPortAllocAlgReply) Reset() { *m = NatSetAddrAndPortAllocAlgReply{} }
  3767  func (*NatSetAddrAndPortAllocAlgReply) GetMessageName() string {
  3768  	return "nat_set_addr_and_port_alloc_alg_reply"
  3769  }
  3770  func (*NatSetAddrAndPortAllocAlgReply) GetCrcString() string { return "e8d4e804" }
  3771  func (*NatSetAddrAndPortAllocAlgReply) GetMessageType() api.MessageType {
  3772  	return api.ReplyMessage
  3773  }
  3774  
  3775  func (m *NatSetAddrAndPortAllocAlgReply) Size() (size int) {
  3776  	if m == nil {
  3777  		return 0
  3778  	}
  3779  	size += 4 // m.Retval
  3780  	return size
  3781  }
  3782  func (m *NatSetAddrAndPortAllocAlgReply) Marshal(b []byte) ([]byte, error) {
  3783  	if b == nil {
  3784  		b = make([]byte, m.Size())
  3785  	}
  3786  	buf := codec.NewBuffer(b)
  3787  	buf.EncodeInt32(m.Retval)
  3788  	return buf.Bytes(), nil
  3789  }
  3790  func (m *NatSetAddrAndPortAllocAlgReply) Unmarshal(b []byte) error {
  3791  	buf := codec.NewBuffer(b)
  3792  	m.Retval = buf.DecodeInt32()
  3793  	return nil
  3794  }
  3795  
  3796  // NatSetLogLevel defines message 'nat_set_log_level'.
  3797  // Deprecated: the message will be removed in the future versions
  3798  type NatSetLogLevel struct {
  3799  	LogLevel nat_types.NatLogLevel `binapi:"nat_log_level,name=log_level" json:"log_level,omitempty"`
  3800  }
  3801  
  3802  func (m *NatSetLogLevel) Reset()               { *m = NatSetLogLevel{} }
  3803  func (*NatSetLogLevel) GetMessageName() string { return "nat_set_log_level" }
  3804  func (*NatSetLogLevel) GetCrcString() string   { return "70076bfe" }
  3805  func (*NatSetLogLevel) GetMessageType() api.MessageType {
  3806  	return api.RequestMessage
  3807  }
  3808  
  3809  func (m *NatSetLogLevel) Size() (size int) {
  3810  	if m == nil {
  3811  		return 0
  3812  	}
  3813  	size += 1 // m.LogLevel
  3814  	return size
  3815  }
  3816  func (m *NatSetLogLevel) Marshal(b []byte) ([]byte, error) {
  3817  	if b == nil {
  3818  		b = make([]byte, m.Size())
  3819  	}
  3820  	buf := codec.NewBuffer(b)
  3821  	buf.EncodeUint8(uint8(m.LogLevel))
  3822  	return buf.Bytes(), nil
  3823  }
  3824  func (m *NatSetLogLevel) Unmarshal(b []byte) error {
  3825  	buf := codec.NewBuffer(b)
  3826  	m.LogLevel = nat_types.NatLogLevel(buf.DecodeUint8())
  3827  	return nil
  3828  }
  3829  
  3830  // NatSetLogLevelReply defines message 'nat_set_log_level_reply'.
  3831  // Deprecated: the message will be removed in the future versions
  3832  type NatSetLogLevelReply struct {
  3833  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3834  }
  3835  
  3836  func (m *NatSetLogLevelReply) Reset()               { *m = NatSetLogLevelReply{} }
  3837  func (*NatSetLogLevelReply) GetMessageName() string { return "nat_set_log_level_reply" }
  3838  func (*NatSetLogLevelReply) GetCrcString() string   { return "e8d4e804" }
  3839  func (*NatSetLogLevelReply) GetMessageType() api.MessageType {
  3840  	return api.ReplyMessage
  3841  }
  3842  
  3843  func (m *NatSetLogLevelReply) Size() (size int) {
  3844  	if m == nil {
  3845  		return 0
  3846  	}
  3847  	size += 4 // m.Retval
  3848  	return size
  3849  }
  3850  func (m *NatSetLogLevelReply) Marshal(b []byte) ([]byte, error) {
  3851  	if b == nil {
  3852  		b = make([]byte, m.Size())
  3853  	}
  3854  	buf := codec.NewBuffer(b)
  3855  	buf.EncodeInt32(m.Retval)
  3856  	return buf.Bytes(), nil
  3857  }
  3858  func (m *NatSetLogLevelReply) Unmarshal(b []byte) error {
  3859  	buf := codec.NewBuffer(b)
  3860  	m.Retval = buf.DecodeInt32()
  3861  	return nil
  3862  }
  3863  
  3864  // NatSetMssClamping defines message 'nat_set_mss_clamping'.
  3865  type NatSetMssClamping struct {
  3866  	MssValue uint16 `binapi:"u16,name=mss_value" json:"mss_value,omitempty"`
  3867  	Enable   bool   `binapi:"bool,name=enable" json:"enable,omitempty"`
  3868  }
  3869  
  3870  func (m *NatSetMssClamping) Reset()               { *m = NatSetMssClamping{} }
  3871  func (*NatSetMssClamping) GetMessageName() string { return "nat_set_mss_clamping" }
  3872  func (*NatSetMssClamping) GetCrcString() string   { return "25e90abb" }
  3873  func (*NatSetMssClamping) GetMessageType() api.MessageType {
  3874  	return api.RequestMessage
  3875  }
  3876  
  3877  func (m *NatSetMssClamping) Size() (size int) {
  3878  	if m == nil {
  3879  		return 0
  3880  	}
  3881  	size += 2 // m.MssValue
  3882  	size += 1 // m.Enable
  3883  	return size
  3884  }
  3885  func (m *NatSetMssClamping) Marshal(b []byte) ([]byte, error) {
  3886  	if b == nil {
  3887  		b = make([]byte, m.Size())
  3888  	}
  3889  	buf := codec.NewBuffer(b)
  3890  	buf.EncodeUint16(m.MssValue)
  3891  	buf.EncodeBool(m.Enable)
  3892  	return buf.Bytes(), nil
  3893  }
  3894  func (m *NatSetMssClamping) Unmarshal(b []byte) error {
  3895  	buf := codec.NewBuffer(b)
  3896  	m.MssValue = buf.DecodeUint16()
  3897  	m.Enable = buf.DecodeBool()
  3898  	return nil
  3899  }
  3900  
  3901  // NatSetMssClampingReply defines message 'nat_set_mss_clamping_reply'.
  3902  type NatSetMssClampingReply struct {
  3903  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3904  }
  3905  
  3906  func (m *NatSetMssClampingReply) Reset()               { *m = NatSetMssClampingReply{} }
  3907  func (*NatSetMssClampingReply) GetMessageName() string { return "nat_set_mss_clamping_reply" }
  3908  func (*NatSetMssClampingReply) GetCrcString() string   { return "e8d4e804" }
  3909  func (*NatSetMssClampingReply) GetMessageType() api.MessageType {
  3910  	return api.ReplyMessage
  3911  }
  3912  
  3913  func (m *NatSetMssClampingReply) Size() (size int) {
  3914  	if m == nil {
  3915  		return 0
  3916  	}
  3917  	size += 4 // m.Retval
  3918  	return size
  3919  }
  3920  func (m *NatSetMssClampingReply) Marshal(b []byte) ([]byte, error) {
  3921  	if b == nil {
  3922  		b = make([]byte, m.Size())
  3923  	}
  3924  	buf := codec.NewBuffer(b)
  3925  	buf.EncodeInt32(m.Retval)
  3926  	return buf.Bytes(), nil
  3927  }
  3928  func (m *NatSetMssClampingReply) Unmarshal(b []byte) error {
  3929  	buf := codec.NewBuffer(b)
  3930  	m.Retval = buf.DecodeInt32()
  3931  	return nil
  3932  }
  3933  
  3934  // NatSetTimeouts defines message 'nat_set_timeouts'.
  3935  // Deprecated: the message will be removed in the future versions
  3936  type NatSetTimeouts struct {
  3937  	UDP            uint32 `binapi:"u32,name=udp" json:"udp,omitempty"`
  3938  	TCPEstablished uint32 `binapi:"u32,name=tcp_established" json:"tcp_established,omitempty"`
  3939  	TCPTransitory  uint32 `binapi:"u32,name=tcp_transitory" json:"tcp_transitory,omitempty"`
  3940  	ICMP           uint32 `binapi:"u32,name=icmp" json:"icmp,omitempty"`
  3941  }
  3942  
  3943  func (m *NatSetTimeouts) Reset()               { *m = NatSetTimeouts{} }
  3944  func (*NatSetTimeouts) GetMessageName() string { return "nat_set_timeouts" }
  3945  func (*NatSetTimeouts) GetCrcString() string   { return "d4746b16" }
  3946  func (*NatSetTimeouts) GetMessageType() api.MessageType {
  3947  	return api.RequestMessage
  3948  }
  3949  
  3950  func (m *NatSetTimeouts) Size() (size int) {
  3951  	if m == nil {
  3952  		return 0
  3953  	}
  3954  	size += 4 // m.UDP
  3955  	size += 4 // m.TCPEstablished
  3956  	size += 4 // m.TCPTransitory
  3957  	size += 4 // m.ICMP
  3958  	return size
  3959  }
  3960  func (m *NatSetTimeouts) Marshal(b []byte) ([]byte, error) {
  3961  	if b == nil {
  3962  		b = make([]byte, m.Size())
  3963  	}
  3964  	buf := codec.NewBuffer(b)
  3965  	buf.EncodeUint32(m.UDP)
  3966  	buf.EncodeUint32(m.TCPEstablished)
  3967  	buf.EncodeUint32(m.TCPTransitory)
  3968  	buf.EncodeUint32(m.ICMP)
  3969  	return buf.Bytes(), nil
  3970  }
  3971  func (m *NatSetTimeouts) Unmarshal(b []byte) error {
  3972  	buf := codec.NewBuffer(b)
  3973  	m.UDP = buf.DecodeUint32()
  3974  	m.TCPEstablished = buf.DecodeUint32()
  3975  	m.TCPTransitory = buf.DecodeUint32()
  3976  	m.ICMP = buf.DecodeUint32()
  3977  	return nil
  3978  }
  3979  
  3980  // NatSetTimeoutsReply defines message 'nat_set_timeouts_reply'.
  3981  // Deprecated: the message will be removed in the future versions
  3982  type NatSetTimeoutsReply struct {
  3983  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3984  }
  3985  
  3986  func (m *NatSetTimeoutsReply) Reset()               { *m = NatSetTimeoutsReply{} }
  3987  func (*NatSetTimeoutsReply) GetMessageName() string { return "nat_set_timeouts_reply" }
  3988  func (*NatSetTimeoutsReply) GetCrcString() string   { return "e8d4e804" }
  3989  func (*NatSetTimeoutsReply) GetMessageType() api.MessageType {
  3990  	return api.ReplyMessage
  3991  }
  3992  
  3993  func (m *NatSetTimeoutsReply) Size() (size int) {
  3994  	if m == nil {
  3995  		return 0
  3996  	}
  3997  	size += 4 // m.Retval
  3998  	return size
  3999  }
  4000  func (m *NatSetTimeoutsReply) Marshal(b []byte) ([]byte, error) {
  4001  	if b == nil {
  4002  		b = make([]byte, m.Size())
  4003  	}
  4004  	buf := codec.NewBuffer(b)
  4005  	buf.EncodeInt32(m.Retval)
  4006  	return buf.Bytes(), nil
  4007  }
  4008  func (m *NatSetTimeoutsReply) Unmarshal(b []byte) error {
  4009  	buf := codec.NewBuffer(b)
  4010  	m.Retval = buf.DecodeInt32()
  4011  	return nil
  4012  }
  4013  
  4014  // NatSetWorkers defines message 'nat_set_workers'.
  4015  type NatSetWorkers struct {
  4016  	WorkerMask uint64 `binapi:"u64,name=worker_mask" json:"worker_mask,omitempty"`
  4017  }
  4018  
  4019  func (m *NatSetWorkers) Reset()               { *m = NatSetWorkers{} }
  4020  func (*NatSetWorkers) GetMessageName() string { return "nat_set_workers" }
  4021  func (*NatSetWorkers) GetCrcString() string   { return "da926638" }
  4022  func (*NatSetWorkers) GetMessageType() api.MessageType {
  4023  	return api.RequestMessage
  4024  }
  4025  
  4026  func (m *NatSetWorkers) Size() (size int) {
  4027  	if m == nil {
  4028  		return 0
  4029  	}
  4030  	size += 8 // m.WorkerMask
  4031  	return size
  4032  }
  4033  func (m *NatSetWorkers) Marshal(b []byte) ([]byte, error) {
  4034  	if b == nil {
  4035  		b = make([]byte, m.Size())
  4036  	}
  4037  	buf := codec.NewBuffer(b)
  4038  	buf.EncodeUint64(m.WorkerMask)
  4039  	return buf.Bytes(), nil
  4040  }
  4041  func (m *NatSetWorkers) Unmarshal(b []byte) error {
  4042  	buf := codec.NewBuffer(b)
  4043  	m.WorkerMask = buf.DecodeUint64()
  4044  	return nil
  4045  }
  4046  
  4047  // NatSetWorkersReply defines message 'nat_set_workers_reply'.
  4048  type NatSetWorkersReply struct {
  4049  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  4050  }
  4051  
  4052  func (m *NatSetWorkersReply) Reset()               { *m = NatSetWorkersReply{} }
  4053  func (*NatSetWorkersReply) GetMessageName() string { return "nat_set_workers_reply" }
  4054  func (*NatSetWorkersReply) GetCrcString() string   { return "e8d4e804" }
  4055  func (*NatSetWorkersReply) GetMessageType() api.MessageType {
  4056  	return api.ReplyMessage
  4057  }
  4058  
  4059  func (m *NatSetWorkersReply) Size() (size int) {
  4060  	if m == nil {
  4061  		return 0
  4062  	}
  4063  	size += 4 // m.Retval
  4064  	return size
  4065  }
  4066  func (m *NatSetWorkersReply) Marshal(b []byte) ([]byte, error) {
  4067  	if b == nil {
  4068  		b = make([]byte, m.Size())
  4069  	}
  4070  	buf := codec.NewBuffer(b)
  4071  	buf.EncodeInt32(m.Retval)
  4072  	return buf.Bytes(), nil
  4073  }
  4074  func (m *NatSetWorkersReply) Unmarshal(b []byte) error {
  4075  	buf := codec.NewBuffer(b)
  4076  	m.Retval = buf.DecodeInt32()
  4077  	return nil
  4078  }
  4079  
  4080  // NatShowConfig defines message 'nat_show_config'.
  4081  // Deprecated: the message will be removed in the future versions
  4082  type NatShowConfig struct{}
  4083  
  4084  func (m *NatShowConfig) Reset()               { *m = NatShowConfig{} }
  4085  func (*NatShowConfig) GetMessageName() string { return "nat_show_config" }
  4086  func (*NatShowConfig) GetCrcString() string   { return "51077d14" }
  4087  func (*NatShowConfig) GetMessageType() api.MessageType {
  4088  	return api.RequestMessage
  4089  }
  4090  
  4091  func (m *NatShowConfig) Size() (size int) {
  4092  	if m == nil {
  4093  		return 0
  4094  	}
  4095  	return size
  4096  }
  4097  func (m *NatShowConfig) Marshal(b []byte) ([]byte, error) {
  4098  	if b == nil {
  4099  		b = make([]byte, m.Size())
  4100  	}
  4101  	buf := codec.NewBuffer(b)
  4102  	return buf.Bytes(), nil
  4103  }
  4104  func (m *NatShowConfig) Unmarshal(b []byte) error {
  4105  	return nil
  4106  }
  4107  
  4108  // NatShowConfig2 defines message 'nat_show_config_2'.
  4109  // Deprecated: the message will be removed in the future versions
  4110  type NatShowConfig2 struct{}
  4111  
  4112  func (m *NatShowConfig2) Reset()               { *m = NatShowConfig2{} }
  4113  func (*NatShowConfig2) GetMessageName() string { return "nat_show_config_2" }
  4114  func (*NatShowConfig2) GetCrcString() string   { return "51077d14" }
  4115  func (*NatShowConfig2) GetMessageType() api.MessageType {
  4116  	return api.RequestMessage
  4117  }
  4118  
  4119  func (m *NatShowConfig2) Size() (size int) {
  4120  	if m == nil {
  4121  		return 0
  4122  	}
  4123  	return size
  4124  }
  4125  func (m *NatShowConfig2) Marshal(b []byte) ([]byte, error) {
  4126  	if b == nil {
  4127  		b = make([]byte, m.Size())
  4128  	}
  4129  	buf := codec.NewBuffer(b)
  4130  	return buf.Bytes(), nil
  4131  }
  4132  func (m *NatShowConfig2) Unmarshal(b []byte) error {
  4133  	return nil
  4134  }
  4135  
  4136  // NatShowConfig2Reply defines message 'nat_show_config_2_reply'.
  4137  // Deprecated: the message will be removed in the future versions
  4138  type NatShowConfig2Reply struct {
  4139  	Retval                          int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  4140  	StaticMappingOnly               bool   `binapi:"bool,name=static_mapping_only" json:"static_mapping_only,omitempty"`
  4141  	StaticMappingConnectionTracking bool   `binapi:"bool,name=static_mapping_connection_tracking" json:"static_mapping_connection_tracking,omitempty"`
  4142  	Deterministic                   bool   `binapi:"bool,name=deterministic" json:"deterministic,omitempty"`
  4143  	EndpointDependent               bool   `binapi:"bool,name=endpoint_dependent" json:"endpoint_dependent,omitempty"`
  4144  	Out2inDpo                       bool   `binapi:"bool,name=out2in_dpo" json:"out2in_dpo,omitempty"`
  4145  	DsliteCe                        bool   `binapi:"bool,name=dslite_ce" json:"dslite_ce,omitempty"`
  4146  	TranslationBuckets              uint32 `binapi:"u32,name=translation_buckets" json:"translation_buckets,omitempty"`
  4147  	TranslationMemorySize           uint64 `binapi:"u64,name=translation_memory_size" json:"translation_memory_size,omitempty"`
  4148  	UserBuckets                     uint32 `binapi:"u32,name=user_buckets" json:"user_buckets,omitempty"`
  4149  	UserMemorySize                  uint64 `binapi:"u64,name=user_memory_size" json:"user_memory_size,omitempty"`
  4150  	MaxTranslationsPerUser          uint32 `binapi:"u32,name=max_translations_per_user" json:"max_translations_per_user,omitempty"`
  4151  	OutsideVrfID                    uint32 `binapi:"u32,name=outside_vrf_id" json:"outside_vrf_id,omitempty"`
  4152  	InsideVrfID                     uint32 `binapi:"u32,name=inside_vrf_id" json:"inside_vrf_id,omitempty"`
  4153  	Nat64BibBuckets                 uint32 `binapi:"u32,name=nat64_bib_buckets" json:"nat64_bib_buckets,omitempty"`
  4154  	Nat64BibMemorySize              uint64 `binapi:"u64,name=nat64_bib_memory_size" json:"nat64_bib_memory_size,omitempty"`
  4155  	Nat64StBuckets                  uint32 `binapi:"u32,name=nat64_st_buckets" json:"nat64_st_buckets,omitempty"`
  4156  	Nat64StMemorySize               uint64 `binapi:"u64,name=nat64_st_memory_size" json:"nat64_st_memory_size,omitempty"`
  4157  	MaxTranslationsPerThread        uint32 `binapi:"u32,name=max_translations_per_thread" json:"max_translations_per_thread,omitempty"`
  4158  	MaxUsersPerThread               uint32 `binapi:"u32,name=max_users_per_thread" json:"max_users_per_thread,omitempty"`
  4159  }
  4160  
  4161  func (m *NatShowConfig2Reply) Reset()               { *m = NatShowConfig2Reply{} }
  4162  func (*NatShowConfig2Reply) GetMessageName() string { return "nat_show_config_2_reply" }
  4163  func (*NatShowConfig2Reply) GetCrcString() string   { return "0404a5b4" }
  4164  func (*NatShowConfig2Reply) GetMessageType() api.MessageType {
  4165  	return api.ReplyMessage
  4166  }
  4167  
  4168  func (m *NatShowConfig2Reply) Size() (size int) {
  4169  	if m == nil {
  4170  		return 0
  4171  	}
  4172  	size += 4 // m.Retval
  4173  	size += 1 // m.StaticMappingOnly
  4174  	size += 1 // m.StaticMappingConnectionTracking
  4175  	size += 1 // m.Deterministic
  4176  	size += 1 // m.EndpointDependent
  4177  	size += 1 // m.Out2inDpo
  4178  	size += 1 // m.DsliteCe
  4179  	size += 4 // m.TranslationBuckets
  4180  	size += 8 // m.TranslationMemorySize
  4181  	size += 4 // m.UserBuckets
  4182  	size += 8 // m.UserMemorySize
  4183  	size += 4 // m.MaxTranslationsPerUser
  4184  	size += 4 // m.OutsideVrfID
  4185  	size += 4 // m.InsideVrfID
  4186  	size += 4 // m.Nat64BibBuckets
  4187  	size += 8 // m.Nat64BibMemorySize
  4188  	size += 4 // m.Nat64StBuckets
  4189  	size += 8 // m.Nat64StMemorySize
  4190  	size += 4 // m.MaxTranslationsPerThread
  4191  	size += 4 // m.MaxUsersPerThread
  4192  	return size
  4193  }
  4194  func (m *NatShowConfig2Reply) Marshal(b []byte) ([]byte, error) {
  4195  	if b == nil {
  4196  		b = make([]byte, m.Size())
  4197  	}
  4198  	buf := codec.NewBuffer(b)
  4199  	buf.EncodeInt32(m.Retval)
  4200  	buf.EncodeBool(m.StaticMappingOnly)
  4201  	buf.EncodeBool(m.StaticMappingConnectionTracking)
  4202  	buf.EncodeBool(m.Deterministic)
  4203  	buf.EncodeBool(m.EndpointDependent)
  4204  	buf.EncodeBool(m.Out2inDpo)
  4205  	buf.EncodeBool(m.DsliteCe)
  4206  	buf.EncodeUint32(m.TranslationBuckets)
  4207  	buf.EncodeUint64(m.TranslationMemorySize)
  4208  	buf.EncodeUint32(m.UserBuckets)
  4209  	buf.EncodeUint64(m.UserMemorySize)
  4210  	buf.EncodeUint32(m.MaxTranslationsPerUser)
  4211  	buf.EncodeUint32(m.OutsideVrfID)
  4212  	buf.EncodeUint32(m.InsideVrfID)
  4213  	buf.EncodeUint32(m.Nat64BibBuckets)
  4214  	buf.EncodeUint64(m.Nat64BibMemorySize)
  4215  	buf.EncodeUint32(m.Nat64StBuckets)
  4216  	buf.EncodeUint64(m.Nat64StMemorySize)
  4217  	buf.EncodeUint32(m.MaxTranslationsPerThread)
  4218  	buf.EncodeUint32(m.MaxUsersPerThread)
  4219  	return buf.Bytes(), nil
  4220  }
  4221  func (m *NatShowConfig2Reply) Unmarshal(b []byte) error {
  4222  	buf := codec.NewBuffer(b)
  4223  	m.Retval = buf.DecodeInt32()
  4224  	m.StaticMappingOnly = buf.DecodeBool()
  4225  	m.StaticMappingConnectionTracking = buf.DecodeBool()
  4226  	m.Deterministic = buf.DecodeBool()
  4227  	m.EndpointDependent = buf.DecodeBool()
  4228  	m.Out2inDpo = buf.DecodeBool()
  4229  	m.DsliteCe = buf.DecodeBool()
  4230  	m.TranslationBuckets = buf.DecodeUint32()
  4231  	m.TranslationMemorySize = buf.DecodeUint64()
  4232  	m.UserBuckets = buf.DecodeUint32()
  4233  	m.UserMemorySize = buf.DecodeUint64()
  4234  	m.MaxTranslationsPerUser = buf.DecodeUint32()
  4235  	m.OutsideVrfID = buf.DecodeUint32()
  4236  	m.InsideVrfID = buf.DecodeUint32()
  4237  	m.Nat64BibBuckets = buf.DecodeUint32()
  4238  	m.Nat64BibMemorySize = buf.DecodeUint64()
  4239  	m.Nat64StBuckets = buf.DecodeUint32()
  4240  	m.Nat64StMemorySize = buf.DecodeUint64()
  4241  	m.MaxTranslationsPerThread = buf.DecodeUint32()
  4242  	m.MaxUsersPerThread = buf.DecodeUint32()
  4243  	return nil
  4244  }
  4245  
  4246  // NatShowConfigReply defines message 'nat_show_config_reply'.
  4247  // Deprecated: the message will be removed in the future versions
  4248  type NatShowConfigReply struct {
  4249  	Retval                          int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  4250  	StaticMappingOnly               bool   `binapi:"bool,name=static_mapping_only" json:"static_mapping_only,omitempty"`
  4251  	StaticMappingConnectionTracking bool   `binapi:"bool,name=static_mapping_connection_tracking" json:"static_mapping_connection_tracking,omitempty"`
  4252  	Deterministic                   bool   `binapi:"bool,name=deterministic" json:"deterministic,omitempty"`
  4253  	EndpointDependent               bool   `binapi:"bool,name=endpoint_dependent" json:"endpoint_dependent,omitempty"`
  4254  	Out2inDpo                       bool   `binapi:"bool,name=out2in_dpo" json:"out2in_dpo,omitempty"`
  4255  	DsliteCe                        bool   `binapi:"bool,name=dslite_ce" json:"dslite_ce,omitempty"`
  4256  	TranslationBuckets              uint32 `binapi:"u32,name=translation_buckets" json:"translation_buckets,omitempty"`
  4257  	TranslationMemorySize           uint32 `binapi:"u32,name=translation_memory_size" json:"translation_memory_size,omitempty"`
  4258  	UserBuckets                     uint32 `binapi:"u32,name=user_buckets" json:"user_buckets,omitempty"`
  4259  	UserMemorySize                  uint64 `binapi:"u64,name=user_memory_size" json:"user_memory_size,omitempty"`
  4260  	MaxTranslationsPerUser          uint32 `binapi:"u32,name=max_translations_per_user" json:"max_translations_per_user,omitempty"`
  4261  	OutsideVrfID                    uint32 `binapi:"u32,name=outside_vrf_id" json:"outside_vrf_id,omitempty"`
  4262  	InsideVrfID                     uint32 `binapi:"u32,name=inside_vrf_id" json:"inside_vrf_id,omitempty"`
  4263  	Nat64BibBuckets                 uint32 `binapi:"u32,name=nat64_bib_buckets" json:"nat64_bib_buckets,omitempty"`
  4264  	Nat64BibMemorySize              uint64 `binapi:"u64,name=nat64_bib_memory_size" json:"nat64_bib_memory_size,omitempty"`
  4265  	Nat64StBuckets                  uint32 `binapi:"u32,name=nat64_st_buckets" json:"nat64_st_buckets,omitempty"`
  4266  	Nat64StMemorySize               uint64 `binapi:"u64,name=nat64_st_memory_size" json:"nat64_st_memory_size,omitempty"`
  4267  }
  4268  
  4269  func (m *NatShowConfigReply) Reset()               { *m = NatShowConfigReply{} }
  4270  func (*NatShowConfigReply) GetMessageName() string { return "nat_show_config_reply" }
  4271  func (*NatShowConfigReply) GetCrcString() string   { return "7903ef06" }
  4272  func (*NatShowConfigReply) GetMessageType() api.MessageType {
  4273  	return api.ReplyMessage
  4274  }
  4275  
  4276  func (m *NatShowConfigReply) Size() (size int) {
  4277  	if m == nil {
  4278  		return 0
  4279  	}
  4280  	size += 4 // m.Retval
  4281  	size += 1 // m.StaticMappingOnly
  4282  	size += 1 // m.StaticMappingConnectionTracking
  4283  	size += 1 // m.Deterministic
  4284  	size += 1 // m.EndpointDependent
  4285  	size += 1 // m.Out2inDpo
  4286  	size += 1 // m.DsliteCe
  4287  	size += 4 // m.TranslationBuckets
  4288  	size += 4 // m.TranslationMemorySize
  4289  	size += 4 // m.UserBuckets
  4290  	size += 8 // m.UserMemorySize
  4291  	size += 4 // m.MaxTranslationsPerUser
  4292  	size += 4 // m.OutsideVrfID
  4293  	size += 4 // m.InsideVrfID
  4294  	size += 4 // m.Nat64BibBuckets
  4295  	size += 8 // m.Nat64BibMemorySize
  4296  	size += 4 // m.Nat64StBuckets
  4297  	size += 8 // m.Nat64StMemorySize
  4298  	return size
  4299  }
  4300  func (m *NatShowConfigReply) Marshal(b []byte) ([]byte, error) {
  4301  	if b == nil {
  4302  		b = make([]byte, m.Size())
  4303  	}
  4304  	buf := codec.NewBuffer(b)
  4305  	buf.EncodeInt32(m.Retval)
  4306  	buf.EncodeBool(m.StaticMappingOnly)
  4307  	buf.EncodeBool(m.StaticMappingConnectionTracking)
  4308  	buf.EncodeBool(m.Deterministic)
  4309  	buf.EncodeBool(m.EndpointDependent)
  4310  	buf.EncodeBool(m.Out2inDpo)
  4311  	buf.EncodeBool(m.DsliteCe)
  4312  	buf.EncodeUint32(m.TranslationBuckets)
  4313  	buf.EncodeUint32(m.TranslationMemorySize)
  4314  	buf.EncodeUint32(m.UserBuckets)
  4315  	buf.EncodeUint64(m.UserMemorySize)
  4316  	buf.EncodeUint32(m.MaxTranslationsPerUser)
  4317  	buf.EncodeUint32(m.OutsideVrfID)
  4318  	buf.EncodeUint32(m.InsideVrfID)
  4319  	buf.EncodeUint32(m.Nat64BibBuckets)
  4320  	buf.EncodeUint64(m.Nat64BibMemorySize)
  4321  	buf.EncodeUint32(m.Nat64StBuckets)
  4322  	buf.EncodeUint64(m.Nat64StMemorySize)
  4323  	return buf.Bytes(), nil
  4324  }
  4325  func (m *NatShowConfigReply) Unmarshal(b []byte) error {
  4326  	buf := codec.NewBuffer(b)
  4327  	m.Retval = buf.DecodeInt32()
  4328  	m.StaticMappingOnly = buf.DecodeBool()
  4329  	m.StaticMappingConnectionTracking = buf.DecodeBool()
  4330  	m.Deterministic = buf.DecodeBool()
  4331  	m.EndpointDependent = buf.DecodeBool()
  4332  	m.Out2inDpo = buf.DecodeBool()
  4333  	m.DsliteCe = buf.DecodeBool()
  4334  	m.TranslationBuckets = buf.DecodeUint32()
  4335  	m.TranslationMemorySize = buf.DecodeUint32()
  4336  	m.UserBuckets = buf.DecodeUint32()
  4337  	m.UserMemorySize = buf.DecodeUint64()
  4338  	m.MaxTranslationsPerUser = buf.DecodeUint32()
  4339  	m.OutsideVrfID = buf.DecodeUint32()
  4340  	m.InsideVrfID = buf.DecodeUint32()
  4341  	m.Nat64BibBuckets = buf.DecodeUint32()
  4342  	m.Nat64BibMemorySize = buf.DecodeUint64()
  4343  	m.Nat64StBuckets = buf.DecodeUint32()
  4344  	m.Nat64StMemorySize = buf.DecodeUint64()
  4345  	return nil
  4346  }
  4347  
  4348  // NatWorkerDetails defines message 'nat_worker_details'.
  4349  type NatWorkerDetails struct {
  4350  	WorkerIndex uint32 `binapi:"u32,name=worker_index" json:"worker_index,omitempty"`
  4351  	LcoreID     uint32 `binapi:"u32,name=lcore_id" json:"lcore_id,omitempty"`
  4352  	Name        string `binapi:"string[64],name=name" json:"name,omitempty"`
  4353  }
  4354  
  4355  func (m *NatWorkerDetails) Reset()               { *m = NatWorkerDetails{} }
  4356  func (*NatWorkerDetails) GetMessageName() string { return "nat_worker_details" }
  4357  func (*NatWorkerDetails) GetCrcString() string   { return "84bf06fc" }
  4358  func (*NatWorkerDetails) GetMessageType() api.MessageType {
  4359  	return api.ReplyMessage
  4360  }
  4361  
  4362  func (m *NatWorkerDetails) Size() (size int) {
  4363  	if m == nil {
  4364  		return 0
  4365  	}
  4366  	size += 4  // m.WorkerIndex
  4367  	size += 4  // m.LcoreID
  4368  	size += 64 // m.Name
  4369  	return size
  4370  }
  4371  func (m *NatWorkerDetails) Marshal(b []byte) ([]byte, error) {
  4372  	if b == nil {
  4373  		b = make([]byte, m.Size())
  4374  	}
  4375  	buf := codec.NewBuffer(b)
  4376  	buf.EncodeUint32(m.WorkerIndex)
  4377  	buf.EncodeUint32(m.LcoreID)
  4378  	buf.EncodeString(m.Name, 64)
  4379  	return buf.Bytes(), nil
  4380  }
  4381  func (m *NatWorkerDetails) Unmarshal(b []byte) error {
  4382  	buf := codec.NewBuffer(b)
  4383  	m.WorkerIndex = buf.DecodeUint32()
  4384  	m.LcoreID = buf.DecodeUint32()
  4385  	m.Name = buf.DecodeString(64)
  4386  	return nil
  4387  }
  4388  
  4389  // NatWorkerDump defines message 'nat_worker_dump'.
  4390  type NatWorkerDump struct{}
  4391  
  4392  func (m *NatWorkerDump) Reset()               { *m = NatWorkerDump{} }
  4393  func (*NatWorkerDump) GetMessageName() string { return "nat_worker_dump" }
  4394  func (*NatWorkerDump) GetCrcString() string   { return "51077d14" }
  4395  func (*NatWorkerDump) GetMessageType() api.MessageType {
  4396  	return api.RequestMessage
  4397  }
  4398  
  4399  func (m *NatWorkerDump) Size() (size int) {
  4400  	if m == nil {
  4401  		return 0
  4402  	}
  4403  	return size
  4404  }
  4405  func (m *NatWorkerDump) Marshal(b []byte) ([]byte, error) {
  4406  	if b == nil {
  4407  		b = make([]byte, m.Size())
  4408  	}
  4409  	buf := codec.NewBuffer(b)
  4410  	return buf.Bytes(), nil
  4411  }
  4412  func (m *NatWorkerDump) Unmarshal(b []byte) error {
  4413  	return nil
  4414  }
  4415  
  4416  func init() { file_nat44_ed_binapi_init() }
  4417  func file_nat44_ed_binapi_init() {
  4418  	api.RegisterMessage((*Nat44AddDelAddressRange)(nil), "nat44_add_del_address_range_6f2b8055")
  4419  	api.RegisterMessage((*Nat44AddDelAddressRangeReply)(nil), "nat44_add_del_address_range_reply_e8d4e804")
  4420  	api.RegisterMessage((*Nat44AddDelIdentityMapping)(nil), "nat44_add_del_identity_mapping_02faaa22")
  4421  	api.RegisterMessage((*Nat44AddDelIdentityMappingReply)(nil), "nat44_add_del_identity_mapping_reply_e8d4e804")
  4422  	api.RegisterMessage((*Nat44AddDelInterfaceAddr)(nil), "nat44_add_del_interface_addr_4aed50c0")
  4423  	api.RegisterMessage((*Nat44AddDelInterfaceAddrReply)(nil), "nat44_add_del_interface_addr_reply_e8d4e804")
  4424  	api.RegisterMessage((*Nat44AddDelLbStaticMapping)(nil), "nat44_add_del_lb_static_mapping_4f68ee9d")
  4425  	api.RegisterMessage((*Nat44AddDelLbStaticMappingReply)(nil), "nat44_add_del_lb_static_mapping_reply_e8d4e804")
  4426  	api.RegisterMessage((*Nat44AddDelStaticMapping)(nil), "nat44_add_del_static_mapping_5ae5f03e")
  4427  	api.RegisterMessage((*Nat44AddDelStaticMappingReply)(nil), "nat44_add_del_static_mapping_reply_e8d4e804")
  4428  	api.RegisterMessage((*Nat44AddDelStaticMappingV2)(nil), "nat44_add_del_static_mapping_v2_5e205f1a")
  4429  	api.RegisterMessage((*Nat44AddDelStaticMappingV2Reply)(nil), "nat44_add_del_static_mapping_v2_reply_e8d4e804")
  4430  	api.RegisterMessage((*Nat44AddressDetails)(nil), "nat44_address_details_0d1beac1")
  4431  	api.RegisterMessage((*Nat44AddressDump)(nil), "nat44_address_dump_51077d14")
  4432  	api.RegisterMessage((*Nat44DelSession)(nil), "nat44_del_session_15a5bf8c")
  4433  	api.RegisterMessage((*Nat44DelSessionReply)(nil), "nat44_del_session_reply_e8d4e804")
  4434  	api.RegisterMessage((*Nat44DelUser)(nil), "nat44_del_user_99a9f998")
  4435  	api.RegisterMessage((*Nat44DelUserReply)(nil), "nat44_del_user_reply_e8d4e804")
  4436  	api.RegisterMessage((*Nat44EdAddDelOutputInterface)(nil), "nat44_ed_add_del_output_interface_47d6e753")
  4437  	api.RegisterMessage((*Nat44EdAddDelOutputInterfaceReply)(nil), "nat44_ed_add_del_output_interface_reply_e8d4e804")
  4438  	api.RegisterMessage((*Nat44EdOutputInterfaceDetails)(nil), "nat44_ed_output_interface_details_0b45011c")
  4439  	api.RegisterMessage((*Nat44EdOutputInterfaceGet)(nil), "nat44_ed_output_interface_get_f75ba505")
  4440  	api.RegisterMessage((*Nat44EdOutputInterfaceGetReply)(nil), "nat44_ed_output_interface_get_reply_53b48f5d")
  4441  	api.RegisterMessage((*Nat44EdPluginEnableDisable)(nil), "nat44_ed_plugin_enable_disable_be17f8dd")
  4442  	api.RegisterMessage((*Nat44EdPluginEnableDisableReply)(nil), "nat44_ed_plugin_enable_disable_reply_e8d4e804")
  4443  	api.RegisterMessage((*Nat44EdSetFqOptions)(nil), "nat44_ed_set_fq_options_2399bd71")
  4444  	api.RegisterMessage((*Nat44EdSetFqOptionsReply)(nil), "nat44_ed_set_fq_options_reply_e8d4e804")
  4445  	api.RegisterMessage((*Nat44EdShowFqOptions)(nil), "nat44_ed_show_fq_options_51077d14")
  4446  	api.RegisterMessage((*Nat44EdShowFqOptionsReply)(nil), "nat44_ed_show_fq_options_reply_7213b545")
  4447  	api.RegisterMessage((*Nat44ForwardingEnableDisable)(nil), "nat44_forwarding_enable_disable_b3e225d2")
  4448  	api.RegisterMessage((*Nat44ForwardingEnableDisableReply)(nil), "nat44_forwarding_enable_disable_reply_e8d4e804")
  4449  	api.RegisterMessage((*Nat44ForwardingIsEnabled)(nil), "nat44_forwarding_is_enabled_51077d14")
  4450  	api.RegisterMessage((*Nat44ForwardingIsEnabledReply)(nil), "nat44_forwarding_is_enabled_reply_46924a06")
  4451  	api.RegisterMessage((*Nat44IdentityMappingDetails)(nil), "nat44_identity_mapping_details_2a52a030")
  4452  	api.RegisterMessage((*Nat44IdentityMappingDump)(nil), "nat44_identity_mapping_dump_51077d14")
  4453  	api.RegisterMessage((*Nat44InterfaceAddDelFeature)(nil), "nat44_interface_add_del_feature_f3699b83")
  4454  	api.RegisterMessage((*Nat44InterfaceAddDelFeatureReply)(nil), "nat44_interface_add_del_feature_reply_e8d4e804")
  4455  	api.RegisterMessage((*Nat44InterfaceAddDelOutputFeature)(nil), "nat44_interface_add_del_output_feature_f3699b83")
  4456  	api.RegisterMessage((*Nat44InterfaceAddDelOutputFeatureReply)(nil), "nat44_interface_add_del_output_feature_reply_e8d4e804")
  4457  	api.RegisterMessage((*Nat44InterfaceAddrDetails)(nil), "nat44_interface_addr_details_e4aca9ca")
  4458  	api.RegisterMessage((*Nat44InterfaceAddrDump)(nil), "nat44_interface_addr_dump_51077d14")
  4459  	api.RegisterMessage((*Nat44InterfaceDetails)(nil), "nat44_interface_details_5d286289")
  4460  	api.RegisterMessage((*Nat44InterfaceDump)(nil), "nat44_interface_dump_51077d14")
  4461  	api.RegisterMessage((*Nat44InterfaceOutputFeatureDetails)(nil), "nat44_interface_output_feature_details_5d286289")
  4462  	api.RegisterMessage((*Nat44InterfaceOutputFeatureDump)(nil), "nat44_interface_output_feature_dump_51077d14")
  4463  	api.RegisterMessage((*Nat44LbStaticMappingAddDelLocal)(nil), "nat44_lb_static_mapping_add_del_local_7ca47547")
  4464  	api.RegisterMessage((*Nat44LbStaticMappingAddDelLocalReply)(nil), "nat44_lb_static_mapping_add_del_local_reply_e8d4e804")
  4465  	api.RegisterMessage((*Nat44LbStaticMappingDetails)(nil), "nat44_lb_static_mapping_details_ed5ce876")
  4466  	api.RegisterMessage((*Nat44LbStaticMappingDump)(nil), "nat44_lb_static_mapping_dump_51077d14")
  4467  	api.RegisterMessage((*Nat44PluginEnableDisable)(nil), "nat44_plugin_enable_disable_dea0d501")
  4468  	api.RegisterMessage((*Nat44PluginEnableDisableReply)(nil), "nat44_plugin_enable_disable_reply_e8d4e804")
  4469  	api.RegisterMessage((*Nat44SessionCleanup)(nil), "nat44_session_cleanup_51077d14")
  4470  	api.RegisterMessage((*Nat44SessionCleanupReply)(nil), "nat44_session_cleanup_reply_e8d4e804")
  4471  	api.RegisterMessage((*Nat44SetSessionLimit)(nil), "nat44_set_session_limit_8899bbb1")
  4472  	api.RegisterMessage((*Nat44SetSessionLimitReply)(nil), "nat44_set_session_limit_reply_e8d4e804")
  4473  	api.RegisterMessage((*Nat44ShowRunningConfig)(nil), "nat44_show_running_config_51077d14")
  4474  	api.RegisterMessage((*Nat44ShowRunningConfigReply)(nil), "nat44_show_running_config_reply_93d8e267")
  4475  	api.RegisterMessage((*Nat44StaticMappingDetails)(nil), "nat44_static_mapping_details_06cb40b2")
  4476  	api.RegisterMessage((*Nat44StaticMappingDump)(nil), "nat44_static_mapping_dump_51077d14")
  4477  	api.RegisterMessage((*Nat44UserDetails)(nil), "nat44_user_details_355896c2")
  4478  	api.RegisterMessage((*Nat44UserDump)(nil), "nat44_user_dump_51077d14")
  4479  	api.RegisterMessage((*Nat44UserSessionDetails)(nil), "nat44_user_session_details_2cf6e16d")
  4480  	api.RegisterMessage((*Nat44UserSessionDump)(nil), "nat44_user_session_dump_e1899c98")
  4481  	api.RegisterMessage((*Nat44UserSessionV2Details)(nil), "nat44_user_session_v2_details_fd42b729")
  4482  	api.RegisterMessage((*Nat44UserSessionV2Dump)(nil), "nat44_user_session_v2_dump_e1899c98")
  4483  	api.RegisterMessage((*NatControlPing)(nil), "nat_control_ping_51077d14")
  4484  	api.RegisterMessage((*NatControlPingReply)(nil), "nat_control_ping_reply_f6b0b8ca")
  4485  	api.RegisterMessage((*NatGetAddrAndPortAllocAlg)(nil), "nat_get_addr_and_port_alloc_alg_51077d14")
  4486  	api.RegisterMessage((*NatGetAddrAndPortAllocAlgReply)(nil), "nat_get_addr_and_port_alloc_alg_reply_3607a7d0")
  4487  	api.RegisterMessage((*NatGetMssClamping)(nil), "nat_get_mss_clamping_51077d14")
  4488  	api.RegisterMessage((*NatGetMssClampingReply)(nil), "nat_get_mss_clamping_reply_1c0b2a78")
  4489  	api.RegisterMessage((*NatGetTimeouts)(nil), "nat_get_timeouts_51077d14")
  4490  	api.RegisterMessage((*NatGetTimeoutsReply)(nil), "nat_get_timeouts_reply_3c4df4e1")
  4491  	api.RegisterMessage((*NatHaFlush)(nil), "nat_ha_flush_51077d14")
  4492  	api.RegisterMessage((*NatHaFlushReply)(nil), "nat_ha_flush_reply_e8d4e804")
  4493  	api.RegisterMessage((*NatHaGetFailover)(nil), "nat_ha_get_failover_51077d14")
  4494  	api.RegisterMessage((*NatHaGetFailoverReply)(nil), "nat_ha_get_failover_reply_a67d8752")
  4495  	api.RegisterMessage((*NatHaGetListener)(nil), "nat_ha_get_listener_51077d14")
  4496  	api.RegisterMessage((*NatHaGetListenerReply)(nil), "nat_ha_get_listener_reply_123ea41f")
  4497  	api.RegisterMessage((*NatHaResync)(nil), "nat_ha_resync_c8ab9e03")
  4498  	api.RegisterMessage((*NatHaResyncCompletedEvent)(nil), "nat_ha_resync_completed_event_fdc598fb")
  4499  	api.RegisterMessage((*NatHaResyncReply)(nil), "nat_ha_resync_reply_e8d4e804")
  4500  	api.RegisterMessage((*NatHaSetFailover)(nil), "nat_ha_set_failover_718246af")
  4501  	api.RegisterMessage((*NatHaSetFailoverReply)(nil), "nat_ha_set_failover_reply_e8d4e804")
  4502  	api.RegisterMessage((*NatHaSetListener)(nil), "nat_ha_set_listener_e4a8cb4e")
  4503  	api.RegisterMessage((*NatHaSetListenerReply)(nil), "nat_ha_set_listener_reply_e8d4e804")
  4504  	api.RegisterMessage((*NatIpfixEnableDisable)(nil), "nat_ipfix_enable_disable_9af4a2d2")
  4505  	api.RegisterMessage((*NatIpfixEnableDisableReply)(nil), "nat_ipfix_enable_disable_reply_e8d4e804")
  4506  	api.RegisterMessage((*NatSetAddrAndPortAllocAlg)(nil), "nat_set_addr_and_port_alloc_alg_deeb746f")
  4507  	api.RegisterMessage((*NatSetAddrAndPortAllocAlgReply)(nil), "nat_set_addr_and_port_alloc_alg_reply_e8d4e804")
  4508  	api.RegisterMessage((*NatSetLogLevel)(nil), "nat_set_log_level_70076bfe")
  4509  	api.RegisterMessage((*NatSetLogLevelReply)(nil), "nat_set_log_level_reply_e8d4e804")
  4510  	api.RegisterMessage((*NatSetMssClamping)(nil), "nat_set_mss_clamping_25e90abb")
  4511  	api.RegisterMessage((*NatSetMssClampingReply)(nil), "nat_set_mss_clamping_reply_e8d4e804")
  4512  	api.RegisterMessage((*NatSetTimeouts)(nil), "nat_set_timeouts_d4746b16")
  4513  	api.RegisterMessage((*NatSetTimeoutsReply)(nil), "nat_set_timeouts_reply_e8d4e804")
  4514  	api.RegisterMessage((*NatSetWorkers)(nil), "nat_set_workers_da926638")
  4515  	api.RegisterMessage((*NatSetWorkersReply)(nil), "nat_set_workers_reply_e8d4e804")
  4516  	api.RegisterMessage((*NatShowConfig)(nil), "nat_show_config_51077d14")
  4517  	api.RegisterMessage((*NatShowConfig2)(nil), "nat_show_config_2_51077d14")
  4518  	api.RegisterMessage((*NatShowConfig2Reply)(nil), "nat_show_config_2_reply_0404a5b4")
  4519  	api.RegisterMessage((*NatShowConfigReply)(nil), "nat_show_config_reply_7903ef06")
  4520  	api.RegisterMessage((*NatWorkerDetails)(nil), "nat_worker_details_84bf06fc")
  4521  	api.RegisterMessage((*NatWorkerDump)(nil), "nat_worker_dump_51077d14")
  4522  }
  4523  
  4524  // Messages returns list of all messages in this module.
  4525  func AllMessages() []api.Message {
  4526  	return []api.Message{
  4527  		(*Nat44AddDelAddressRange)(nil),
  4528  		(*Nat44AddDelAddressRangeReply)(nil),
  4529  		(*Nat44AddDelIdentityMapping)(nil),
  4530  		(*Nat44AddDelIdentityMappingReply)(nil),
  4531  		(*Nat44AddDelInterfaceAddr)(nil),
  4532  		(*Nat44AddDelInterfaceAddrReply)(nil),
  4533  		(*Nat44AddDelLbStaticMapping)(nil),
  4534  		(*Nat44AddDelLbStaticMappingReply)(nil),
  4535  		(*Nat44AddDelStaticMapping)(nil),
  4536  		(*Nat44AddDelStaticMappingReply)(nil),
  4537  		(*Nat44AddDelStaticMappingV2)(nil),
  4538  		(*Nat44AddDelStaticMappingV2Reply)(nil),
  4539  		(*Nat44AddressDetails)(nil),
  4540  		(*Nat44AddressDump)(nil),
  4541  		(*Nat44DelSession)(nil),
  4542  		(*Nat44DelSessionReply)(nil),
  4543  		(*Nat44DelUser)(nil),
  4544  		(*Nat44DelUserReply)(nil),
  4545  		(*Nat44EdAddDelOutputInterface)(nil),
  4546  		(*Nat44EdAddDelOutputInterfaceReply)(nil),
  4547  		(*Nat44EdOutputInterfaceDetails)(nil),
  4548  		(*Nat44EdOutputInterfaceGet)(nil),
  4549  		(*Nat44EdOutputInterfaceGetReply)(nil),
  4550  		(*Nat44EdPluginEnableDisable)(nil),
  4551  		(*Nat44EdPluginEnableDisableReply)(nil),
  4552  		(*Nat44EdSetFqOptions)(nil),
  4553  		(*Nat44EdSetFqOptionsReply)(nil),
  4554  		(*Nat44EdShowFqOptions)(nil),
  4555  		(*Nat44EdShowFqOptionsReply)(nil),
  4556  		(*Nat44ForwardingEnableDisable)(nil),
  4557  		(*Nat44ForwardingEnableDisableReply)(nil),
  4558  		(*Nat44ForwardingIsEnabled)(nil),
  4559  		(*Nat44ForwardingIsEnabledReply)(nil),
  4560  		(*Nat44IdentityMappingDetails)(nil),
  4561  		(*Nat44IdentityMappingDump)(nil),
  4562  		(*Nat44InterfaceAddDelFeature)(nil),
  4563  		(*Nat44InterfaceAddDelFeatureReply)(nil),
  4564  		(*Nat44InterfaceAddDelOutputFeature)(nil),
  4565  		(*Nat44InterfaceAddDelOutputFeatureReply)(nil),
  4566  		(*Nat44InterfaceAddrDetails)(nil),
  4567  		(*Nat44InterfaceAddrDump)(nil),
  4568  		(*Nat44InterfaceDetails)(nil),
  4569  		(*Nat44InterfaceDump)(nil),
  4570  		(*Nat44InterfaceOutputFeatureDetails)(nil),
  4571  		(*Nat44InterfaceOutputFeatureDump)(nil),
  4572  		(*Nat44LbStaticMappingAddDelLocal)(nil),
  4573  		(*Nat44LbStaticMappingAddDelLocalReply)(nil),
  4574  		(*Nat44LbStaticMappingDetails)(nil),
  4575  		(*Nat44LbStaticMappingDump)(nil),
  4576  		(*Nat44PluginEnableDisable)(nil),
  4577  		(*Nat44PluginEnableDisableReply)(nil),
  4578  		(*Nat44SessionCleanup)(nil),
  4579  		(*Nat44SessionCleanupReply)(nil),
  4580  		(*Nat44SetSessionLimit)(nil),
  4581  		(*Nat44SetSessionLimitReply)(nil),
  4582  		(*Nat44ShowRunningConfig)(nil),
  4583  		(*Nat44ShowRunningConfigReply)(nil),
  4584  		(*Nat44StaticMappingDetails)(nil),
  4585  		(*Nat44StaticMappingDump)(nil),
  4586  		(*Nat44UserDetails)(nil),
  4587  		(*Nat44UserDump)(nil),
  4588  		(*Nat44UserSessionDetails)(nil),
  4589  		(*Nat44UserSessionDump)(nil),
  4590  		(*Nat44UserSessionV2Details)(nil),
  4591  		(*Nat44UserSessionV2Dump)(nil),
  4592  		(*NatControlPing)(nil),
  4593  		(*NatControlPingReply)(nil),
  4594  		(*NatGetAddrAndPortAllocAlg)(nil),
  4595  		(*NatGetAddrAndPortAllocAlgReply)(nil),
  4596  		(*NatGetMssClamping)(nil),
  4597  		(*NatGetMssClampingReply)(nil),
  4598  		(*NatGetTimeouts)(nil),
  4599  		(*NatGetTimeoutsReply)(nil),
  4600  		(*NatHaFlush)(nil),
  4601  		(*NatHaFlushReply)(nil),
  4602  		(*NatHaGetFailover)(nil),
  4603  		(*NatHaGetFailoverReply)(nil),
  4604  		(*NatHaGetListener)(nil),
  4605  		(*NatHaGetListenerReply)(nil),
  4606  		(*NatHaResync)(nil),
  4607  		(*NatHaResyncCompletedEvent)(nil),
  4608  		(*NatHaResyncReply)(nil),
  4609  		(*NatHaSetFailover)(nil),
  4610  		(*NatHaSetFailoverReply)(nil),
  4611  		(*NatHaSetListener)(nil),
  4612  		(*NatHaSetListenerReply)(nil),
  4613  		(*NatIpfixEnableDisable)(nil),
  4614  		(*NatIpfixEnableDisableReply)(nil),
  4615  		(*NatSetAddrAndPortAllocAlg)(nil),
  4616  		(*NatSetAddrAndPortAllocAlgReply)(nil),
  4617  		(*NatSetLogLevel)(nil),
  4618  		(*NatSetLogLevelReply)(nil),
  4619  		(*NatSetMssClamping)(nil),
  4620  		(*NatSetMssClampingReply)(nil),
  4621  		(*NatSetTimeouts)(nil),
  4622  		(*NatSetTimeoutsReply)(nil),
  4623  		(*NatSetWorkers)(nil),
  4624  		(*NatSetWorkersReply)(nil),
  4625  		(*NatShowConfig)(nil),
  4626  		(*NatShowConfig2)(nil),
  4627  		(*NatShowConfig2Reply)(nil),
  4628  		(*NatShowConfigReply)(nil),
  4629  		(*NatWorkerDetails)(nil),
  4630  		(*NatWorkerDump)(nil),
  4631  	}
  4632  }