go.ligato.io/vpp-agent/v3@v3.5.0/plugins/vpp/binapi/vpp2210/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  // - 90 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/vpp2210/interface_types"
    17  	ip_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2210/ip_types"
    18  	nat_types "go.ligato.io/vpp-agent/v3/plugins/vpp/binapi/vpp2210/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.5.0"
    30  	VersionCrc = 0x92c7e7a5
    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  type Nat44AddDelStaticMappingV2 struct {
   583  	IsAdd             bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
   584  	MatchPool         bool                           `binapi:"bool,name=match_pool" json:"match_pool,omitempty"`
   585  	Flags             nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
   586  	PoolIPAddress     ip_types.IP4Address            `binapi:"ip4_address,name=pool_ip_address" json:"pool_ip_address,omitempty"`
   587  	LocalIPAddress    ip_types.IP4Address            `binapi:"ip4_address,name=local_ip_address" json:"local_ip_address,omitempty"`
   588  	ExternalIPAddress ip_types.IP4Address            `binapi:"ip4_address,name=external_ip_address" json:"external_ip_address,omitempty"`
   589  	Protocol          uint8                          `binapi:"u8,name=protocol" json:"protocol,omitempty"`
   590  	LocalPort         uint16                         `binapi:"u16,name=local_port" json:"local_port,omitempty"`
   591  	ExternalPort      uint16                         `binapi:"u16,name=external_port" json:"external_port,omitempty"`
   592  	ExternalSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=external_sw_if_index" json:"external_sw_if_index,omitempty"`
   593  	VrfID             uint32                         `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
   594  	Tag               string                         `binapi:"string[64],name=tag" json:"tag,omitempty"`
   595  }
   596  
   597  func (m *Nat44AddDelStaticMappingV2) Reset()               { *m = Nat44AddDelStaticMappingV2{} }
   598  func (*Nat44AddDelStaticMappingV2) GetMessageName() string { return "nat44_add_del_static_mapping_v2" }
   599  func (*Nat44AddDelStaticMappingV2) GetCrcString() string   { return "5e205f1a" }
   600  func (*Nat44AddDelStaticMappingV2) GetMessageType() api.MessageType {
   601  	return api.RequestMessage
   602  }
   603  
   604  func (m *Nat44AddDelStaticMappingV2) Size() (size int) {
   605  	if m == nil {
   606  		return 0
   607  	}
   608  	size += 1     // m.IsAdd
   609  	size += 1     // m.MatchPool
   610  	size += 1     // m.Flags
   611  	size += 1 * 4 // m.PoolIPAddress
   612  	size += 1 * 4 // m.LocalIPAddress
   613  	size += 1 * 4 // m.ExternalIPAddress
   614  	size += 1     // m.Protocol
   615  	size += 2     // m.LocalPort
   616  	size += 2     // m.ExternalPort
   617  	size += 4     // m.ExternalSwIfIndex
   618  	size += 4     // m.VrfID
   619  	size += 64    // m.Tag
   620  	return size
   621  }
   622  func (m *Nat44AddDelStaticMappingV2) Marshal(b []byte) ([]byte, error) {
   623  	if b == nil {
   624  		b = make([]byte, m.Size())
   625  	}
   626  	buf := codec.NewBuffer(b)
   627  	buf.EncodeBool(m.IsAdd)
   628  	buf.EncodeBool(m.MatchPool)
   629  	buf.EncodeUint8(uint8(m.Flags))
   630  	buf.EncodeBytes(m.PoolIPAddress[:], 4)
   631  	buf.EncodeBytes(m.LocalIPAddress[:], 4)
   632  	buf.EncodeBytes(m.ExternalIPAddress[:], 4)
   633  	buf.EncodeUint8(m.Protocol)
   634  	buf.EncodeUint16(m.LocalPort)
   635  	buf.EncodeUint16(m.ExternalPort)
   636  	buf.EncodeUint32(uint32(m.ExternalSwIfIndex))
   637  	buf.EncodeUint32(m.VrfID)
   638  	buf.EncodeString(m.Tag, 64)
   639  	return buf.Bytes(), nil
   640  }
   641  func (m *Nat44AddDelStaticMappingV2) Unmarshal(b []byte) error {
   642  	buf := codec.NewBuffer(b)
   643  	m.IsAdd = buf.DecodeBool()
   644  	m.MatchPool = buf.DecodeBool()
   645  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
   646  	copy(m.PoolIPAddress[:], buf.DecodeBytes(4))
   647  	copy(m.LocalIPAddress[:], buf.DecodeBytes(4))
   648  	copy(m.ExternalIPAddress[:], buf.DecodeBytes(4))
   649  	m.Protocol = buf.DecodeUint8()
   650  	m.LocalPort = buf.DecodeUint16()
   651  	m.ExternalPort = buf.DecodeUint16()
   652  	m.ExternalSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   653  	m.VrfID = buf.DecodeUint32()
   654  	m.Tag = buf.DecodeString(64)
   655  	return nil
   656  }
   657  
   658  // Nat44AddDelStaticMappingV2Reply defines message 'nat44_add_del_static_mapping_v2_reply'.
   659  type Nat44AddDelStaticMappingV2Reply struct {
   660  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   661  }
   662  
   663  func (m *Nat44AddDelStaticMappingV2Reply) Reset() { *m = Nat44AddDelStaticMappingV2Reply{} }
   664  func (*Nat44AddDelStaticMappingV2Reply) GetMessageName() string {
   665  	return "nat44_add_del_static_mapping_v2_reply"
   666  }
   667  func (*Nat44AddDelStaticMappingV2Reply) GetCrcString() string { return "e8d4e804" }
   668  func (*Nat44AddDelStaticMappingV2Reply) GetMessageType() api.MessageType {
   669  	return api.ReplyMessage
   670  }
   671  
   672  func (m *Nat44AddDelStaticMappingV2Reply) Size() (size int) {
   673  	if m == nil {
   674  		return 0
   675  	}
   676  	size += 4 // m.Retval
   677  	return size
   678  }
   679  func (m *Nat44AddDelStaticMappingV2Reply) Marshal(b []byte) ([]byte, error) {
   680  	if b == nil {
   681  		b = make([]byte, m.Size())
   682  	}
   683  	buf := codec.NewBuffer(b)
   684  	buf.EncodeInt32(m.Retval)
   685  	return buf.Bytes(), nil
   686  }
   687  func (m *Nat44AddDelStaticMappingV2Reply) Unmarshal(b []byte) error {
   688  	buf := codec.NewBuffer(b)
   689  	m.Retval = buf.DecodeInt32()
   690  	return nil
   691  }
   692  
   693  // Nat44AddressDetails defines message 'nat44_address_details'.
   694  type Nat44AddressDetails struct {
   695  	IPAddress ip_types.IP4Address      `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
   696  	Flags     nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
   697  	VrfID     uint32                   `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
   698  }
   699  
   700  func (m *Nat44AddressDetails) Reset()               { *m = Nat44AddressDetails{} }
   701  func (*Nat44AddressDetails) GetMessageName() string { return "nat44_address_details" }
   702  func (*Nat44AddressDetails) GetCrcString() string   { return "0d1beac1" }
   703  func (*Nat44AddressDetails) GetMessageType() api.MessageType {
   704  	return api.ReplyMessage
   705  }
   706  
   707  func (m *Nat44AddressDetails) Size() (size int) {
   708  	if m == nil {
   709  		return 0
   710  	}
   711  	size += 1 * 4 // m.IPAddress
   712  	size += 1     // m.Flags
   713  	size += 4     // m.VrfID
   714  	return size
   715  }
   716  func (m *Nat44AddressDetails) Marshal(b []byte) ([]byte, error) {
   717  	if b == nil {
   718  		b = make([]byte, m.Size())
   719  	}
   720  	buf := codec.NewBuffer(b)
   721  	buf.EncodeBytes(m.IPAddress[:], 4)
   722  	buf.EncodeUint8(uint8(m.Flags))
   723  	buf.EncodeUint32(m.VrfID)
   724  	return buf.Bytes(), nil
   725  }
   726  func (m *Nat44AddressDetails) Unmarshal(b []byte) error {
   727  	buf := codec.NewBuffer(b)
   728  	copy(m.IPAddress[:], buf.DecodeBytes(4))
   729  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
   730  	m.VrfID = buf.DecodeUint32()
   731  	return nil
   732  }
   733  
   734  // Nat44AddressDump defines message 'nat44_address_dump'.
   735  type Nat44AddressDump struct{}
   736  
   737  func (m *Nat44AddressDump) Reset()               { *m = Nat44AddressDump{} }
   738  func (*Nat44AddressDump) GetMessageName() string { return "nat44_address_dump" }
   739  func (*Nat44AddressDump) GetCrcString() string   { return "51077d14" }
   740  func (*Nat44AddressDump) GetMessageType() api.MessageType {
   741  	return api.RequestMessage
   742  }
   743  
   744  func (m *Nat44AddressDump) Size() (size int) {
   745  	if m == nil {
   746  		return 0
   747  	}
   748  	return size
   749  }
   750  func (m *Nat44AddressDump) Marshal(b []byte) ([]byte, error) {
   751  	if b == nil {
   752  		b = make([]byte, m.Size())
   753  	}
   754  	buf := codec.NewBuffer(b)
   755  	return buf.Bytes(), nil
   756  }
   757  func (m *Nat44AddressDump) Unmarshal(b []byte) error {
   758  	return nil
   759  }
   760  
   761  // Nat44DelSession defines message 'nat44_del_session'.
   762  type Nat44DelSession struct {
   763  	Address        ip_types.IP4Address      `binapi:"ip4_address,name=address" json:"address,omitempty"`
   764  	Protocol       uint8                    `binapi:"u8,name=protocol" json:"protocol,omitempty"`
   765  	Port           uint16                   `binapi:"u16,name=port" json:"port,omitempty"`
   766  	VrfID          uint32                   `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
   767  	Flags          nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
   768  	ExtHostAddress ip_types.IP4Address      `binapi:"ip4_address,name=ext_host_address" json:"ext_host_address,omitempty"`
   769  	ExtHostPort    uint16                   `binapi:"u16,name=ext_host_port" json:"ext_host_port,omitempty"`
   770  }
   771  
   772  func (m *Nat44DelSession) Reset()               { *m = Nat44DelSession{} }
   773  func (*Nat44DelSession) GetMessageName() string { return "nat44_del_session" }
   774  func (*Nat44DelSession) GetCrcString() string   { return "15a5bf8c" }
   775  func (*Nat44DelSession) GetMessageType() api.MessageType {
   776  	return api.RequestMessage
   777  }
   778  
   779  func (m *Nat44DelSession) Size() (size int) {
   780  	if m == nil {
   781  		return 0
   782  	}
   783  	size += 1 * 4 // m.Address
   784  	size += 1     // m.Protocol
   785  	size += 2     // m.Port
   786  	size += 4     // m.VrfID
   787  	size += 1     // m.Flags
   788  	size += 1 * 4 // m.ExtHostAddress
   789  	size += 2     // m.ExtHostPort
   790  	return size
   791  }
   792  func (m *Nat44DelSession) Marshal(b []byte) ([]byte, error) {
   793  	if b == nil {
   794  		b = make([]byte, m.Size())
   795  	}
   796  	buf := codec.NewBuffer(b)
   797  	buf.EncodeBytes(m.Address[:], 4)
   798  	buf.EncodeUint8(m.Protocol)
   799  	buf.EncodeUint16(m.Port)
   800  	buf.EncodeUint32(m.VrfID)
   801  	buf.EncodeUint8(uint8(m.Flags))
   802  	buf.EncodeBytes(m.ExtHostAddress[:], 4)
   803  	buf.EncodeUint16(m.ExtHostPort)
   804  	return buf.Bytes(), nil
   805  }
   806  func (m *Nat44DelSession) Unmarshal(b []byte) error {
   807  	buf := codec.NewBuffer(b)
   808  	copy(m.Address[:], buf.DecodeBytes(4))
   809  	m.Protocol = buf.DecodeUint8()
   810  	m.Port = buf.DecodeUint16()
   811  	m.VrfID = buf.DecodeUint32()
   812  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
   813  	copy(m.ExtHostAddress[:], buf.DecodeBytes(4))
   814  	m.ExtHostPort = buf.DecodeUint16()
   815  	return nil
   816  }
   817  
   818  // Nat44DelSessionReply defines message 'nat44_del_session_reply'.
   819  type Nat44DelSessionReply struct {
   820  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   821  }
   822  
   823  func (m *Nat44DelSessionReply) Reset()               { *m = Nat44DelSessionReply{} }
   824  func (*Nat44DelSessionReply) GetMessageName() string { return "nat44_del_session_reply" }
   825  func (*Nat44DelSessionReply) GetCrcString() string   { return "e8d4e804" }
   826  func (*Nat44DelSessionReply) GetMessageType() api.MessageType {
   827  	return api.ReplyMessage
   828  }
   829  
   830  func (m *Nat44DelSessionReply) Size() (size int) {
   831  	if m == nil {
   832  		return 0
   833  	}
   834  	size += 4 // m.Retval
   835  	return size
   836  }
   837  func (m *Nat44DelSessionReply) Marshal(b []byte) ([]byte, error) {
   838  	if b == nil {
   839  		b = make([]byte, m.Size())
   840  	}
   841  	buf := codec.NewBuffer(b)
   842  	buf.EncodeInt32(m.Retval)
   843  	return buf.Bytes(), nil
   844  }
   845  func (m *Nat44DelSessionReply) Unmarshal(b []byte) error {
   846  	buf := codec.NewBuffer(b)
   847  	m.Retval = buf.DecodeInt32()
   848  	return nil
   849  }
   850  
   851  // Nat44DelUser defines message 'nat44_del_user'.
   852  // Deprecated: the message will be removed in the future versions
   853  type Nat44DelUser struct {
   854  	IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
   855  	FibIndex  uint32              `binapi:"u32,name=fib_index" json:"fib_index,omitempty"`
   856  }
   857  
   858  func (m *Nat44DelUser) Reset()               { *m = Nat44DelUser{} }
   859  func (*Nat44DelUser) GetMessageName() string { return "nat44_del_user" }
   860  func (*Nat44DelUser) GetCrcString() string   { return "99a9f998" }
   861  func (*Nat44DelUser) GetMessageType() api.MessageType {
   862  	return api.RequestMessage
   863  }
   864  
   865  func (m *Nat44DelUser) Size() (size int) {
   866  	if m == nil {
   867  		return 0
   868  	}
   869  	size += 1 * 4 // m.IPAddress
   870  	size += 4     // m.FibIndex
   871  	return size
   872  }
   873  func (m *Nat44DelUser) Marshal(b []byte) ([]byte, error) {
   874  	if b == nil {
   875  		b = make([]byte, m.Size())
   876  	}
   877  	buf := codec.NewBuffer(b)
   878  	buf.EncodeBytes(m.IPAddress[:], 4)
   879  	buf.EncodeUint32(m.FibIndex)
   880  	return buf.Bytes(), nil
   881  }
   882  func (m *Nat44DelUser) Unmarshal(b []byte) error {
   883  	buf := codec.NewBuffer(b)
   884  	copy(m.IPAddress[:], buf.DecodeBytes(4))
   885  	m.FibIndex = buf.DecodeUint32()
   886  	return nil
   887  }
   888  
   889  // Nat44DelUserReply defines message 'nat44_del_user_reply'.
   890  // Deprecated: the message will be removed in the future versions
   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  // Nat44EdAddDelVrfRoute defines message 'nat44_ed_add_del_vrf_route'.
   998  type Nat44EdAddDelVrfRoute struct {
   999  	TableVrfID uint32 `binapi:"u32,name=table_vrf_id" json:"table_vrf_id,omitempty"`
  1000  	VrfID      uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  1001  	IsAdd      bool   `binapi:"bool,name=is_add" json:"is_add,omitempty"`
  1002  }
  1003  
  1004  func (m *Nat44EdAddDelVrfRoute) Reset()               { *m = Nat44EdAddDelVrfRoute{} }
  1005  func (*Nat44EdAddDelVrfRoute) GetMessageName() string { return "nat44_ed_add_del_vrf_route" }
  1006  func (*Nat44EdAddDelVrfRoute) GetCrcString() string   { return "59187407" }
  1007  func (*Nat44EdAddDelVrfRoute) GetMessageType() api.MessageType {
  1008  	return api.RequestMessage
  1009  }
  1010  
  1011  func (m *Nat44EdAddDelVrfRoute) Size() (size int) {
  1012  	if m == nil {
  1013  		return 0
  1014  	}
  1015  	size += 4 // m.TableVrfID
  1016  	size += 4 // m.VrfID
  1017  	size += 1 // m.IsAdd
  1018  	return size
  1019  }
  1020  func (m *Nat44EdAddDelVrfRoute) Marshal(b []byte) ([]byte, error) {
  1021  	if b == nil {
  1022  		b = make([]byte, m.Size())
  1023  	}
  1024  	buf := codec.NewBuffer(b)
  1025  	buf.EncodeUint32(m.TableVrfID)
  1026  	buf.EncodeUint32(m.VrfID)
  1027  	buf.EncodeBool(m.IsAdd)
  1028  	return buf.Bytes(), nil
  1029  }
  1030  func (m *Nat44EdAddDelVrfRoute) Unmarshal(b []byte) error {
  1031  	buf := codec.NewBuffer(b)
  1032  	m.TableVrfID = buf.DecodeUint32()
  1033  	m.VrfID = buf.DecodeUint32()
  1034  	m.IsAdd = buf.DecodeBool()
  1035  	return nil
  1036  }
  1037  
  1038  // Nat44EdAddDelVrfRouteReply defines message 'nat44_ed_add_del_vrf_route_reply'.
  1039  type Nat44EdAddDelVrfRouteReply struct {
  1040  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1041  }
  1042  
  1043  func (m *Nat44EdAddDelVrfRouteReply) Reset()               { *m = Nat44EdAddDelVrfRouteReply{} }
  1044  func (*Nat44EdAddDelVrfRouteReply) GetMessageName() string { return "nat44_ed_add_del_vrf_route_reply" }
  1045  func (*Nat44EdAddDelVrfRouteReply) GetCrcString() string   { return "e8d4e804" }
  1046  func (*Nat44EdAddDelVrfRouteReply) GetMessageType() api.MessageType {
  1047  	return api.ReplyMessage
  1048  }
  1049  
  1050  func (m *Nat44EdAddDelVrfRouteReply) Size() (size int) {
  1051  	if m == nil {
  1052  		return 0
  1053  	}
  1054  	size += 4 // m.Retval
  1055  	return size
  1056  }
  1057  func (m *Nat44EdAddDelVrfRouteReply) Marshal(b []byte) ([]byte, error) {
  1058  	if b == nil {
  1059  		b = make([]byte, m.Size())
  1060  	}
  1061  	buf := codec.NewBuffer(b)
  1062  	buf.EncodeInt32(m.Retval)
  1063  	return buf.Bytes(), nil
  1064  }
  1065  func (m *Nat44EdAddDelVrfRouteReply) Unmarshal(b []byte) error {
  1066  	buf := codec.NewBuffer(b)
  1067  	m.Retval = buf.DecodeInt32()
  1068  	return nil
  1069  }
  1070  
  1071  // Nat44EdAddDelVrfTable defines message 'nat44_ed_add_del_vrf_table'.
  1072  type Nat44EdAddDelVrfTable struct {
  1073  	TableVrfID uint32 `binapi:"u32,name=table_vrf_id" json:"table_vrf_id,omitempty"`
  1074  	IsAdd      bool   `binapi:"bool,name=is_add" json:"is_add,omitempty"`
  1075  }
  1076  
  1077  func (m *Nat44EdAddDelVrfTable) Reset()               { *m = Nat44EdAddDelVrfTable{} }
  1078  func (*Nat44EdAddDelVrfTable) GetMessageName() string { return "nat44_ed_add_del_vrf_table" }
  1079  func (*Nat44EdAddDelVrfTable) GetCrcString() string   { return "08330904" }
  1080  func (*Nat44EdAddDelVrfTable) GetMessageType() api.MessageType {
  1081  	return api.RequestMessage
  1082  }
  1083  
  1084  func (m *Nat44EdAddDelVrfTable) Size() (size int) {
  1085  	if m == nil {
  1086  		return 0
  1087  	}
  1088  	size += 4 // m.TableVrfID
  1089  	size += 1 // m.IsAdd
  1090  	return size
  1091  }
  1092  func (m *Nat44EdAddDelVrfTable) Marshal(b []byte) ([]byte, error) {
  1093  	if b == nil {
  1094  		b = make([]byte, m.Size())
  1095  	}
  1096  	buf := codec.NewBuffer(b)
  1097  	buf.EncodeUint32(m.TableVrfID)
  1098  	buf.EncodeBool(m.IsAdd)
  1099  	return buf.Bytes(), nil
  1100  }
  1101  func (m *Nat44EdAddDelVrfTable) Unmarshal(b []byte) error {
  1102  	buf := codec.NewBuffer(b)
  1103  	m.TableVrfID = buf.DecodeUint32()
  1104  	m.IsAdd = buf.DecodeBool()
  1105  	return nil
  1106  }
  1107  
  1108  // Nat44EdAddDelVrfTableReply defines message 'nat44_ed_add_del_vrf_table_reply'.
  1109  type Nat44EdAddDelVrfTableReply struct {
  1110  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1111  }
  1112  
  1113  func (m *Nat44EdAddDelVrfTableReply) Reset()               { *m = Nat44EdAddDelVrfTableReply{} }
  1114  func (*Nat44EdAddDelVrfTableReply) GetMessageName() string { return "nat44_ed_add_del_vrf_table_reply" }
  1115  func (*Nat44EdAddDelVrfTableReply) GetCrcString() string   { return "e8d4e804" }
  1116  func (*Nat44EdAddDelVrfTableReply) GetMessageType() api.MessageType {
  1117  	return api.ReplyMessage
  1118  }
  1119  
  1120  func (m *Nat44EdAddDelVrfTableReply) Size() (size int) {
  1121  	if m == nil {
  1122  		return 0
  1123  	}
  1124  	size += 4 // m.Retval
  1125  	return size
  1126  }
  1127  func (m *Nat44EdAddDelVrfTableReply) Marshal(b []byte) ([]byte, error) {
  1128  	if b == nil {
  1129  		b = make([]byte, m.Size())
  1130  	}
  1131  	buf := codec.NewBuffer(b)
  1132  	buf.EncodeInt32(m.Retval)
  1133  	return buf.Bytes(), nil
  1134  }
  1135  func (m *Nat44EdAddDelVrfTableReply) Unmarshal(b []byte) error {
  1136  	buf := codec.NewBuffer(b)
  1137  	m.Retval = buf.DecodeInt32()
  1138  	return nil
  1139  }
  1140  
  1141  // Nat44EdOutputInterfaceDetails defines message 'nat44_ed_output_interface_details'.
  1142  type Nat44EdOutputInterfaceDetails struct {
  1143  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1144  }
  1145  
  1146  func (m *Nat44EdOutputInterfaceDetails) Reset() { *m = Nat44EdOutputInterfaceDetails{} }
  1147  func (*Nat44EdOutputInterfaceDetails) GetMessageName() string {
  1148  	return "nat44_ed_output_interface_details"
  1149  }
  1150  func (*Nat44EdOutputInterfaceDetails) GetCrcString() string { return "0b45011c" }
  1151  func (*Nat44EdOutputInterfaceDetails) GetMessageType() api.MessageType {
  1152  	return api.ReplyMessage
  1153  }
  1154  
  1155  func (m *Nat44EdOutputInterfaceDetails) Size() (size int) {
  1156  	if m == nil {
  1157  		return 0
  1158  	}
  1159  	size += 4 // m.SwIfIndex
  1160  	return size
  1161  }
  1162  func (m *Nat44EdOutputInterfaceDetails) Marshal(b []byte) ([]byte, error) {
  1163  	if b == nil {
  1164  		b = make([]byte, m.Size())
  1165  	}
  1166  	buf := codec.NewBuffer(b)
  1167  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1168  	return buf.Bytes(), nil
  1169  }
  1170  func (m *Nat44EdOutputInterfaceDetails) Unmarshal(b []byte) error {
  1171  	buf := codec.NewBuffer(b)
  1172  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1173  	return nil
  1174  }
  1175  
  1176  // Nat44EdOutputInterfaceGet defines message 'nat44_ed_output_interface_get'.
  1177  type Nat44EdOutputInterfaceGet struct {
  1178  	Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
  1179  }
  1180  
  1181  func (m *Nat44EdOutputInterfaceGet) Reset()               { *m = Nat44EdOutputInterfaceGet{} }
  1182  func (*Nat44EdOutputInterfaceGet) GetMessageName() string { return "nat44_ed_output_interface_get" }
  1183  func (*Nat44EdOutputInterfaceGet) GetCrcString() string   { return "f75ba505" }
  1184  func (*Nat44EdOutputInterfaceGet) GetMessageType() api.MessageType {
  1185  	return api.RequestMessage
  1186  }
  1187  
  1188  func (m *Nat44EdOutputInterfaceGet) Size() (size int) {
  1189  	if m == nil {
  1190  		return 0
  1191  	}
  1192  	size += 4 // m.Cursor
  1193  	return size
  1194  }
  1195  func (m *Nat44EdOutputInterfaceGet) Marshal(b []byte) ([]byte, error) {
  1196  	if b == nil {
  1197  		b = make([]byte, m.Size())
  1198  	}
  1199  	buf := codec.NewBuffer(b)
  1200  	buf.EncodeUint32(m.Cursor)
  1201  	return buf.Bytes(), nil
  1202  }
  1203  func (m *Nat44EdOutputInterfaceGet) Unmarshal(b []byte) error {
  1204  	buf := codec.NewBuffer(b)
  1205  	m.Cursor = buf.DecodeUint32()
  1206  	return nil
  1207  }
  1208  
  1209  // Nat44EdOutputInterfaceGetReply defines message 'nat44_ed_output_interface_get_reply'.
  1210  type Nat44EdOutputInterfaceGetReply struct {
  1211  	Retval int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  1212  	Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"`
  1213  }
  1214  
  1215  func (m *Nat44EdOutputInterfaceGetReply) Reset() { *m = Nat44EdOutputInterfaceGetReply{} }
  1216  func (*Nat44EdOutputInterfaceGetReply) GetMessageName() string {
  1217  	return "nat44_ed_output_interface_get_reply"
  1218  }
  1219  func (*Nat44EdOutputInterfaceGetReply) GetCrcString() string { return "53b48f5d" }
  1220  func (*Nat44EdOutputInterfaceGetReply) GetMessageType() api.MessageType {
  1221  	return api.ReplyMessage
  1222  }
  1223  
  1224  func (m *Nat44EdOutputInterfaceGetReply) Size() (size int) {
  1225  	if m == nil {
  1226  		return 0
  1227  	}
  1228  	size += 4 // m.Retval
  1229  	size += 4 // m.Cursor
  1230  	return size
  1231  }
  1232  func (m *Nat44EdOutputInterfaceGetReply) Marshal(b []byte) ([]byte, error) {
  1233  	if b == nil {
  1234  		b = make([]byte, m.Size())
  1235  	}
  1236  	buf := codec.NewBuffer(b)
  1237  	buf.EncodeInt32(m.Retval)
  1238  	buf.EncodeUint32(m.Cursor)
  1239  	return buf.Bytes(), nil
  1240  }
  1241  func (m *Nat44EdOutputInterfaceGetReply) Unmarshal(b []byte) error {
  1242  	buf := codec.NewBuffer(b)
  1243  	m.Retval = buf.DecodeInt32()
  1244  	m.Cursor = buf.DecodeUint32()
  1245  	return nil
  1246  }
  1247  
  1248  // Nat44EdPluginEnableDisable defines message 'nat44_ed_plugin_enable_disable'.
  1249  type Nat44EdPluginEnableDisable struct {
  1250  	InsideVrf     uint32           `binapi:"u32,name=inside_vrf" json:"inside_vrf,omitempty"`
  1251  	OutsideVrf    uint32           `binapi:"u32,name=outside_vrf" json:"outside_vrf,omitempty"`
  1252  	Sessions      uint32           `binapi:"u32,name=sessions" json:"sessions,omitempty"`
  1253  	SessionMemory uint32           `binapi:"u32,name=session_memory" json:"session_memory,omitempty"`
  1254  	Enable        bool             `binapi:"bool,name=enable" json:"enable,omitempty"`
  1255  	Flags         Nat44ConfigFlags `binapi:"nat44_config_flags,name=flags" json:"flags,omitempty"`
  1256  }
  1257  
  1258  func (m *Nat44EdPluginEnableDisable) Reset()               { *m = Nat44EdPluginEnableDisable{} }
  1259  func (*Nat44EdPluginEnableDisable) GetMessageName() string { return "nat44_ed_plugin_enable_disable" }
  1260  func (*Nat44EdPluginEnableDisable) GetCrcString() string   { return "be17f8dd" }
  1261  func (*Nat44EdPluginEnableDisable) GetMessageType() api.MessageType {
  1262  	return api.RequestMessage
  1263  }
  1264  
  1265  func (m *Nat44EdPluginEnableDisable) Size() (size int) {
  1266  	if m == nil {
  1267  		return 0
  1268  	}
  1269  	size += 4 // m.InsideVrf
  1270  	size += 4 // m.OutsideVrf
  1271  	size += 4 // m.Sessions
  1272  	size += 4 // m.SessionMemory
  1273  	size += 1 // m.Enable
  1274  	size += 1 // m.Flags
  1275  	return size
  1276  }
  1277  func (m *Nat44EdPluginEnableDisable) Marshal(b []byte) ([]byte, error) {
  1278  	if b == nil {
  1279  		b = make([]byte, m.Size())
  1280  	}
  1281  	buf := codec.NewBuffer(b)
  1282  	buf.EncodeUint32(m.InsideVrf)
  1283  	buf.EncodeUint32(m.OutsideVrf)
  1284  	buf.EncodeUint32(m.Sessions)
  1285  	buf.EncodeUint32(m.SessionMemory)
  1286  	buf.EncodeBool(m.Enable)
  1287  	buf.EncodeUint8(uint8(m.Flags))
  1288  	return buf.Bytes(), nil
  1289  }
  1290  func (m *Nat44EdPluginEnableDisable) Unmarshal(b []byte) error {
  1291  	buf := codec.NewBuffer(b)
  1292  	m.InsideVrf = buf.DecodeUint32()
  1293  	m.OutsideVrf = buf.DecodeUint32()
  1294  	m.Sessions = buf.DecodeUint32()
  1295  	m.SessionMemory = buf.DecodeUint32()
  1296  	m.Enable = buf.DecodeBool()
  1297  	m.Flags = Nat44ConfigFlags(buf.DecodeUint8())
  1298  	return nil
  1299  }
  1300  
  1301  // Nat44EdPluginEnableDisableReply defines message 'nat44_ed_plugin_enable_disable_reply'.
  1302  type Nat44EdPluginEnableDisableReply struct {
  1303  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1304  }
  1305  
  1306  func (m *Nat44EdPluginEnableDisableReply) Reset() { *m = Nat44EdPluginEnableDisableReply{} }
  1307  func (*Nat44EdPluginEnableDisableReply) GetMessageName() string {
  1308  	return "nat44_ed_plugin_enable_disable_reply"
  1309  }
  1310  func (*Nat44EdPluginEnableDisableReply) GetCrcString() string { return "e8d4e804" }
  1311  func (*Nat44EdPluginEnableDisableReply) GetMessageType() api.MessageType {
  1312  	return api.ReplyMessage
  1313  }
  1314  
  1315  func (m *Nat44EdPluginEnableDisableReply) Size() (size int) {
  1316  	if m == nil {
  1317  		return 0
  1318  	}
  1319  	size += 4 // m.Retval
  1320  	return size
  1321  }
  1322  func (m *Nat44EdPluginEnableDisableReply) Marshal(b []byte) ([]byte, error) {
  1323  	if b == nil {
  1324  		b = make([]byte, m.Size())
  1325  	}
  1326  	buf := codec.NewBuffer(b)
  1327  	buf.EncodeInt32(m.Retval)
  1328  	return buf.Bytes(), nil
  1329  }
  1330  func (m *Nat44EdPluginEnableDisableReply) Unmarshal(b []byte) error {
  1331  	buf := codec.NewBuffer(b)
  1332  	m.Retval = buf.DecodeInt32()
  1333  	return nil
  1334  }
  1335  
  1336  // Nat44EdSetFqOptions defines message 'nat44_ed_set_fq_options'.
  1337  type Nat44EdSetFqOptions struct {
  1338  	FrameQueueNelts uint32 `binapi:"u32,name=frame_queue_nelts" json:"frame_queue_nelts,omitempty"`
  1339  }
  1340  
  1341  func (m *Nat44EdSetFqOptions) Reset()               { *m = Nat44EdSetFqOptions{} }
  1342  func (*Nat44EdSetFqOptions) GetMessageName() string { return "nat44_ed_set_fq_options" }
  1343  func (*Nat44EdSetFqOptions) GetCrcString() string   { return "2399bd71" }
  1344  func (*Nat44EdSetFqOptions) GetMessageType() api.MessageType {
  1345  	return api.RequestMessage
  1346  }
  1347  
  1348  func (m *Nat44EdSetFqOptions) Size() (size int) {
  1349  	if m == nil {
  1350  		return 0
  1351  	}
  1352  	size += 4 // m.FrameQueueNelts
  1353  	return size
  1354  }
  1355  func (m *Nat44EdSetFqOptions) Marshal(b []byte) ([]byte, error) {
  1356  	if b == nil {
  1357  		b = make([]byte, m.Size())
  1358  	}
  1359  	buf := codec.NewBuffer(b)
  1360  	buf.EncodeUint32(m.FrameQueueNelts)
  1361  	return buf.Bytes(), nil
  1362  }
  1363  func (m *Nat44EdSetFqOptions) Unmarshal(b []byte) error {
  1364  	buf := codec.NewBuffer(b)
  1365  	m.FrameQueueNelts = buf.DecodeUint32()
  1366  	return nil
  1367  }
  1368  
  1369  // Nat44EdSetFqOptionsReply defines message 'nat44_ed_set_fq_options_reply'.
  1370  type Nat44EdSetFqOptionsReply struct {
  1371  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1372  }
  1373  
  1374  func (m *Nat44EdSetFqOptionsReply) Reset()               { *m = Nat44EdSetFqOptionsReply{} }
  1375  func (*Nat44EdSetFqOptionsReply) GetMessageName() string { return "nat44_ed_set_fq_options_reply" }
  1376  func (*Nat44EdSetFqOptionsReply) GetCrcString() string   { return "e8d4e804" }
  1377  func (*Nat44EdSetFqOptionsReply) GetMessageType() api.MessageType {
  1378  	return api.ReplyMessage
  1379  }
  1380  
  1381  func (m *Nat44EdSetFqOptionsReply) Size() (size int) {
  1382  	if m == nil {
  1383  		return 0
  1384  	}
  1385  	size += 4 // m.Retval
  1386  	return size
  1387  }
  1388  func (m *Nat44EdSetFqOptionsReply) Marshal(b []byte) ([]byte, error) {
  1389  	if b == nil {
  1390  		b = make([]byte, m.Size())
  1391  	}
  1392  	buf := codec.NewBuffer(b)
  1393  	buf.EncodeInt32(m.Retval)
  1394  	return buf.Bytes(), nil
  1395  }
  1396  func (m *Nat44EdSetFqOptionsReply) Unmarshal(b []byte) error {
  1397  	buf := codec.NewBuffer(b)
  1398  	m.Retval = buf.DecodeInt32()
  1399  	return nil
  1400  }
  1401  
  1402  // Nat44EdShowFqOptions defines message 'nat44_ed_show_fq_options'.
  1403  type Nat44EdShowFqOptions struct{}
  1404  
  1405  func (m *Nat44EdShowFqOptions) Reset()               { *m = Nat44EdShowFqOptions{} }
  1406  func (*Nat44EdShowFqOptions) GetMessageName() string { return "nat44_ed_show_fq_options" }
  1407  func (*Nat44EdShowFqOptions) GetCrcString() string   { return "51077d14" }
  1408  func (*Nat44EdShowFqOptions) GetMessageType() api.MessageType {
  1409  	return api.RequestMessage
  1410  }
  1411  
  1412  func (m *Nat44EdShowFqOptions) Size() (size int) {
  1413  	if m == nil {
  1414  		return 0
  1415  	}
  1416  	return size
  1417  }
  1418  func (m *Nat44EdShowFqOptions) Marshal(b []byte) ([]byte, error) {
  1419  	if b == nil {
  1420  		b = make([]byte, m.Size())
  1421  	}
  1422  	buf := codec.NewBuffer(b)
  1423  	return buf.Bytes(), nil
  1424  }
  1425  func (m *Nat44EdShowFqOptions) Unmarshal(b []byte) error {
  1426  	return nil
  1427  }
  1428  
  1429  // Nat44EdShowFqOptionsReply defines message 'nat44_ed_show_fq_options_reply'.
  1430  type Nat44EdShowFqOptionsReply struct {
  1431  	Retval          int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  1432  	FrameQueueNelts uint32 `binapi:"u32,name=frame_queue_nelts" json:"frame_queue_nelts,omitempty"`
  1433  }
  1434  
  1435  func (m *Nat44EdShowFqOptionsReply) Reset()               { *m = Nat44EdShowFqOptionsReply{} }
  1436  func (*Nat44EdShowFqOptionsReply) GetMessageName() string { return "nat44_ed_show_fq_options_reply" }
  1437  func (*Nat44EdShowFqOptionsReply) GetCrcString() string   { return "7213b545" }
  1438  func (*Nat44EdShowFqOptionsReply) GetMessageType() api.MessageType {
  1439  	return api.ReplyMessage
  1440  }
  1441  
  1442  func (m *Nat44EdShowFqOptionsReply) Size() (size int) {
  1443  	if m == nil {
  1444  		return 0
  1445  	}
  1446  	size += 4 // m.Retval
  1447  	size += 4 // m.FrameQueueNelts
  1448  	return size
  1449  }
  1450  func (m *Nat44EdShowFqOptionsReply) Marshal(b []byte) ([]byte, error) {
  1451  	if b == nil {
  1452  		b = make([]byte, m.Size())
  1453  	}
  1454  	buf := codec.NewBuffer(b)
  1455  	buf.EncodeInt32(m.Retval)
  1456  	buf.EncodeUint32(m.FrameQueueNelts)
  1457  	return buf.Bytes(), nil
  1458  }
  1459  func (m *Nat44EdShowFqOptionsReply) Unmarshal(b []byte) error {
  1460  	buf := codec.NewBuffer(b)
  1461  	m.Retval = buf.DecodeInt32()
  1462  	m.FrameQueueNelts = buf.DecodeUint32()
  1463  	return nil
  1464  }
  1465  
  1466  // Nat44EdVrfTablesDetails defines message 'nat44_ed_vrf_tables_details'.
  1467  type Nat44EdVrfTablesDetails struct {
  1468  	TableVrfID uint32   `binapi:"u32,name=table_vrf_id" json:"table_vrf_id,omitempty"`
  1469  	NVrfIds    uint32   `binapi:"u32,name=n_vrf_ids" json:"-"`
  1470  	VrfIds     []uint32 `binapi:"u32[n_vrf_ids],name=vrf_ids" json:"vrf_ids,omitempty"`
  1471  }
  1472  
  1473  func (m *Nat44EdVrfTablesDetails) Reset()               { *m = Nat44EdVrfTablesDetails{} }
  1474  func (*Nat44EdVrfTablesDetails) GetMessageName() string { return "nat44_ed_vrf_tables_details" }
  1475  func (*Nat44EdVrfTablesDetails) GetCrcString() string   { return "7b264e4f" }
  1476  func (*Nat44EdVrfTablesDetails) GetMessageType() api.MessageType {
  1477  	return api.ReplyMessage
  1478  }
  1479  
  1480  func (m *Nat44EdVrfTablesDetails) Size() (size int) {
  1481  	if m == nil {
  1482  		return 0
  1483  	}
  1484  	size += 4                 // m.TableVrfID
  1485  	size += 4                 // m.NVrfIds
  1486  	size += 4 * len(m.VrfIds) // m.VrfIds
  1487  	return size
  1488  }
  1489  func (m *Nat44EdVrfTablesDetails) Marshal(b []byte) ([]byte, error) {
  1490  	if b == nil {
  1491  		b = make([]byte, m.Size())
  1492  	}
  1493  	buf := codec.NewBuffer(b)
  1494  	buf.EncodeUint32(m.TableVrfID)
  1495  	buf.EncodeUint32(uint32(len(m.VrfIds)))
  1496  	for i := 0; i < len(m.VrfIds); i++ {
  1497  		var x uint32
  1498  		if i < len(m.VrfIds) {
  1499  			x = uint32(m.VrfIds[i])
  1500  		}
  1501  		buf.EncodeUint32(x)
  1502  	}
  1503  	return buf.Bytes(), nil
  1504  }
  1505  func (m *Nat44EdVrfTablesDetails) Unmarshal(b []byte) error {
  1506  	buf := codec.NewBuffer(b)
  1507  	m.TableVrfID = buf.DecodeUint32()
  1508  	m.NVrfIds = buf.DecodeUint32()
  1509  	m.VrfIds = make([]uint32, m.NVrfIds)
  1510  	for i := 0; i < len(m.VrfIds); i++ {
  1511  		m.VrfIds[i] = buf.DecodeUint32()
  1512  	}
  1513  	return nil
  1514  }
  1515  
  1516  // Nat44EdVrfTablesDump defines message 'nat44_ed_vrf_tables_dump'.
  1517  type Nat44EdVrfTablesDump struct{}
  1518  
  1519  func (m *Nat44EdVrfTablesDump) Reset()               { *m = Nat44EdVrfTablesDump{} }
  1520  func (*Nat44EdVrfTablesDump) GetMessageName() string { return "nat44_ed_vrf_tables_dump" }
  1521  func (*Nat44EdVrfTablesDump) GetCrcString() string   { return "51077d14" }
  1522  func (*Nat44EdVrfTablesDump) GetMessageType() api.MessageType {
  1523  	return api.RequestMessage
  1524  }
  1525  
  1526  func (m *Nat44EdVrfTablesDump) Size() (size int) {
  1527  	if m == nil {
  1528  		return 0
  1529  	}
  1530  	return size
  1531  }
  1532  func (m *Nat44EdVrfTablesDump) Marshal(b []byte) ([]byte, error) {
  1533  	if b == nil {
  1534  		b = make([]byte, m.Size())
  1535  	}
  1536  	buf := codec.NewBuffer(b)
  1537  	return buf.Bytes(), nil
  1538  }
  1539  func (m *Nat44EdVrfTablesDump) Unmarshal(b []byte) error {
  1540  	return nil
  1541  }
  1542  
  1543  // Nat44ForwardingEnableDisable defines message 'nat44_forwarding_enable_disable'.
  1544  // Deprecated: the message will be removed in the future versions
  1545  type Nat44ForwardingEnableDisable struct {
  1546  	Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"`
  1547  }
  1548  
  1549  func (m *Nat44ForwardingEnableDisable) Reset() { *m = Nat44ForwardingEnableDisable{} }
  1550  func (*Nat44ForwardingEnableDisable) GetMessageName() string {
  1551  	return "nat44_forwarding_enable_disable"
  1552  }
  1553  func (*Nat44ForwardingEnableDisable) GetCrcString() string { return "b3e225d2" }
  1554  func (*Nat44ForwardingEnableDisable) GetMessageType() api.MessageType {
  1555  	return api.RequestMessage
  1556  }
  1557  
  1558  func (m *Nat44ForwardingEnableDisable) Size() (size int) {
  1559  	if m == nil {
  1560  		return 0
  1561  	}
  1562  	size += 1 // m.Enable
  1563  	return size
  1564  }
  1565  func (m *Nat44ForwardingEnableDisable) Marshal(b []byte) ([]byte, error) {
  1566  	if b == nil {
  1567  		b = make([]byte, m.Size())
  1568  	}
  1569  	buf := codec.NewBuffer(b)
  1570  	buf.EncodeBool(m.Enable)
  1571  	return buf.Bytes(), nil
  1572  }
  1573  func (m *Nat44ForwardingEnableDisable) Unmarshal(b []byte) error {
  1574  	buf := codec.NewBuffer(b)
  1575  	m.Enable = buf.DecodeBool()
  1576  	return nil
  1577  }
  1578  
  1579  // Nat44ForwardingEnableDisableReply defines message 'nat44_forwarding_enable_disable_reply'.
  1580  // Deprecated: the message will be removed in the future versions
  1581  type Nat44ForwardingEnableDisableReply struct {
  1582  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1583  }
  1584  
  1585  func (m *Nat44ForwardingEnableDisableReply) Reset() { *m = Nat44ForwardingEnableDisableReply{} }
  1586  func (*Nat44ForwardingEnableDisableReply) GetMessageName() string {
  1587  	return "nat44_forwarding_enable_disable_reply"
  1588  }
  1589  func (*Nat44ForwardingEnableDisableReply) GetCrcString() string { return "e8d4e804" }
  1590  func (*Nat44ForwardingEnableDisableReply) GetMessageType() api.MessageType {
  1591  	return api.ReplyMessage
  1592  }
  1593  
  1594  func (m *Nat44ForwardingEnableDisableReply) Size() (size int) {
  1595  	if m == nil {
  1596  		return 0
  1597  	}
  1598  	size += 4 // m.Retval
  1599  	return size
  1600  }
  1601  func (m *Nat44ForwardingEnableDisableReply) Marshal(b []byte) ([]byte, error) {
  1602  	if b == nil {
  1603  		b = make([]byte, m.Size())
  1604  	}
  1605  	buf := codec.NewBuffer(b)
  1606  	buf.EncodeInt32(m.Retval)
  1607  	return buf.Bytes(), nil
  1608  }
  1609  func (m *Nat44ForwardingEnableDisableReply) Unmarshal(b []byte) error {
  1610  	buf := codec.NewBuffer(b)
  1611  	m.Retval = buf.DecodeInt32()
  1612  	return nil
  1613  }
  1614  
  1615  // Nat44IdentityMappingDetails defines message 'nat44_identity_mapping_details'.
  1616  type Nat44IdentityMappingDetails struct {
  1617  	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  1618  	IPAddress ip_types.IP4Address            `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  1619  	Protocol  uint8                          `binapi:"u8,name=protocol" json:"protocol,omitempty"`
  1620  	Port      uint16                         `binapi:"u16,name=port" json:"port,omitempty"`
  1621  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1622  	VrfID     uint32                         `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  1623  	Tag       string                         `binapi:"string[64],name=tag" json:"tag,omitempty"`
  1624  }
  1625  
  1626  func (m *Nat44IdentityMappingDetails) Reset()               { *m = Nat44IdentityMappingDetails{} }
  1627  func (*Nat44IdentityMappingDetails) GetMessageName() string { return "nat44_identity_mapping_details" }
  1628  func (*Nat44IdentityMappingDetails) GetCrcString() string   { return "2a52a030" }
  1629  func (*Nat44IdentityMappingDetails) GetMessageType() api.MessageType {
  1630  	return api.ReplyMessage
  1631  }
  1632  
  1633  func (m *Nat44IdentityMappingDetails) Size() (size int) {
  1634  	if m == nil {
  1635  		return 0
  1636  	}
  1637  	size += 1     // m.Flags
  1638  	size += 1 * 4 // m.IPAddress
  1639  	size += 1     // m.Protocol
  1640  	size += 2     // m.Port
  1641  	size += 4     // m.SwIfIndex
  1642  	size += 4     // m.VrfID
  1643  	size += 64    // m.Tag
  1644  	return size
  1645  }
  1646  func (m *Nat44IdentityMappingDetails) Marshal(b []byte) ([]byte, error) {
  1647  	if b == nil {
  1648  		b = make([]byte, m.Size())
  1649  	}
  1650  	buf := codec.NewBuffer(b)
  1651  	buf.EncodeUint8(uint8(m.Flags))
  1652  	buf.EncodeBytes(m.IPAddress[:], 4)
  1653  	buf.EncodeUint8(m.Protocol)
  1654  	buf.EncodeUint16(m.Port)
  1655  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1656  	buf.EncodeUint32(m.VrfID)
  1657  	buf.EncodeString(m.Tag, 64)
  1658  	return buf.Bytes(), nil
  1659  }
  1660  func (m *Nat44IdentityMappingDetails) Unmarshal(b []byte) error {
  1661  	buf := codec.NewBuffer(b)
  1662  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  1663  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  1664  	m.Protocol = buf.DecodeUint8()
  1665  	m.Port = buf.DecodeUint16()
  1666  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1667  	m.VrfID = buf.DecodeUint32()
  1668  	m.Tag = buf.DecodeString(64)
  1669  	return nil
  1670  }
  1671  
  1672  // Nat44IdentityMappingDump defines message 'nat44_identity_mapping_dump'.
  1673  type Nat44IdentityMappingDump struct{}
  1674  
  1675  func (m *Nat44IdentityMappingDump) Reset()               { *m = Nat44IdentityMappingDump{} }
  1676  func (*Nat44IdentityMappingDump) GetMessageName() string { return "nat44_identity_mapping_dump" }
  1677  func (*Nat44IdentityMappingDump) GetCrcString() string   { return "51077d14" }
  1678  func (*Nat44IdentityMappingDump) GetMessageType() api.MessageType {
  1679  	return api.RequestMessage
  1680  }
  1681  
  1682  func (m *Nat44IdentityMappingDump) Size() (size int) {
  1683  	if m == nil {
  1684  		return 0
  1685  	}
  1686  	return size
  1687  }
  1688  func (m *Nat44IdentityMappingDump) Marshal(b []byte) ([]byte, error) {
  1689  	if b == nil {
  1690  		b = make([]byte, m.Size())
  1691  	}
  1692  	buf := codec.NewBuffer(b)
  1693  	return buf.Bytes(), nil
  1694  }
  1695  func (m *Nat44IdentityMappingDump) Unmarshal(b []byte) error {
  1696  	return nil
  1697  }
  1698  
  1699  // Nat44InterfaceAddDelFeature defines message 'nat44_interface_add_del_feature'.
  1700  type Nat44InterfaceAddDelFeature struct {
  1701  	IsAdd     bool                           `binapi:"bool,name=is_add" json:"is_add,omitempty"`
  1702  	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  1703  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1704  }
  1705  
  1706  func (m *Nat44InterfaceAddDelFeature) Reset()               { *m = Nat44InterfaceAddDelFeature{} }
  1707  func (*Nat44InterfaceAddDelFeature) GetMessageName() string { return "nat44_interface_add_del_feature" }
  1708  func (*Nat44InterfaceAddDelFeature) GetCrcString() string   { return "f3699b83" }
  1709  func (*Nat44InterfaceAddDelFeature) GetMessageType() api.MessageType {
  1710  	return api.RequestMessage
  1711  }
  1712  
  1713  func (m *Nat44InterfaceAddDelFeature) Size() (size int) {
  1714  	if m == nil {
  1715  		return 0
  1716  	}
  1717  	size += 1 // m.IsAdd
  1718  	size += 1 // m.Flags
  1719  	size += 4 // m.SwIfIndex
  1720  	return size
  1721  }
  1722  func (m *Nat44InterfaceAddDelFeature) Marshal(b []byte) ([]byte, error) {
  1723  	if b == nil {
  1724  		b = make([]byte, m.Size())
  1725  	}
  1726  	buf := codec.NewBuffer(b)
  1727  	buf.EncodeBool(m.IsAdd)
  1728  	buf.EncodeUint8(uint8(m.Flags))
  1729  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1730  	return buf.Bytes(), nil
  1731  }
  1732  func (m *Nat44InterfaceAddDelFeature) Unmarshal(b []byte) error {
  1733  	buf := codec.NewBuffer(b)
  1734  	m.IsAdd = buf.DecodeBool()
  1735  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  1736  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1737  	return nil
  1738  }
  1739  
  1740  // Nat44InterfaceAddDelFeatureReply defines message 'nat44_interface_add_del_feature_reply'.
  1741  type Nat44InterfaceAddDelFeatureReply struct {
  1742  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1743  }
  1744  
  1745  func (m *Nat44InterfaceAddDelFeatureReply) Reset() { *m = Nat44InterfaceAddDelFeatureReply{} }
  1746  func (*Nat44InterfaceAddDelFeatureReply) GetMessageName() string {
  1747  	return "nat44_interface_add_del_feature_reply"
  1748  }
  1749  func (*Nat44InterfaceAddDelFeatureReply) GetCrcString() string { return "e8d4e804" }
  1750  func (*Nat44InterfaceAddDelFeatureReply) GetMessageType() api.MessageType {
  1751  	return api.ReplyMessage
  1752  }
  1753  
  1754  func (m *Nat44InterfaceAddDelFeatureReply) Size() (size int) {
  1755  	if m == nil {
  1756  		return 0
  1757  	}
  1758  	size += 4 // m.Retval
  1759  	return size
  1760  }
  1761  func (m *Nat44InterfaceAddDelFeatureReply) Marshal(b []byte) ([]byte, error) {
  1762  	if b == nil {
  1763  		b = make([]byte, m.Size())
  1764  	}
  1765  	buf := codec.NewBuffer(b)
  1766  	buf.EncodeInt32(m.Retval)
  1767  	return buf.Bytes(), nil
  1768  }
  1769  func (m *Nat44InterfaceAddDelFeatureReply) Unmarshal(b []byte) error {
  1770  	buf := codec.NewBuffer(b)
  1771  	m.Retval = buf.DecodeInt32()
  1772  	return nil
  1773  }
  1774  
  1775  // Nat44InterfaceAddrDetails defines message 'nat44_interface_addr_details'.
  1776  type Nat44InterfaceAddrDetails struct {
  1777  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1778  	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  1779  }
  1780  
  1781  func (m *Nat44InterfaceAddrDetails) Reset()               { *m = Nat44InterfaceAddrDetails{} }
  1782  func (*Nat44InterfaceAddrDetails) GetMessageName() string { return "nat44_interface_addr_details" }
  1783  func (*Nat44InterfaceAddrDetails) GetCrcString() string   { return "e4aca9ca" }
  1784  func (*Nat44InterfaceAddrDetails) GetMessageType() api.MessageType {
  1785  	return api.ReplyMessage
  1786  }
  1787  
  1788  func (m *Nat44InterfaceAddrDetails) Size() (size int) {
  1789  	if m == nil {
  1790  		return 0
  1791  	}
  1792  	size += 4 // m.SwIfIndex
  1793  	size += 1 // m.Flags
  1794  	return size
  1795  }
  1796  func (m *Nat44InterfaceAddrDetails) Marshal(b []byte) ([]byte, error) {
  1797  	if b == nil {
  1798  		b = make([]byte, m.Size())
  1799  	}
  1800  	buf := codec.NewBuffer(b)
  1801  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1802  	buf.EncodeUint8(uint8(m.Flags))
  1803  	return buf.Bytes(), nil
  1804  }
  1805  func (m *Nat44InterfaceAddrDetails) Unmarshal(b []byte) error {
  1806  	buf := codec.NewBuffer(b)
  1807  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1808  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  1809  	return nil
  1810  }
  1811  
  1812  // Nat44InterfaceAddrDump defines message 'nat44_interface_addr_dump'.
  1813  type Nat44InterfaceAddrDump struct{}
  1814  
  1815  func (m *Nat44InterfaceAddrDump) Reset()               { *m = Nat44InterfaceAddrDump{} }
  1816  func (*Nat44InterfaceAddrDump) GetMessageName() string { return "nat44_interface_addr_dump" }
  1817  func (*Nat44InterfaceAddrDump) GetCrcString() string   { return "51077d14" }
  1818  func (*Nat44InterfaceAddrDump) GetMessageType() api.MessageType {
  1819  	return api.RequestMessage
  1820  }
  1821  
  1822  func (m *Nat44InterfaceAddrDump) Size() (size int) {
  1823  	if m == nil {
  1824  		return 0
  1825  	}
  1826  	return size
  1827  }
  1828  func (m *Nat44InterfaceAddrDump) Marshal(b []byte) ([]byte, error) {
  1829  	if b == nil {
  1830  		b = make([]byte, m.Size())
  1831  	}
  1832  	buf := codec.NewBuffer(b)
  1833  	return buf.Bytes(), nil
  1834  }
  1835  func (m *Nat44InterfaceAddrDump) Unmarshal(b []byte) error {
  1836  	return nil
  1837  }
  1838  
  1839  // Nat44InterfaceDetails defines message 'nat44_interface_details'.
  1840  type Nat44InterfaceDetails struct {
  1841  	Flags     nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  1842  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
  1843  }
  1844  
  1845  func (m *Nat44InterfaceDetails) Reset()               { *m = Nat44InterfaceDetails{} }
  1846  func (*Nat44InterfaceDetails) GetMessageName() string { return "nat44_interface_details" }
  1847  func (*Nat44InterfaceDetails) GetCrcString() string   { return "5d286289" }
  1848  func (*Nat44InterfaceDetails) GetMessageType() api.MessageType {
  1849  	return api.ReplyMessage
  1850  }
  1851  
  1852  func (m *Nat44InterfaceDetails) Size() (size int) {
  1853  	if m == nil {
  1854  		return 0
  1855  	}
  1856  	size += 1 // m.Flags
  1857  	size += 4 // m.SwIfIndex
  1858  	return size
  1859  }
  1860  func (m *Nat44InterfaceDetails) Marshal(b []byte) ([]byte, error) {
  1861  	if b == nil {
  1862  		b = make([]byte, m.Size())
  1863  	}
  1864  	buf := codec.NewBuffer(b)
  1865  	buf.EncodeUint8(uint8(m.Flags))
  1866  	buf.EncodeUint32(uint32(m.SwIfIndex))
  1867  	return buf.Bytes(), nil
  1868  }
  1869  func (m *Nat44InterfaceDetails) Unmarshal(b []byte) error {
  1870  	buf := codec.NewBuffer(b)
  1871  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  1872  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  1873  	return nil
  1874  }
  1875  
  1876  // Nat44InterfaceDump defines message 'nat44_interface_dump'.
  1877  type Nat44InterfaceDump struct{}
  1878  
  1879  func (m *Nat44InterfaceDump) Reset()               { *m = Nat44InterfaceDump{} }
  1880  func (*Nat44InterfaceDump) GetMessageName() string { return "nat44_interface_dump" }
  1881  func (*Nat44InterfaceDump) GetCrcString() string   { return "51077d14" }
  1882  func (*Nat44InterfaceDump) GetMessageType() api.MessageType {
  1883  	return api.RequestMessage
  1884  }
  1885  
  1886  func (m *Nat44InterfaceDump) Size() (size int) {
  1887  	if m == nil {
  1888  		return 0
  1889  	}
  1890  	return size
  1891  }
  1892  func (m *Nat44InterfaceDump) Marshal(b []byte) ([]byte, error) {
  1893  	if b == nil {
  1894  		b = make([]byte, m.Size())
  1895  	}
  1896  	buf := codec.NewBuffer(b)
  1897  	return buf.Bytes(), nil
  1898  }
  1899  func (m *Nat44InterfaceDump) Unmarshal(b []byte) error {
  1900  	return nil
  1901  }
  1902  
  1903  // Nat44LbStaticMappingAddDelLocal defines message 'nat44_lb_static_mapping_add_del_local'.
  1904  type Nat44LbStaticMappingAddDelLocal struct {
  1905  	IsAdd        bool                `binapi:"bool,name=is_add" json:"is_add,omitempty"`
  1906  	ExternalAddr ip_types.IP4Address `binapi:"ip4_address,name=external_addr" json:"external_addr,omitempty"`
  1907  	ExternalPort uint16              `binapi:"u16,name=external_port" json:"external_port,omitempty"`
  1908  	Protocol     uint8               `binapi:"u8,name=protocol" json:"protocol,omitempty"`
  1909  	Local        Nat44LbAddrPort     `binapi:"nat44_lb_addr_port,name=local" json:"local,omitempty"`
  1910  }
  1911  
  1912  func (m *Nat44LbStaticMappingAddDelLocal) Reset() { *m = Nat44LbStaticMappingAddDelLocal{} }
  1913  func (*Nat44LbStaticMappingAddDelLocal) GetMessageName() string {
  1914  	return "nat44_lb_static_mapping_add_del_local"
  1915  }
  1916  func (*Nat44LbStaticMappingAddDelLocal) GetCrcString() string { return "7ca47547" }
  1917  func (*Nat44LbStaticMappingAddDelLocal) GetMessageType() api.MessageType {
  1918  	return api.RequestMessage
  1919  }
  1920  
  1921  func (m *Nat44LbStaticMappingAddDelLocal) Size() (size int) {
  1922  	if m == nil {
  1923  		return 0
  1924  	}
  1925  	size += 1     // m.IsAdd
  1926  	size += 1 * 4 // m.ExternalAddr
  1927  	size += 2     // m.ExternalPort
  1928  	size += 1     // m.Protocol
  1929  	size += 1 * 4 // m.Local.Addr
  1930  	size += 2     // m.Local.Port
  1931  	size += 1     // m.Local.Probability
  1932  	size += 4     // m.Local.VrfID
  1933  	return size
  1934  }
  1935  func (m *Nat44LbStaticMappingAddDelLocal) Marshal(b []byte) ([]byte, error) {
  1936  	if b == nil {
  1937  		b = make([]byte, m.Size())
  1938  	}
  1939  	buf := codec.NewBuffer(b)
  1940  	buf.EncodeBool(m.IsAdd)
  1941  	buf.EncodeBytes(m.ExternalAddr[:], 4)
  1942  	buf.EncodeUint16(m.ExternalPort)
  1943  	buf.EncodeUint8(m.Protocol)
  1944  	buf.EncodeBytes(m.Local.Addr[:], 4)
  1945  	buf.EncodeUint16(m.Local.Port)
  1946  	buf.EncodeUint8(m.Local.Probability)
  1947  	buf.EncodeUint32(m.Local.VrfID)
  1948  	return buf.Bytes(), nil
  1949  }
  1950  func (m *Nat44LbStaticMappingAddDelLocal) Unmarshal(b []byte) error {
  1951  	buf := codec.NewBuffer(b)
  1952  	m.IsAdd = buf.DecodeBool()
  1953  	copy(m.ExternalAddr[:], buf.DecodeBytes(4))
  1954  	m.ExternalPort = buf.DecodeUint16()
  1955  	m.Protocol = buf.DecodeUint8()
  1956  	copy(m.Local.Addr[:], buf.DecodeBytes(4))
  1957  	m.Local.Port = buf.DecodeUint16()
  1958  	m.Local.Probability = buf.DecodeUint8()
  1959  	m.Local.VrfID = buf.DecodeUint32()
  1960  	return nil
  1961  }
  1962  
  1963  // Nat44LbStaticMappingAddDelLocalReply defines message 'nat44_lb_static_mapping_add_del_local_reply'.
  1964  type Nat44LbStaticMappingAddDelLocalReply struct {
  1965  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  1966  }
  1967  
  1968  func (m *Nat44LbStaticMappingAddDelLocalReply) Reset() { *m = Nat44LbStaticMappingAddDelLocalReply{} }
  1969  func (*Nat44LbStaticMappingAddDelLocalReply) GetMessageName() string {
  1970  	return "nat44_lb_static_mapping_add_del_local_reply"
  1971  }
  1972  func (*Nat44LbStaticMappingAddDelLocalReply) GetCrcString() string { return "e8d4e804" }
  1973  func (*Nat44LbStaticMappingAddDelLocalReply) GetMessageType() api.MessageType {
  1974  	return api.ReplyMessage
  1975  }
  1976  
  1977  func (m *Nat44LbStaticMappingAddDelLocalReply) Size() (size int) {
  1978  	if m == nil {
  1979  		return 0
  1980  	}
  1981  	size += 4 // m.Retval
  1982  	return size
  1983  }
  1984  func (m *Nat44LbStaticMappingAddDelLocalReply) Marshal(b []byte) ([]byte, error) {
  1985  	if b == nil {
  1986  		b = make([]byte, m.Size())
  1987  	}
  1988  	buf := codec.NewBuffer(b)
  1989  	buf.EncodeInt32(m.Retval)
  1990  	return buf.Bytes(), nil
  1991  }
  1992  func (m *Nat44LbStaticMappingAddDelLocalReply) Unmarshal(b []byte) error {
  1993  	buf := codec.NewBuffer(b)
  1994  	m.Retval = buf.DecodeInt32()
  1995  	return nil
  1996  }
  1997  
  1998  // Nat44LbStaticMappingDetails defines message 'nat44_lb_static_mapping_details'.
  1999  type Nat44LbStaticMappingDetails struct {
  2000  	ExternalAddr ip_types.IP4Address      `binapi:"ip4_address,name=external_addr" json:"external_addr,omitempty"`
  2001  	ExternalPort uint16                   `binapi:"u16,name=external_port" json:"external_port,omitempty"`
  2002  	Protocol     uint8                    `binapi:"u8,name=protocol" json:"protocol,omitempty"`
  2003  	Flags        nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  2004  	Affinity     uint32                   `binapi:"u32,name=affinity" json:"affinity,omitempty"`
  2005  	Tag          string                   `binapi:"string[64],name=tag" json:"tag,omitempty"`
  2006  	LocalNum     uint32                   `binapi:"u32,name=local_num" json:"-"`
  2007  	Locals       []Nat44LbAddrPort        `binapi:"nat44_lb_addr_port[local_num],name=locals" json:"locals,omitempty"`
  2008  }
  2009  
  2010  func (m *Nat44LbStaticMappingDetails) Reset()               { *m = Nat44LbStaticMappingDetails{} }
  2011  func (*Nat44LbStaticMappingDetails) GetMessageName() string { return "nat44_lb_static_mapping_details" }
  2012  func (*Nat44LbStaticMappingDetails) GetCrcString() string   { return "ed5ce876" }
  2013  func (*Nat44LbStaticMappingDetails) GetMessageType() api.MessageType {
  2014  	return api.ReplyMessage
  2015  }
  2016  
  2017  func (m *Nat44LbStaticMappingDetails) Size() (size int) {
  2018  	if m == nil {
  2019  		return 0
  2020  	}
  2021  	size += 1 * 4 // m.ExternalAddr
  2022  	size += 2     // m.ExternalPort
  2023  	size += 1     // m.Protocol
  2024  	size += 1     // m.Flags
  2025  	size += 4     // m.Affinity
  2026  	size += 64    // m.Tag
  2027  	size += 4     // m.LocalNum
  2028  	for j1 := 0; j1 < len(m.Locals); j1++ {
  2029  		var s1 Nat44LbAddrPort
  2030  		_ = s1
  2031  		if j1 < len(m.Locals) {
  2032  			s1 = m.Locals[j1]
  2033  		}
  2034  		size += 1 * 4 // s1.Addr
  2035  		size += 2     // s1.Port
  2036  		size += 1     // s1.Probability
  2037  		size += 4     // s1.VrfID
  2038  	}
  2039  	return size
  2040  }
  2041  func (m *Nat44LbStaticMappingDetails) Marshal(b []byte) ([]byte, error) {
  2042  	if b == nil {
  2043  		b = make([]byte, m.Size())
  2044  	}
  2045  	buf := codec.NewBuffer(b)
  2046  	buf.EncodeBytes(m.ExternalAddr[:], 4)
  2047  	buf.EncodeUint16(m.ExternalPort)
  2048  	buf.EncodeUint8(m.Protocol)
  2049  	buf.EncodeUint8(uint8(m.Flags))
  2050  	buf.EncodeUint32(m.Affinity)
  2051  	buf.EncodeString(m.Tag, 64)
  2052  	buf.EncodeUint32(uint32(len(m.Locals)))
  2053  	for j0 := 0; j0 < len(m.Locals); j0++ {
  2054  		var v0 Nat44LbAddrPort // Locals
  2055  		if j0 < len(m.Locals) {
  2056  			v0 = m.Locals[j0]
  2057  		}
  2058  		buf.EncodeBytes(v0.Addr[:], 4)
  2059  		buf.EncodeUint16(v0.Port)
  2060  		buf.EncodeUint8(v0.Probability)
  2061  		buf.EncodeUint32(v0.VrfID)
  2062  	}
  2063  	return buf.Bytes(), nil
  2064  }
  2065  func (m *Nat44LbStaticMappingDetails) Unmarshal(b []byte) error {
  2066  	buf := codec.NewBuffer(b)
  2067  	copy(m.ExternalAddr[:], buf.DecodeBytes(4))
  2068  	m.ExternalPort = buf.DecodeUint16()
  2069  	m.Protocol = buf.DecodeUint8()
  2070  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  2071  	m.Affinity = buf.DecodeUint32()
  2072  	m.Tag = buf.DecodeString(64)
  2073  	m.LocalNum = buf.DecodeUint32()
  2074  	m.Locals = make([]Nat44LbAddrPort, m.LocalNum)
  2075  	for j0 := 0; j0 < len(m.Locals); j0++ {
  2076  		copy(m.Locals[j0].Addr[:], buf.DecodeBytes(4))
  2077  		m.Locals[j0].Port = buf.DecodeUint16()
  2078  		m.Locals[j0].Probability = buf.DecodeUint8()
  2079  		m.Locals[j0].VrfID = buf.DecodeUint32()
  2080  	}
  2081  	return nil
  2082  }
  2083  
  2084  // Nat44LbStaticMappingDump defines message 'nat44_lb_static_mapping_dump'.
  2085  type Nat44LbStaticMappingDump struct{}
  2086  
  2087  func (m *Nat44LbStaticMappingDump) Reset()               { *m = Nat44LbStaticMappingDump{} }
  2088  func (*Nat44LbStaticMappingDump) GetMessageName() string { return "nat44_lb_static_mapping_dump" }
  2089  func (*Nat44LbStaticMappingDump) GetCrcString() string   { return "51077d14" }
  2090  func (*Nat44LbStaticMappingDump) GetMessageType() api.MessageType {
  2091  	return api.RequestMessage
  2092  }
  2093  
  2094  func (m *Nat44LbStaticMappingDump) Size() (size int) {
  2095  	if m == nil {
  2096  		return 0
  2097  	}
  2098  	return size
  2099  }
  2100  func (m *Nat44LbStaticMappingDump) Marshal(b []byte) ([]byte, error) {
  2101  	if b == nil {
  2102  		b = make([]byte, m.Size())
  2103  	}
  2104  	buf := codec.NewBuffer(b)
  2105  	return buf.Bytes(), nil
  2106  }
  2107  func (m *Nat44LbStaticMappingDump) Unmarshal(b []byte) error {
  2108  	return nil
  2109  }
  2110  
  2111  // Nat44SetSessionLimit defines message 'nat44_set_session_limit'.
  2112  type Nat44SetSessionLimit struct {
  2113  	SessionLimit uint32 `binapi:"u32,name=session_limit" json:"session_limit,omitempty"`
  2114  	VrfID        uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  2115  }
  2116  
  2117  func (m *Nat44SetSessionLimit) Reset()               { *m = Nat44SetSessionLimit{} }
  2118  func (*Nat44SetSessionLimit) GetMessageName() string { return "nat44_set_session_limit" }
  2119  func (*Nat44SetSessionLimit) GetCrcString() string   { return "8899bbb1" }
  2120  func (*Nat44SetSessionLimit) GetMessageType() api.MessageType {
  2121  	return api.RequestMessage
  2122  }
  2123  
  2124  func (m *Nat44SetSessionLimit) Size() (size int) {
  2125  	if m == nil {
  2126  		return 0
  2127  	}
  2128  	size += 4 // m.SessionLimit
  2129  	size += 4 // m.VrfID
  2130  	return size
  2131  }
  2132  func (m *Nat44SetSessionLimit) Marshal(b []byte) ([]byte, error) {
  2133  	if b == nil {
  2134  		b = make([]byte, m.Size())
  2135  	}
  2136  	buf := codec.NewBuffer(b)
  2137  	buf.EncodeUint32(m.SessionLimit)
  2138  	buf.EncodeUint32(m.VrfID)
  2139  	return buf.Bytes(), nil
  2140  }
  2141  func (m *Nat44SetSessionLimit) Unmarshal(b []byte) error {
  2142  	buf := codec.NewBuffer(b)
  2143  	m.SessionLimit = buf.DecodeUint32()
  2144  	m.VrfID = buf.DecodeUint32()
  2145  	return nil
  2146  }
  2147  
  2148  // Nat44SetSessionLimitReply defines message 'nat44_set_session_limit_reply'.
  2149  type Nat44SetSessionLimitReply struct {
  2150  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2151  }
  2152  
  2153  func (m *Nat44SetSessionLimitReply) Reset()               { *m = Nat44SetSessionLimitReply{} }
  2154  func (*Nat44SetSessionLimitReply) GetMessageName() string { return "nat44_set_session_limit_reply" }
  2155  func (*Nat44SetSessionLimitReply) GetCrcString() string   { return "e8d4e804" }
  2156  func (*Nat44SetSessionLimitReply) GetMessageType() api.MessageType {
  2157  	return api.ReplyMessage
  2158  }
  2159  
  2160  func (m *Nat44SetSessionLimitReply) Size() (size int) {
  2161  	if m == nil {
  2162  		return 0
  2163  	}
  2164  	size += 4 // m.Retval
  2165  	return size
  2166  }
  2167  func (m *Nat44SetSessionLimitReply) Marshal(b []byte) ([]byte, error) {
  2168  	if b == nil {
  2169  		b = make([]byte, m.Size())
  2170  	}
  2171  	buf := codec.NewBuffer(b)
  2172  	buf.EncodeInt32(m.Retval)
  2173  	return buf.Bytes(), nil
  2174  }
  2175  func (m *Nat44SetSessionLimitReply) Unmarshal(b []byte) error {
  2176  	buf := codec.NewBuffer(b)
  2177  	m.Retval = buf.DecodeInt32()
  2178  	return nil
  2179  }
  2180  
  2181  // Nat44ShowRunningConfig defines message 'nat44_show_running_config'.
  2182  type Nat44ShowRunningConfig struct{}
  2183  
  2184  func (m *Nat44ShowRunningConfig) Reset()               { *m = Nat44ShowRunningConfig{} }
  2185  func (*Nat44ShowRunningConfig) GetMessageName() string { return "nat44_show_running_config" }
  2186  func (*Nat44ShowRunningConfig) GetCrcString() string   { return "51077d14" }
  2187  func (*Nat44ShowRunningConfig) GetMessageType() api.MessageType {
  2188  	return api.RequestMessage
  2189  }
  2190  
  2191  func (m *Nat44ShowRunningConfig) Size() (size int) {
  2192  	if m == nil {
  2193  		return 0
  2194  	}
  2195  	return size
  2196  }
  2197  func (m *Nat44ShowRunningConfig) Marshal(b []byte) ([]byte, error) {
  2198  	if b == nil {
  2199  		b = make([]byte, m.Size())
  2200  	}
  2201  	buf := codec.NewBuffer(b)
  2202  	return buf.Bytes(), nil
  2203  }
  2204  func (m *Nat44ShowRunningConfig) Unmarshal(b []byte) error {
  2205  	return nil
  2206  }
  2207  
  2208  // Nat44ShowRunningConfigReply defines message 'nat44_show_running_config_reply'.
  2209  type Nat44ShowRunningConfigReply struct {
  2210  	Retval              int32                 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2211  	InsideVrf           uint32                `binapi:"u32,name=inside_vrf" json:"inside_vrf,omitempty"`
  2212  	OutsideVrf          uint32                `binapi:"u32,name=outside_vrf" json:"outside_vrf,omitempty"`
  2213  	Users               uint32                `binapi:"u32,name=users" json:"users,omitempty"`
  2214  	Sessions            uint32                `binapi:"u32,name=sessions" json:"sessions,omitempty"`
  2215  	UserSessions        uint32                `binapi:"u32,name=user_sessions" json:"user_sessions,omitempty"`
  2216  	UserBuckets         uint32                `binapi:"u32,name=user_buckets" json:"user_buckets,omitempty"`
  2217  	TranslationBuckets  uint32                `binapi:"u32,name=translation_buckets" json:"translation_buckets,omitempty"`
  2218  	ForwardingEnabled   bool                  `binapi:"bool,name=forwarding_enabled" json:"forwarding_enabled,omitempty"`
  2219  	IpfixLoggingEnabled bool                  `binapi:"bool,name=ipfix_logging_enabled" json:"ipfix_logging_enabled,omitempty"`
  2220  	Timeouts            nat_types.NatTimeouts `binapi:"nat_timeouts,name=timeouts" json:"timeouts,omitempty"`
  2221  	LogLevel            nat_types.NatLogLevel `binapi:"nat_log_level,name=log_level" json:"log_level,omitempty"`
  2222  	Flags               Nat44ConfigFlags      `binapi:"nat44_config_flags,name=flags" json:"flags,omitempty"`
  2223  }
  2224  
  2225  func (m *Nat44ShowRunningConfigReply) Reset()               { *m = Nat44ShowRunningConfigReply{} }
  2226  func (*Nat44ShowRunningConfigReply) GetMessageName() string { return "nat44_show_running_config_reply" }
  2227  func (*Nat44ShowRunningConfigReply) GetCrcString() string   { return "93d8e267" }
  2228  func (*Nat44ShowRunningConfigReply) GetMessageType() api.MessageType {
  2229  	return api.ReplyMessage
  2230  }
  2231  
  2232  func (m *Nat44ShowRunningConfigReply) Size() (size int) {
  2233  	if m == nil {
  2234  		return 0
  2235  	}
  2236  	size += 4 // m.Retval
  2237  	size += 4 // m.InsideVrf
  2238  	size += 4 // m.OutsideVrf
  2239  	size += 4 // m.Users
  2240  	size += 4 // m.Sessions
  2241  	size += 4 // m.UserSessions
  2242  	size += 4 // m.UserBuckets
  2243  	size += 4 // m.TranslationBuckets
  2244  	size += 1 // m.ForwardingEnabled
  2245  	size += 1 // m.IpfixLoggingEnabled
  2246  	size += 4 // m.Timeouts.UDP
  2247  	size += 4 // m.Timeouts.TCPEstablished
  2248  	size += 4 // m.Timeouts.TCPTransitory
  2249  	size += 4 // m.Timeouts.ICMP
  2250  	size += 1 // m.LogLevel
  2251  	size += 1 // m.Flags
  2252  	return size
  2253  }
  2254  func (m *Nat44ShowRunningConfigReply) Marshal(b []byte) ([]byte, error) {
  2255  	if b == nil {
  2256  		b = make([]byte, m.Size())
  2257  	}
  2258  	buf := codec.NewBuffer(b)
  2259  	buf.EncodeInt32(m.Retval)
  2260  	buf.EncodeUint32(m.InsideVrf)
  2261  	buf.EncodeUint32(m.OutsideVrf)
  2262  	buf.EncodeUint32(m.Users)
  2263  	buf.EncodeUint32(m.Sessions)
  2264  	buf.EncodeUint32(m.UserSessions)
  2265  	buf.EncodeUint32(m.UserBuckets)
  2266  	buf.EncodeUint32(m.TranslationBuckets)
  2267  	buf.EncodeBool(m.ForwardingEnabled)
  2268  	buf.EncodeBool(m.IpfixLoggingEnabled)
  2269  	buf.EncodeUint32(m.Timeouts.UDP)
  2270  	buf.EncodeUint32(m.Timeouts.TCPEstablished)
  2271  	buf.EncodeUint32(m.Timeouts.TCPTransitory)
  2272  	buf.EncodeUint32(m.Timeouts.ICMP)
  2273  	buf.EncodeUint8(uint8(m.LogLevel))
  2274  	buf.EncodeUint8(uint8(m.Flags))
  2275  	return buf.Bytes(), nil
  2276  }
  2277  func (m *Nat44ShowRunningConfigReply) Unmarshal(b []byte) error {
  2278  	buf := codec.NewBuffer(b)
  2279  	m.Retval = buf.DecodeInt32()
  2280  	m.InsideVrf = buf.DecodeUint32()
  2281  	m.OutsideVrf = buf.DecodeUint32()
  2282  	m.Users = buf.DecodeUint32()
  2283  	m.Sessions = buf.DecodeUint32()
  2284  	m.UserSessions = buf.DecodeUint32()
  2285  	m.UserBuckets = buf.DecodeUint32()
  2286  	m.TranslationBuckets = buf.DecodeUint32()
  2287  	m.ForwardingEnabled = buf.DecodeBool()
  2288  	m.IpfixLoggingEnabled = buf.DecodeBool()
  2289  	m.Timeouts.UDP = buf.DecodeUint32()
  2290  	m.Timeouts.TCPEstablished = buf.DecodeUint32()
  2291  	m.Timeouts.TCPTransitory = buf.DecodeUint32()
  2292  	m.Timeouts.ICMP = buf.DecodeUint32()
  2293  	m.LogLevel = nat_types.NatLogLevel(buf.DecodeUint8())
  2294  	m.Flags = Nat44ConfigFlags(buf.DecodeUint8())
  2295  	return nil
  2296  }
  2297  
  2298  // Nat44StaticMappingDetails defines message 'nat44_static_mapping_details'.
  2299  type Nat44StaticMappingDetails struct {
  2300  	Flags             nat_types.NatConfigFlags       `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  2301  	LocalIPAddress    ip_types.IP4Address            `binapi:"ip4_address,name=local_ip_address" json:"local_ip_address,omitempty"`
  2302  	ExternalIPAddress ip_types.IP4Address            `binapi:"ip4_address,name=external_ip_address" json:"external_ip_address,omitempty"`
  2303  	Protocol          uint8                          `binapi:"u8,name=protocol" json:"protocol,omitempty"`
  2304  	LocalPort         uint16                         `binapi:"u16,name=local_port" json:"local_port,omitempty"`
  2305  	ExternalPort      uint16                         `binapi:"u16,name=external_port" json:"external_port,omitempty"`
  2306  	ExternalSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=external_sw_if_index" json:"external_sw_if_index,omitempty"`
  2307  	VrfID             uint32                         `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  2308  	Tag               string                         `binapi:"string[64],name=tag" json:"tag,omitempty"`
  2309  }
  2310  
  2311  func (m *Nat44StaticMappingDetails) Reset()               { *m = Nat44StaticMappingDetails{} }
  2312  func (*Nat44StaticMappingDetails) GetMessageName() string { return "nat44_static_mapping_details" }
  2313  func (*Nat44StaticMappingDetails) GetCrcString() string   { return "06cb40b2" }
  2314  func (*Nat44StaticMappingDetails) GetMessageType() api.MessageType {
  2315  	return api.ReplyMessage
  2316  }
  2317  
  2318  func (m *Nat44StaticMappingDetails) Size() (size int) {
  2319  	if m == nil {
  2320  		return 0
  2321  	}
  2322  	size += 1     // m.Flags
  2323  	size += 1 * 4 // m.LocalIPAddress
  2324  	size += 1 * 4 // m.ExternalIPAddress
  2325  	size += 1     // m.Protocol
  2326  	size += 2     // m.LocalPort
  2327  	size += 2     // m.ExternalPort
  2328  	size += 4     // m.ExternalSwIfIndex
  2329  	size += 4     // m.VrfID
  2330  	size += 64    // m.Tag
  2331  	return size
  2332  }
  2333  func (m *Nat44StaticMappingDetails) Marshal(b []byte) ([]byte, error) {
  2334  	if b == nil {
  2335  		b = make([]byte, m.Size())
  2336  	}
  2337  	buf := codec.NewBuffer(b)
  2338  	buf.EncodeUint8(uint8(m.Flags))
  2339  	buf.EncodeBytes(m.LocalIPAddress[:], 4)
  2340  	buf.EncodeBytes(m.ExternalIPAddress[:], 4)
  2341  	buf.EncodeUint8(m.Protocol)
  2342  	buf.EncodeUint16(m.LocalPort)
  2343  	buf.EncodeUint16(m.ExternalPort)
  2344  	buf.EncodeUint32(uint32(m.ExternalSwIfIndex))
  2345  	buf.EncodeUint32(m.VrfID)
  2346  	buf.EncodeString(m.Tag, 64)
  2347  	return buf.Bytes(), nil
  2348  }
  2349  func (m *Nat44StaticMappingDetails) Unmarshal(b []byte) error {
  2350  	buf := codec.NewBuffer(b)
  2351  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  2352  	copy(m.LocalIPAddress[:], buf.DecodeBytes(4))
  2353  	copy(m.ExternalIPAddress[:], buf.DecodeBytes(4))
  2354  	m.Protocol = buf.DecodeUint8()
  2355  	m.LocalPort = buf.DecodeUint16()
  2356  	m.ExternalPort = buf.DecodeUint16()
  2357  	m.ExternalSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
  2358  	m.VrfID = buf.DecodeUint32()
  2359  	m.Tag = buf.DecodeString(64)
  2360  	return nil
  2361  }
  2362  
  2363  // Nat44StaticMappingDump defines message 'nat44_static_mapping_dump'.
  2364  type Nat44StaticMappingDump struct{}
  2365  
  2366  func (m *Nat44StaticMappingDump) Reset()               { *m = Nat44StaticMappingDump{} }
  2367  func (*Nat44StaticMappingDump) GetMessageName() string { return "nat44_static_mapping_dump" }
  2368  func (*Nat44StaticMappingDump) GetCrcString() string   { return "51077d14" }
  2369  func (*Nat44StaticMappingDump) GetMessageType() api.MessageType {
  2370  	return api.RequestMessage
  2371  }
  2372  
  2373  func (m *Nat44StaticMappingDump) Size() (size int) {
  2374  	if m == nil {
  2375  		return 0
  2376  	}
  2377  	return size
  2378  }
  2379  func (m *Nat44StaticMappingDump) Marshal(b []byte) ([]byte, error) {
  2380  	if b == nil {
  2381  		b = make([]byte, m.Size())
  2382  	}
  2383  	buf := codec.NewBuffer(b)
  2384  	return buf.Bytes(), nil
  2385  }
  2386  func (m *Nat44StaticMappingDump) Unmarshal(b []byte) error {
  2387  	return nil
  2388  }
  2389  
  2390  // Nat44UserDetails defines message 'nat44_user_details'.
  2391  type Nat44UserDetails struct {
  2392  	VrfID           uint32              `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  2393  	IPAddress       ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  2394  	Nsessions       uint32              `binapi:"u32,name=nsessions" json:"nsessions,omitempty"`
  2395  	Nstaticsessions uint32              `binapi:"u32,name=nstaticsessions" json:"nstaticsessions,omitempty"`
  2396  }
  2397  
  2398  func (m *Nat44UserDetails) Reset()               { *m = Nat44UserDetails{} }
  2399  func (*Nat44UserDetails) GetMessageName() string { return "nat44_user_details" }
  2400  func (*Nat44UserDetails) GetCrcString() string   { return "355896c2" }
  2401  func (*Nat44UserDetails) GetMessageType() api.MessageType {
  2402  	return api.ReplyMessage
  2403  }
  2404  
  2405  func (m *Nat44UserDetails) Size() (size int) {
  2406  	if m == nil {
  2407  		return 0
  2408  	}
  2409  	size += 4     // m.VrfID
  2410  	size += 1 * 4 // m.IPAddress
  2411  	size += 4     // m.Nsessions
  2412  	size += 4     // m.Nstaticsessions
  2413  	return size
  2414  }
  2415  func (m *Nat44UserDetails) Marshal(b []byte) ([]byte, error) {
  2416  	if b == nil {
  2417  		b = make([]byte, m.Size())
  2418  	}
  2419  	buf := codec.NewBuffer(b)
  2420  	buf.EncodeUint32(m.VrfID)
  2421  	buf.EncodeBytes(m.IPAddress[:], 4)
  2422  	buf.EncodeUint32(m.Nsessions)
  2423  	buf.EncodeUint32(m.Nstaticsessions)
  2424  	return buf.Bytes(), nil
  2425  }
  2426  func (m *Nat44UserDetails) Unmarshal(b []byte) error {
  2427  	buf := codec.NewBuffer(b)
  2428  	m.VrfID = buf.DecodeUint32()
  2429  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  2430  	m.Nsessions = buf.DecodeUint32()
  2431  	m.Nstaticsessions = buf.DecodeUint32()
  2432  	return nil
  2433  }
  2434  
  2435  // Nat44UserDump defines message 'nat44_user_dump'.
  2436  type Nat44UserDump struct{}
  2437  
  2438  func (m *Nat44UserDump) Reset()               { *m = Nat44UserDump{} }
  2439  func (*Nat44UserDump) GetMessageName() string { return "nat44_user_dump" }
  2440  func (*Nat44UserDump) GetCrcString() string   { return "51077d14" }
  2441  func (*Nat44UserDump) GetMessageType() api.MessageType {
  2442  	return api.RequestMessage
  2443  }
  2444  
  2445  func (m *Nat44UserDump) Size() (size int) {
  2446  	if m == nil {
  2447  		return 0
  2448  	}
  2449  	return size
  2450  }
  2451  func (m *Nat44UserDump) Marshal(b []byte) ([]byte, error) {
  2452  	if b == nil {
  2453  		b = make([]byte, m.Size())
  2454  	}
  2455  	buf := codec.NewBuffer(b)
  2456  	return buf.Bytes(), nil
  2457  }
  2458  func (m *Nat44UserDump) Unmarshal(b []byte) error {
  2459  	return nil
  2460  }
  2461  
  2462  // Nat44UserSessionDetails defines message 'nat44_user_session_details'.
  2463  type Nat44UserSessionDetails struct {
  2464  	OutsideIPAddress  ip_types.IP4Address      `binapi:"ip4_address,name=outside_ip_address" json:"outside_ip_address,omitempty"`
  2465  	OutsidePort       uint16                   `binapi:"u16,name=outside_port" json:"outside_port,omitempty"`
  2466  	InsideIPAddress   ip_types.IP4Address      `binapi:"ip4_address,name=inside_ip_address" json:"inside_ip_address,omitempty"`
  2467  	InsidePort        uint16                   `binapi:"u16,name=inside_port" json:"inside_port,omitempty"`
  2468  	Protocol          uint16                   `binapi:"u16,name=protocol" json:"protocol,omitempty"`
  2469  	Flags             nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  2470  	LastHeard         uint64                   `binapi:"u64,name=last_heard" json:"last_heard,omitempty"`
  2471  	TotalBytes        uint64                   `binapi:"u64,name=total_bytes" json:"total_bytes,omitempty"`
  2472  	TotalPkts         uint32                   `binapi:"u32,name=total_pkts" json:"total_pkts,omitempty"`
  2473  	ExtHostAddress    ip_types.IP4Address      `binapi:"ip4_address,name=ext_host_address" json:"ext_host_address,omitempty"`
  2474  	ExtHostPort       uint16                   `binapi:"u16,name=ext_host_port" json:"ext_host_port,omitempty"`
  2475  	ExtHostNatAddress ip_types.IP4Address      `binapi:"ip4_address,name=ext_host_nat_address" json:"ext_host_nat_address,omitempty"`
  2476  	ExtHostNatPort    uint16                   `binapi:"u16,name=ext_host_nat_port" json:"ext_host_nat_port,omitempty"`
  2477  }
  2478  
  2479  func (m *Nat44UserSessionDetails) Reset()               { *m = Nat44UserSessionDetails{} }
  2480  func (*Nat44UserSessionDetails) GetMessageName() string { return "nat44_user_session_details" }
  2481  func (*Nat44UserSessionDetails) GetCrcString() string   { return "2cf6e16d" }
  2482  func (*Nat44UserSessionDetails) GetMessageType() api.MessageType {
  2483  	return api.ReplyMessage
  2484  }
  2485  
  2486  func (m *Nat44UserSessionDetails) Size() (size int) {
  2487  	if m == nil {
  2488  		return 0
  2489  	}
  2490  	size += 1 * 4 // m.OutsideIPAddress
  2491  	size += 2     // m.OutsidePort
  2492  	size += 1 * 4 // m.InsideIPAddress
  2493  	size += 2     // m.InsidePort
  2494  	size += 2     // m.Protocol
  2495  	size += 1     // m.Flags
  2496  	size += 8     // m.LastHeard
  2497  	size += 8     // m.TotalBytes
  2498  	size += 4     // m.TotalPkts
  2499  	size += 1 * 4 // m.ExtHostAddress
  2500  	size += 2     // m.ExtHostPort
  2501  	size += 1 * 4 // m.ExtHostNatAddress
  2502  	size += 2     // m.ExtHostNatPort
  2503  	return size
  2504  }
  2505  func (m *Nat44UserSessionDetails) Marshal(b []byte) ([]byte, error) {
  2506  	if b == nil {
  2507  		b = make([]byte, m.Size())
  2508  	}
  2509  	buf := codec.NewBuffer(b)
  2510  	buf.EncodeBytes(m.OutsideIPAddress[:], 4)
  2511  	buf.EncodeUint16(m.OutsidePort)
  2512  	buf.EncodeBytes(m.InsideIPAddress[:], 4)
  2513  	buf.EncodeUint16(m.InsidePort)
  2514  	buf.EncodeUint16(m.Protocol)
  2515  	buf.EncodeUint8(uint8(m.Flags))
  2516  	buf.EncodeUint64(m.LastHeard)
  2517  	buf.EncodeUint64(m.TotalBytes)
  2518  	buf.EncodeUint32(m.TotalPkts)
  2519  	buf.EncodeBytes(m.ExtHostAddress[:], 4)
  2520  	buf.EncodeUint16(m.ExtHostPort)
  2521  	buf.EncodeBytes(m.ExtHostNatAddress[:], 4)
  2522  	buf.EncodeUint16(m.ExtHostNatPort)
  2523  	return buf.Bytes(), nil
  2524  }
  2525  func (m *Nat44UserSessionDetails) Unmarshal(b []byte) error {
  2526  	buf := codec.NewBuffer(b)
  2527  	copy(m.OutsideIPAddress[:], buf.DecodeBytes(4))
  2528  	m.OutsidePort = buf.DecodeUint16()
  2529  	copy(m.InsideIPAddress[:], buf.DecodeBytes(4))
  2530  	m.InsidePort = buf.DecodeUint16()
  2531  	m.Protocol = buf.DecodeUint16()
  2532  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  2533  	m.LastHeard = buf.DecodeUint64()
  2534  	m.TotalBytes = buf.DecodeUint64()
  2535  	m.TotalPkts = buf.DecodeUint32()
  2536  	copy(m.ExtHostAddress[:], buf.DecodeBytes(4))
  2537  	m.ExtHostPort = buf.DecodeUint16()
  2538  	copy(m.ExtHostNatAddress[:], buf.DecodeBytes(4))
  2539  	m.ExtHostNatPort = buf.DecodeUint16()
  2540  	return nil
  2541  }
  2542  
  2543  // Nat44UserSessionDump defines message 'nat44_user_session_dump'.
  2544  type Nat44UserSessionDump struct {
  2545  	IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  2546  	VrfID     uint32              `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  2547  }
  2548  
  2549  func (m *Nat44UserSessionDump) Reset()               { *m = Nat44UserSessionDump{} }
  2550  func (*Nat44UserSessionDump) GetMessageName() string { return "nat44_user_session_dump" }
  2551  func (*Nat44UserSessionDump) GetCrcString() string   { return "e1899c98" }
  2552  func (*Nat44UserSessionDump) GetMessageType() api.MessageType {
  2553  	return api.RequestMessage
  2554  }
  2555  
  2556  func (m *Nat44UserSessionDump) Size() (size int) {
  2557  	if m == nil {
  2558  		return 0
  2559  	}
  2560  	size += 1 * 4 // m.IPAddress
  2561  	size += 4     // m.VrfID
  2562  	return size
  2563  }
  2564  func (m *Nat44UserSessionDump) Marshal(b []byte) ([]byte, error) {
  2565  	if b == nil {
  2566  		b = make([]byte, m.Size())
  2567  	}
  2568  	buf := codec.NewBuffer(b)
  2569  	buf.EncodeBytes(m.IPAddress[:], 4)
  2570  	buf.EncodeUint32(m.VrfID)
  2571  	return buf.Bytes(), nil
  2572  }
  2573  func (m *Nat44UserSessionDump) Unmarshal(b []byte) error {
  2574  	buf := codec.NewBuffer(b)
  2575  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  2576  	m.VrfID = buf.DecodeUint32()
  2577  	return nil
  2578  }
  2579  
  2580  // Nat44UserSessionV2Details defines message 'nat44_user_session_v2_details'.
  2581  type Nat44UserSessionV2Details struct {
  2582  	OutsideIPAddress  ip_types.IP4Address      `binapi:"ip4_address,name=outside_ip_address" json:"outside_ip_address,omitempty"`
  2583  	OutsidePort       uint16                   `binapi:"u16,name=outside_port" json:"outside_port,omitempty"`
  2584  	InsideIPAddress   ip_types.IP4Address      `binapi:"ip4_address,name=inside_ip_address" json:"inside_ip_address,omitempty"`
  2585  	InsidePort        uint16                   `binapi:"u16,name=inside_port" json:"inside_port,omitempty"`
  2586  	Protocol          uint16                   `binapi:"u16,name=protocol" json:"protocol,omitempty"`
  2587  	Flags             nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"`
  2588  	LastHeard         uint64                   `binapi:"u64,name=last_heard" json:"last_heard,omitempty"`
  2589  	TotalBytes        uint64                   `binapi:"u64,name=total_bytes" json:"total_bytes,omitempty"`
  2590  	TotalPkts         uint32                   `binapi:"u32,name=total_pkts" json:"total_pkts,omitempty"`
  2591  	ExtHostAddress    ip_types.IP4Address      `binapi:"ip4_address,name=ext_host_address" json:"ext_host_address,omitempty"`
  2592  	ExtHostPort       uint16                   `binapi:"u16,name=ext_host_port" json:"ext_host_port,omitempty"`
  2593  	ExtHostNatAddress ip_types.IP4Address      `binapi:"ip4_address,name=ext_host_nat_address" json:"ext_host_nat_address,omitempty"`
  2594  	ExtHostNatPort    uint16                   `binapi:"u16,name=ext_host_nat_port" json:"ext_host_nat_port,omitempty"`
  2595  	IsTimedOut        bool                     `binapi:"bool,name=is_timed_out" json:"is_timed_out,omitempty"`
  2596  }
  2597  
  2598  func (m *Nat44UserSessionV2Details) Reset()               { *m = Nat44UserSessionV2Details{} }
  2599  func (*Nat44UserSessionV2Details) GetMessageName() string { return "nat44_user_session_v2_details" }
  2600  func (*Nat44UserSessionV2Details) GetCrcString() string   { return "fd42b729" }
  2601  func (*Nat44UserSessionV2Details) GetMessageType() api.MessageType {
  2602  	return api.ReplyMessage
  2603  }
  2604  
  2605  func (m *Nat44UserSessionV2Details) Size() (size int) {
  2606  	if m == nil {
  2607  		return 0
  2608  	}
  2609  	size += 1 * 4 // m.OutsideIPAddress
  2610  	size += 2     // m.OutsidePort
  2611  	size += 1 * 4 // m.InsideIPAddress
  2612  	size += 2     // m.InsidePort
  2613  	size += 2     // m.Protocol
  2614  	size += 1     // m.Flags
  2615  	size += 8     // m.LastHeard
  2616  	size += 8     // m.TotalBytes
  2617  	size += 4     // m.TotalPkts
  2618  	size += 1 * 4 // m.ExtHostAddress
  2619  	size += 2     // m.ExtHostPort
  2620  	size += 1 * 4 // m.ExtHostNatAddress
  2621  	size += 2     // m.ExtHostNatPort
  2622  	size += 1     // m.IsTimedOut
  2623  	return size
  2624  }
  2625  func (m *Nat44UserSessionV2Details) Marshal(b []byte) ([]byte, error) {
  2626  	if b == nil {
  2627  		b = make([]byte, m.Size())
  2628  	}
  2629  	buf := codec.NewBuffer(b)
  2630  	buf.EncodeBytes(m.OutsideIPAddress[:], 4)
  2631  	buf.EncodeUint16(m.OutsidePort)
  2632  	buf.EncodeBytes(m.InsideIPAddress[:], 4)
  2633  	buf.EncodeUint16(m.InsidePort)
  2634  	buf.EncodeUint16(m.Protocol)
  2635  	buf.EncodeUint8(uint8(m.Flags))
  2636  	buf.EncodeUint64(m.LastHeard)
  2637  	buf.EncodeUint64(m.TotalBytes)
  2638  	buf.EncodeUint32(m.TotalPkts)
  2639  	buf.EncodeBytes(m.ExtHostAddress[:], 4)
  2640  	buf.EncodeUint16(m.ExtHostPort)
  2641  	buf.EncodeBytes(m.ExtHostNatAddress[:], 4)
  2642  	buf.EncodeUint16(m.ExtHostNatPort)
  2643  	buf.EncodeBool(m.IsTimedOut)
  2644  	return buf.Bytes(), nil
  2645  }
  2646  func (m *Nat44UserSessionV2Details) Unmarshal(b []byte) error {
  2647  	buf := codec.NewBuffer(b)
  2648  	copy(m.OutsideIPAddress[:], buf.DecodeBytes(4))
  2649  	m.OutsidePort = buf.DecodeUint16()
  2650  	copy(m.InsideIPAddress[:], buf.DecodeBytes(4))
  2651  	m.InsidePort = buf.DecodeUint16()
  2652  	m.Protocol = buf.DecodeUint16()
  2653  	m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8())
  2654  	m.LastHeard = buf.DecodeUint64()
  2655  	m.TotalBytes = buf.DecodeUint64()
  2656  	m.TotalPkts = buf.DecodeUint32()
  2657  	copy(m.ExtHostAddress[:], buf.DecodeBytes(4))
  2658  	m.ExtHostPort = buf.DecodeUint16()
  2659  	copy(m.ExtHostNatAddress[:], buf.DecodeBytes(4))
  2660  	m.ExtHostNatPort = buf.DecodeUint16()
  2661  	m.IsTimedOut = buf.DecodeBool()
  2662  	return nil
  2663  }
  2664  
  2665  // Nat44UserSessionV2Dump defines message 'nat44_user_session_v2_dump'.
  2666  type Nat44UserSessionV2Dump struct {
  2667  	IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  2668  	VrfID     uint32              `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"`
  2669  }
  2670  
  2671  func (m *Nat44UserSessionV2Dump) Reset()               { *m = Nat44UserSessionV2Dump{} }
  2672  func (*Nat44UserSessionV2Dump) GetMessageName() string { return "nat44_user_session_v2_dump" }
  2673  func (*Nat44UserSessionV2Dump) GetCrcString() string   { return "e1899c98" }
  2674  func (*Nat44UserSessionV2Dump) GetMessageType() api.MessageType {
  2675  	return api.RequestMessage
  2676  }
  2677  
  2678  func (m *Nat44UserSessionV2Dump) Size() (size int) {
  2679  	if m == nil {
  2680  		return 0
  2681  	}
  2682  	size += 1 * 4 // m.IPAddress
  2683  	size += 4     // m.VrfID
  2684  	return size
  2685  }
  2686  func (m *Nat44UserSessionV2Dump) Marshal(b []byte) ([]byte, error) {
  2687  	if b == nil {
  2688  		b = make([]byte, m.Size())
  2689  	}
  2690  	buf := codec.NewBuffer(b)
  2691  	buf.EncodeBytes(m.IPAddress[:], 4)
  2692  	buf.EncodeUint32(m.VrfID)
  2693  	return buf.Bytes(), nil
  2694  }
  2695  func (m *Nat44UserSessionV2Dump) Unmarshal(b []byte) error {
  2696  	buf := codec.NewBuffer(b)
  2697  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  2698  	m.VrfID = buf.DecodeUint32()
  2699  	return nil
  2700  }
  2701  
  2702  // NatGetAddrAndPortAllocAlg defines message 'nat_get_addr_and_port_alloc_alg'.
  2703  // Deprecated: the message will be removed in the future versions
  2704  type NatGetAddrAndPortAllocAlg struct{}
  2705  
  2706  func (m *NatGetAddrAndPortAllocAlg) Reset()               { *m = NatGetAddrAndPortAllocAlg{} }
  2707  func (*NatGetAddrAndPortAllocAlg) GetMessageName() string { return "nat_get_addr_and_port_alloc_alg" }
  2708  func (*NatGetAddrAndPortAllocAlg) GetCrcString() string   { return "51077d14" }
  2709  func (*NatGetAddrAndPortAllocAlg) GetMessageType() api.MessageType {
  2710  	return api.RequestMessage
  2711  }
  2712  
  2713  func (m *NatGetAddrAndPortAllocAlg) Size() (size int) {
  2714  	if m == nil {
  2715  		return 0
  2716  	}
  2717  	return size
  2718  }
  2719  func (m *NatGetAddrAndPortAllocAlg) Marshal(b []byte) ([]byte, error) {
  2720  	if b == nil {
  2721  		b = make([]byte, m.Size())
  2722  	}
  2723  	buf := codec.NewBuffer(b)
  2724  	return buf.Bytes(), nil
  2725  }
  2726  func (m *NatGetAddrAndPortAllocAlg) Unmarshal(b []byte) error {
  2727  	return nil
  2728  }
  2729  
  2730  // NatGetAddrAndPortAllocAlgReply defines message 'nat_get_addr_and_port_alloc_alg_reply'.
  2731  // Deprecated: the message will be removed in the future versions
  2732  type NatGetAddrAndPortAllocAlgReply struct {
  2733  	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  2734  	Alg        uint8  `binapi:"u8,name=alg" json:"alg,omitempty"`
  2735  	PsidOffset uint8  `binapi:"u8,name=psid_offset" json:"psid_offset,omitempty"`
  2736  	PsidLength uint8  `binapi:"u8,name=psid_length" json:"psid_length,omitempty"`
  2737  	Psid       uint16 `binapi:"u16,name=psid" json:"psid,omitempty"`
  2738  	StartPort  uint16 `binapi:"u16,name=start_port" json:"start_port,omitempty"`
  2739  	EndPort    uint16 `binapi:"u16,name=end_port" json:"end_port,omitempty"`
  2740  }
  2741  
  2742  func (m *NatGetAddrAndPortAllocAlgReply) Reset() { *m = NatGetAddrAndPortAllocAlgReply{} }
  2743  func (*NatGetAddrAndPortAllocAlgReply) GetMessageName() string {
  2744  	return "nat_get_addr_and_port_alloc_alg_reply"
  2745  }
  2746  func (*NatGetAddrAndPortAllocAlgReply) GetCrcString() string { return "3607a7d0" }
  2747  func (*NatGetAddrAndPortAllocAlgReply) GetMessageType() api.MessageType {
  2748  	return api.ReplyMessage
  2749  }
  2750  
  2751  func (m *NatGetAddrAndPortAllocAlgReply) Size() (size int) {
  2752  	if m == nil {
  2753  		return 0
  2754  	}
  2755  	size += 4 // m.Retval
  2756  	size += 1 // m.Alg
  2757  	size += 1 // m.PsidOffset
  2758  	size += 1 // m.PsidLength
  2759  	size += 2 // m.Psid
  2760  	size += 2 // m.StartPort
  2761  	size += 2 // m.EndPort
  2762  	return size
  2763  }
  2764  func (m *NatGetAddrAndPortAllocAlgReply) Marshal(b []byte) ([]byte, error) {
  2765  	if b == nil {
  2766  		b = make([]byte, m.Size())
  2767  	}
  2768  	buf := codec.NewBuffer(b)
  2769  	buf.EncodeInt32(m.Retval)
  2770  	buf.EncodeUint8(m.Alg)
  2771  	buf.EncodeUint8(m.PsidOffset)
  2772  	buf.EncodeUint8(m.PsidLength)
  2773  	buf.EncodeUint16(m.Psid)
  2774  	buf.EncodeUint16(m.StartPort)
  2775  	buf.EncodeUint16(m.EndPort)
  2776  	return buf.Bytes(), nil
  2777  }
  2778  func (m *NatGetAddrAndPortAllocAlgReply) Unmarshal(b []byte) error {
  2779  	buf := codec.NewBuffer(b)
  2780  	m.Retval = buf.DecodeInt32()
  2781  	m.Alg = buf.DecodeUint8()
  2782  	m.PsidOffset = buf.DecodeUint8()
  2783  	m.PsidLength = buf.DecodeUint8()
  2784  	m.Psid = buf.DecodeUint16()
  2785  	m.StartPort = buf.DecodeUint16()
  2786  	m.EndPort = buf.DecodeUint16()
  2787  	return nil
  2788  }
  2789  
  2790  // NatGetMssClamping defines message 'nat_get_mss_clamping'.
  2791  type NatGetMssClamping struct{}
  2792  
  2793  func (m *NatGetMssClamping) Reset()               { *m = NatGetMssClamping{} }
  2794  func (*NatGetMssClamping) GetMessageName() string { return "nat_get_mss_clamping" }
  2795  func (*NatGetMssClamping) GetCrcString() string   { return "51077d14" }
  2796  func (*NatGetMssClamping) GetMessageType() api.MessageType {
  2797  	return api.RequestMessage
  2798  }
  2799  
  2800  func (m *NatGetMssClamping) Size() (size int) {
  2801  	if m == nil {
  2802  		return 0
  2803  	}
  2804  	return size
  2805  }
  2806  func (m *NatGetMssClamping) Marshal(b []byte) ([]byte, error) {
  2807  	if b == nil {
  2808  		b = make([]byte, m.Size())
  2809  	}
  2810  	buf := codec.NewBuffer(b)
  2811  	return buf.Bytes(), nil
  2812  }
  2813  func (m *NatGetMssClamping) Unmarshal(b []byte) error {
  2814  	return nil
  2815  }
  2816  
  2817  // NatGetMssClampingReply defines message 'nat_get_mss_clamping_reply'.
  2818  type NatGetMssClampingReply struct {
  2819  	Retval   int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
  2820  	MssValue uint16 `binapi:"u16,name=mss_value" json:"mss_value,omitempty"`
  2821  	Enable   bool   `binapi:"bool,name=enable" json:"enable,omitempty"`
  2822  }
  2823  
  2824  func (m *NatGetMssClampingReply) Reset()               { *m = NatGetMssClampingReply{} }
  2825  func (*NatGetMssClampingReply) GetMessageName() string { return "nat_get_mss_clamping_reply" }
  2826  func (*NatGetMssClampingReply) GetCrcString() string   { return "1c0b2a78" }
  2827  func (*NatGetMssClampingReply) GetMessageType() api.MessageType {
  2828  	return api.ReplyMessage
  2829  }
  2830  
  2831  func (m *NatGetMssClampingReply) Size() (size int) {
  2832  	if m == nil {
  2833  		return 0
  2834  	}
  2835  	size += 4 // m.Retval
  2836  	size += 2 // m.MssValue
  2837  	size += 1 // m.Enable
  2838  	return size
  2839  }
  2840  func (m *NatGetMssClampingReply) Marshal(b []byte) ([]byte, error) {
  2841  	if b == nil {
  2842  		b = make([]byte, m.Size())
  2843  	}
  2844  	buf := codec.NewBuffer(b)
  2845  	buf.EncodeInt32(m.Retval)
  2846  	buf.EncodeUint16(m.MssValue)
  2847  	buf.EncodeBool(m.Enable)
  2848  	return buf.Bytes(), nil
  2849  }
  2850  func (m *NatGetMssClampingReply) Unmarshal(b []byte) error {
  2851  	buf := codec.NewBuffer(b)
  2852  	m.Retval = buf.DecodeInt32()
  2853  	m.MssValue = buf.DecodeUint16()
  2854  	m.Enable = buf.DecodeBool()
  2855  	return nil
  2856  }
  2857  
  2858  // NatHaFlush defines message 'nat_ha_flush'.
  2859  // Deprecated: the message will be removed in the future versions
  2860  type NatHaFlush struct{}
  2861  
  2862  func (m *NatHaFlush) Reset()               { *m = NatHaFlush{} }
  2863  func (*NatHaFlush) GetMessageName() string { return "nat_ha_flush" }
  2864  func (*NatHaFlush) GetCrcString() string   { return "51077d14" }
  2865  func (*NatHaFlush) GetMessageType() api.MessageType {
  2866  	return api.RequestMessage
  2867  }
  2868  
  2869  func (m *NatHaFlush) Size() (size int) {
  2870  	if m == nil {
  2871  		return 0
  2872  	}
  2873  	return size
  2874  }
  2875  func (m *NatHaFlush) Marshal(b []byte) ([]byte, error) {
  2876  	if b == nil {
  2877  		b = make([]byte, m.Size())
  2878  	}
  2879  	buf := codec.NewBuffer(b)
  2880  	return buf.Bytes(), nil
  2881  }
  2882  func (m *NatHaFlush) Unmarshal(b []byte) error {
  2883  	return nil
  2884  }
  2885  
  2886  // NatHaFlushReply defines message 'nat_ha_flush_reply'.
  2887  // Deprecated: the message will be removed in the future versions
  2888  type NatHaFlushReply struct {
  2889  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  2890  }
  2891  
  2892  func (m *NatHaFlushReply) Reset()               { *m = NatHaFlushReply{} }
  2893  func (*NatHaFlushReply) GetMessageName() string { return "nat_ha_flush_reply" }
  2894  func (*NatHaFlushReply) GetCrcString() string   { return "e8d4e804" }
  2895  func (*NatHaFlushReply) GetMessageType() api.MessageType {
  2896  	return api.ReplyMessage
  2897  }
  2898  
  2899  func (m *NatHaFlushReply) Size() (size int) {
  2900  	if m == nil {
  2901  		return 0
  2902  	}
  2903  	size += 4 // m.Retval
  2904  	return size
  2905  }
  2906  func (m *NatHaFlushReply) Marshal(b []byte) ([]byte, error) {
  2907  	if b == nil {
  2908  		b = make([]byte, m.Size())
  2909  	}
  2910  	buf := codec.NewBuffer(b)
  2911  	buf.EncodeInt32(m.Retval)
  2912  	return buf.Bytes(), nil
  2913  }
  2914  func (m *NatHaFlushReply) Unmarshal(b []byte) error {
  2915  	buf := codec.NewBuffer(b)
  2916  	m.Retval = buf.DecodeInt32()
  2917  	return nil
  2918  }
  2919  
  2920  // NatHaGetFailover defines message 'nat_ha_get_failover'.
  2921  // Deprecated: the message will be removed in the future versions
  2922  type NatHaGetFailover struct{}
  2923  
  2924  func (m *NatHaGetFailover) Reset()               { *m = NatHaGetFailover{} }
  2925  func (*NatHaGetFailover) GetMessageName() string { return "nat_ha_get_failover" }
  2926  func (*NatHaGetFailover) GetCrcString() string   { return "51077d14" }
  2927  func (*NatHaGetFailover) GetMessageType() api.MessageType {
  2928  	return api.RequestMessage
  2929  }
  2930  
  2931  func (m *NatHaGetFailover) Size() (size int) {
  2932  	if m == nil {
  2933  		return 0
  2934  	}
  2935  	return size
  2936  }
  2937  func (m *NatHaGetFailover) Marshal(b []byte) ([]byte, error) {
  2938  	if b == nil {
  2939  		b = make([]byte, m.Size())
  2940  	}
  2941  	buf := codec.NewBuffer(b)
  2942  	return buf.Bytes(), nil
  2943  }
  2944  func (m *NatHaGetFailover) Unmarshal(b []byte) error {
  2945  	return nil
  2946  }
  2947  
  2948  // NatHaGetFailoverReply defines message 'nat_ha_get_failover_reply'.
  2949  // Deprecated: the message will be removed in the future versions
  2950  type NatHaGetFailoverReply struct {
  2951  	Retval                 int32               `binapi:"i32,name=retval" json:"retval,omitempty"`
  2952  	IPAddress              ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  2953  	Port                   uint16              `binapi:"u16,name=port" json:"port,omitempty"`
  2954  	SessionRefreshInterval uint32              `binapi:"u32,name=session_refresh_interval" json:"session_refresh_interval,omitempty"`
  2955  }
  2956  
  2957  func (m *NatHaGetFailoverReply) Reset()               { *m = NatHaGetFailoverReply{} }
  2958  func (*NatHaGetFailoverReply) GetMessageName() string { return "nat_ha_get_failover_reply" }
  2959  func (*NatHaGetFailoverReply) GetCrcString() string   { return "a67d8752" }
  2960  func (*NatHaGetFailoverReply) GetMessageType() api.MessageType {
  2961  	return api.ReplyMessage
  2962  }
  2963  
  2964  func (m *NatHaGetFailoverReply) Size() (size int) {
  2965  	if m == nil {
  2966  		return 0
  2967  	}
  2968  	size += 4     // m.Retval
  2969  	size += 1 * 4 // m.IPAddress
  2970  	size += 2     // m.Port
  2971  	size += 4     // m.SessionRefreshInterval
  2972  	return size
  2973  }
  2974  func (m *NatHaGetFailoverReply) Marshal(b []byte) ([]byte, error) {
  2975  	if b == nil {
  2976  		b = make([]byte, m.Size())
  2977  	}
  2978  	buf := codec.NewBuffer(b)
  2979  	buf.EncodeInt32(m.Retval)
  2980  	buf.EncodeBytes(m.IPAddress[:], 4)
  2981  	buf.EncodeUint16(m.Port)
  2982  	buf.EncodeUint32(m.SessionRefreshInterval)
  2983  	return buf.Bytes(), nil
  2984  }
  2985  func (m *NatHaGetFailoverReply) Unmarshal(b []byte) error {
  2986  	buf := codec.NewBuffer(b)
  2987  	m.Retval = buf.DecodeInt32()
  2988  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  2989  	m.Port = buf.DecodeUint16()
  2990  	m.SessionRefreshInterval = buf.DecodeUint32()
  2991  	return nil
  2992  }
  2993  
  2994  // NatHaGetListener defines message 'nat_ha_get_listener'.
  2995  // Deprecated: the message will be removed in the future versions
  2996  type NatHaGetListener struct{}
  2997  
  2998  func (m *NatHaGetListener) Reset()               { *m = NatHaGetListener{} }
  2999  func (*NatHaGetListener) GetMessageName() string { return "nat_ha_get_listener" }
  3000  func (*NatHaGetListener) GetCrcString() string   { return "51077d14" }
  3001  func (*NatHaGetListener) GetMessageType() api.MessageType {
  3002  	return api.RequestMessage
  3003  }
  3004  
  3005  func (m *NatHaGetListener) Size() (size int) {
  3006  	if m == nil {
  3007  		return 0
  3008  	}
  3009  	return size
  3010  }
  3011  func (m *NatHaGetListener) Marshal(b []byte) ([]byte, error) {
  3012  	if b == nil {
  3013  		b = make([]byte, m.Size())
  3014  	}
  3015  	buf := codec.NewBuffer(b)
  3016  	return buf.Bytes(), nil
  3017  }
  3018  func (m *NatHaGetListener) Unmarshal(b []byte) error {
  3019  	return nil
  3020  }
  3021  
  3022  // NatHaGetListenerReply defines message 'nat_ha_get_listener_reply'.
  3023  // Deprecated: the message will be removed in the future versions
  3024  type NatHaGetListenerReply struct {
  3025  	Retval    int32               `binapi:"i32,name=retval" json:"retval,omitempty"`
  3026  	IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  3027  	Port      uint16              `binapi:"u16,name=port" json:"port,omitempty"`
  3028  	PathMtu   uint32              `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
  3029  }
  3030  
  3031  func (m *NatHaGetListenerReply) Reset()               { *m = NatHaGetListenerReply{} }
  3032  func (*NatHaGetListenerReply) GetMessageName() string { return "nat_ha_get_listener_reply" }
  3033  func (*NatHaGetListenerReply) GetCrcString() string   { return "123ea41f" }
  3034  func (*NatHaGetListenerReply) GetMessageType() api.MessageType {
  3035  	return api.ReplyMessage
  3036  }
  3037  
  3038  func (m *NatHaGetListenerReply) Size() (size int) {
  3039  	if m == nil {
  3040  		return 0
  3041  	}
  3042  	size += 4     // m.Retval
  3043  	size += 1 * 4 // m.IPAddress
  3044  	size += 2     // m.Port
  3045  	size += 4     // m.PathMtu
  3046  	return size
  3047  }
  3048  func (m *NatHaGetListenerReply) Marshal(b []byte) ([]byte, error) {
  3049  	if b == nil {
  3050  		b = make([]byte, m.Size())
  3051  	}
  3052  	buf := codec.NewBuffer(b)
  3053  	buf.EncodeInt32(m.Retval)
  3054  	buf.EncodeBytes(m.IPAddress[:], 4)
  3055  	buf.EncodeUint16(m.Port)
  3056  	buf.EncodeUint32(m.PathMtu)
  3057  	return buf.Bytes(), nil
  3058  }
  3059  func (m *NatHaGetListenerReply) Unmarshal(b []byte) error {
  3060  	buf := codec.NewBuffer(b)
  3061  	m.Retval = buf.DecodeInt32()
  3062  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  3063  	m.Port = buf.DecodeUint16()
  3064  	m.PathMtu = buf.DecodeUint32()
  3065  	return nil
  3066  }
  3067  
  3068  // NatHaResync defines message 'nat_ha_resync'.
  3069  // Deprecated: the message will be removed in the future versions
  3070  type NatHaResync struct {
  3071  	WantResyncEvent uint8  `binapi:"u8,name=want_resync_event" json:"want_resync_event,omitempty"`
  3072  	PID             uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
  3073  }
  3074  
  3075  func (m *NatHaResync) Reset()               { *m = NatHaResync{} }
  3076  func (*NatHaResync) GetMessageName() string { return "nat_ha_resync" }
  3077  func (*NatHaResync) GetCrcString() string   { return "c8ab9e03" }
  3078  func (*NatHaResync) GetMessageType() api.MessageType {
  3079  	return api.RequestMessage
  3080  }
  3081  
  3082  func (m *NatHaResync) Size() (size int) {
  3083  	if m == nil {
  3084  		return 0
  3085  	}
  3086  	size += 1 // m.WantResyncEvent
  3087  	size += 4 // m.PID
  3088  	return size
  3089  }
  3090  func (m *NatHaResync) Marshal(b []byte) ([]byte, error) {
  3091  	if b == nil {
  3092  		b = make([]byte, m.Size())
  3093  	}
  3094  	buf := codec.NewBuffer(b)
  3095  	buf.EncodeUint8(m.WantResyncEvent)
  3096  	buf.EncodeUint32(m.PID)
  3097  	return buf.Bytes(), nil
  3098  }
  3099  func (m *NatHaResync) Unmarshal(b []byte) error {
  3100  	buf := codec.NewBuffer(b)
  3101  	m.WantResyncEvent = buf.DecodeUint8()
  3102  	m.PID = buf.DecodeUint32()
  3103  	return nil
  3104  }
  3105  
  3106  // NatHaResyncCompletedEvent defines message 'nat_ha_resync_completed_event'.
  3107  // Deprecated: the message will be removed in the future versions
  3108  type NatHaResyncCompletedEvent struct {
  3109  	PID         uint32 `binapi:"u32,name=pid" json:"pid,omitempty"`
  3110  	MissedCount uint32 `binapi:"u32,name=missed_count" json:"missed_count,omitempty"`
  3111  }
  3112  
  3113  func (m *NatHaResyncCompletedEvent) Reset()               { *m = NatHaResyncCompletedEvent{} }
  3114  func (*NatHaResyncCompletedEvent) GetMessageName() string { return "nat_ha_resync_completed_event" }
  3115  func (*NatHaResyncCompletedEvent) GetCrcString() string   { return "fdc598fb" }
  3116  func (*NatHaResyncCompletedEvent) GetMessageType() api.MessageType {
  3117  	return api.EventMessage
  3118  }
  3119  
  3120  func (m *NatHaResyncCompletedEvent) Size() (size int) {
  3121  	if m == nil {
  3122  		return 0
  3123  	}
  3124  	size += 4 // m.PID
  3125  	size += 4 // m.MissedCount
  3126  	return size
  3127  }
  3128  func (m *NatHaResyncCompletedEvent) Marshal(b []byte) ([]byte, error) {
  3129  	if b == nil {
  3130  		b = make([]byte, m.Size())
  3131  	}
  3132  	buf := codec.NewBuffer(b)
  3133  	buf.EncodeUint32(m.PID)
  3134  	buf.EncodeUint32(m.MissedCount)
  3135  	return buf.Bytes(), nil
  3136  }
  3137  func (m *NatHaResyncCompletedEvent) Unmarshal(b []byte) error {
  3138  	buf := codec.NewBuffer(b)
  3139  	m.PID = buf.DecodeUint32()
  3140  	m.MissedCount = buf.DecodeUint32()
  3141  	return nil
  3142  }
  3143  
  3144  // NatHaResyncReply defines message 'nat_ha_resync_reply'.
  3145  // Deprecated: the message will be removed in the future versions
  3146  type NatHaResyncReply struct {
  3147  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3148  }
  3149  
  3150  func (m *NatHaResyncReply) Reset()               { *m = NatHaResyncReply{} }
  3151  func (*NatHaResyncReply) GetMessageName() string { return "nat_ha_resync_reply" }
  3152  func (*NatHaResyncReply) GetCrcString() string   { return "e8d4e804" }
  3153  func (*NatHaResyncReply) GetMessageType() api.MessageType {
  3154  	return api.ReplyMessage
  3155  }
  3156  
  3157  func (m *NatHaResyncReply) Size() (size int) {
  3158  	if m == nil {
  3159  		return 0
  3160  	}
  3161  	size += 4 // m.Retval
  3162  	return size
  3163  }
  3164  func (m *NatHaResyncReply) Marshal(b []byte) ([]byte, error) {
  3165  	if b == nil {
  3166  		b = make([]byte, m.Size())
  3167  	}
  3168  	buf := codec.NewBuffer(b)
  3169  	buf.EncodeInt32(m.Retval)
  3170  	return buf.Bytes(), nil
  3171  }
  3172  func (m *NatHaResyncReply) Unmarshal(b []byte) error {
  3173  	buf := codec.NewBuffer(b)
  3174  	m.Retval = buf.DecodeInt32()
  3175  	return nil
  3176  }
  3177  
  3178  // NatHaSetFailover defines message 'nat_ha_set_failover'.
  3179  // Deprecated: the message will be removed in the future versions
  3180  type NatHaSetFailover struct {
  3181  	IPAddress              ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  3182  	Port                   uint16              `binapi:"u16,name=port" json:"port,omitempty"`
  3183  	SessionRefreshInterval uint32              `binapi:"u32,name=session_refresh_interval" json:"session_refresh_interval,omitempty"`
  3184  }
  3185  
  3186  func (m *NatHaSetFailover) Reset()               { *m = NatHaSetFailover{} }
  3187  func (*NatHaSetFailover) GetMessageName() string { return "nat_ha_set_failover" }
  3188  func (*NatHaSetFailover) GetCrcString() string   { return "718246af" }
  3189  func (*NatHaSetFailover) GetMessageType() api.MessageType {
  3190  	return api.RequestMessage
  3191  }
  3192  
  3193  func (m *NatHaSetFailover) Size() (size int) {
  3194  	if m == nil {
  3195  		return 0
  3196  	}
  3197  	size += 1 * 4 // m.IPAddress
  3198  	size += 2     // m.Port
  3199  	size += 4     // m.SessionRefreshInterval
  3200  	return size
  3201  }
  3202  func (m *NatHaSetFailover) Marshal(b []byte) ([]byte, error) {
  3203  	if b == nil {
  3204  		b = make([]byte, m.Size())
  3205  	}
  3206  	buf := codec.NewBuffer(b)
  3207  	buf.EncodeBytes(m.IPAddress[:], 4)
  3208  	buf.EncodeUint16(m.Port)
  3209  	buf.EncodeUint32(m.SessionRefreshInterval)
  3210  	return buf.Bytes(), nil
  3211  }
  3212  func (m *NatHaSetFailover) Unmarshal(b []byte) error {
  3213  	buf := codec.NewBuffer(b)
  3214  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  3215  	m.Port = buf.DecodeUint16()
  3216  	m.SessionRefreshInterval = buf.DecodeUint32()
  3217  	return nil
  3218  }
  3219  
  3220  // NatHaSetFailoverReply defines message 'nat_ha_set_failover_reply'.
  3221  // Deprecated: the message will be removed in the future versions
  3222  type NatHaSetFailoverReply struct {
  3223  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3224  }
  3225  
  3226  func (m *NatHaSetFailoverReply) Reset()               { *m = NatHaSetFailoverReply{} }
  3227  func (*NatHaSetFailoverReply) GetMessageName() string { return "nat_ha_set_failover_reply" }
  3228  func (*NatHaSetFailoverReply) GetCrcString() string   { return "e8d4e804" }
  3229  func (*NatHaSetFailoverReply) GetMessageType() api.MessageType {
  3230  	return api.ReplyMessage
  3231  }
  3232  
  3233  func (m *NatHaSetFailoverReply) Size() (size int) {
  3234  	if m == nil {
  3235  		return 0
  3236  	}
  3237  	size += 4 // m.Retval
  3238  	return size
  3239  }
  3240  func (m *NatHaSetFailoverReply) Marshal(b []byte) ([]byte, error) {
  3241  	if b == nil {
  3242  		b = make([]byte, m.Size())
  3243  	}
  3244  	buf := codec.NewBuffer(b)
  3245  	buf.EncodeInt32(m.Retval)
  3246  	return buf.Bytes(), nil
  3247  }
  3248  func (m *NatHaSetFailoverReply) Unmarshal(b []byte) error {
  3249  	buf := codec.NewBuffer(b)
  3250  	m.Retval = buf.DecodeInt32()
  3251  	return nil
  3252  }
  3253  
  3254  // NatHaSetListener defines message 'nat_ha_set_listener'.
  3255  // Deprecated: the message will be removed in the future versions
  3256  type NatHaSetListener struct {
  3257  	IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"`
  3258  	Port      uint16              `binapi:"u16,name=port" json:"port,omitempty"`
  3259  	PathMtu   uint32              `binapi:"u32,name=path_mtu" json:"path_mtu,omitempty"`
  3260  }
  3261  
  3262  func (m *NatHaSetListener) Reset()               { *m = NatHaSetListener{} }
  3263  func (*NatHaSetListener) GetMessageName() string { return "nat_ha_set_listener" }
  3264  func (*NatHaSetListener) GetCrcString() string   { return "e4a8cb4e" }
  3265  func (*NatHaSetListener) GetMessageType() api.MessageType {
  3266  	return api.RequestMessage
  3267  }
  3268  
  3269  func (m *NatHaSetListener) Size() (size int) {
  3270  	if m == nil {
  3271  		return 0
  3272  	}
  3273  	size += 1 * 4 // m.IPAddress
  3274  	size += 2     // m.Port
  3275  	size += 4     // m.PathMtu
  3276  	return size
  3277  }
  3278  func (m *NatHaSetListener) Marshal(b []byte) ([]byte, error) {
  3279  	if b == nil {
  3280  		b = make([]byte, m.Size())
  3281  	}
  3282  	buf := codec.NewBuffer(b)
  3283  	buf.EncodeBytes(m.IPAddress[:], 4)
  3284  	buf.EncodeUint16(m.Port)
  3285  	buf.EncodeUint32(m.PathMtu)
  3286  	return buf.Bytes(), nil
  3287  }
  3288  func (m *NatHaSetListener) Unmarshal(b []byte) error {
  3289  	buf := codec.NewBuffer(b)
  3290  	copy(m.IPAddress[:], buf.DecodeBytes(4))
  3291  	m.Port = buf.DecodeUint16()
  3292  	m.PathMtu = buf.DecodeUint32()
  3293  	return nil
  3294  }
  3295  
  3296  // NatHaSetListenerReply defines message 'nat_ha_set_listener_reply'.
  3297  // Deprecated: the message will be removed in the future versions
  3298  type NatHaSetListenerReply struct {
  3299  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3300  }
  3301  
  3302  func (m *NatHaSetListenerReply) Reset()               { *m = NatHaSetListenerReply{} }
  3303  func (*NatHaSetListenerReply) GetMessageName() string { return "nat_ha_set_listener_reply" }
  3304  func (*NatHaSetListenerReply) GetCrcString() string   { return "e8d4e804" }
  3305  func (*NatHaSetListenerReply) GetMessageType() api.MessageType {
  3306  	return api.ReplyMessage
  3307  }
  3308  
  3309  func (m *NatHaSetListenerReply) Size() (size int) {
  3310  	if m == nil {
  3311  		return 0
  3312  	}
  3313  	size += 4 // m.Retval
  3314  	return size
  3315  }
  3316  func (m *NatHaSetListenerReply) Marshal(b []byte) ([]byte, error) {
  3317  	if b == nil {
  3318  		b = make([]byte, m.Size())
  3319  	}
  3320  	buf := codec.NewBuffer(b)
  3321  	buf.EncodeInt32(m.Retval)
  3322  	return buf.Bytes(), nil
  3323  }
  3324  func (m *NatHaSetListenerReply) Unmarshal(b []byte) error {
  3325  	buf := codec.NewBuffer(b)
  3326  	m.Retval = buf.DecodeInt32()
  3327  	return nil
  3328  }
  3329  
  3330  // NatIpfixEnableDisable defines message 'nat_ipfix_enable_disable'.
  3331  // Deprecated: the message will be removed in the future versions
  3332  type NatIpfixEnableDisable struct {
  3333  	DomainID uint32 `binapi:"u32,name=domain_id" json:"domain_id,omitempty"`
  3334  	SrcPort  uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"`
  3335  	Enable   bool   `binapi:"bool,name=enable" json:"enable,omitempty"`
  3336  }
  3337  
  3338  func (m *NatIpfixEnableDisable) Reset()               { *m = NatIpfixEnableDisable{} }
  3339  func (*NatIpfixEnableDisable) GetMessageName() string { return "nat_ipfix_enable_disable" }
  3340  func (*NatIpfixEnableDisable) GetCrcString() string   { return "9af4a2d2" }
  3341  func (*NatIpfixEnableDisable) GetMessageType() api.MessageType {
  3342  	return api.RequestMessage
  3343  }
  3344  
  3345  func (m *NatIpfixEnableDisable) Size() (size int) {
  3346  	if m == nil {
  3347  		return 0
  3348  	}
  3349  	size += 4 // m.DomainID
  3350  	size += 2 // m.SrcPort
  3351  	size += 1 // m.Enable
  3352  	return size
  3353  }
  3354  func (m *NatIpfixEnableDisable) Marshal(b []byte) ([]byte, error) {
  3355  	if b == nil {
  3356  		b = make([]byte, m.Size())
  3357  	}
  3358  	buf := codec.NewBuffer(b)
  3359  	buf.EncodeUint32(m.DomainID)
  3360  	buf.EncodeUint16(m.SrcPort)
  3361  	buf.EncodeBool(m.Enable)
  3362  	return buf.Bytes(), nil
  3363  }
  3364  func (m *NatIpfixEnableDisable) Unmarshal(b []byte) error {
  3365  	buf := codec.NewBuffer(b)
  3366  	m.DomainID = buf.DecodeUint32()
  3367  	m.SrcPort = buf.DecodeUint16()
  3368  	m.Enable = buf.DecodeBool()
  3369  	return nil
  3370  }
  3371  
  3372  // NatIpfixEnableDisableReply defines message 'nat_ipfix_enable_disable_reply'.
  3373  // Deprecated: the message will be removed in the future versions
  3374  type NatIpfixEnableDisableReply struct {
  3375  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3376  }
  3377  
  3378  func (m *NatIpfixEnableDisableReply) Reset()               { *m = NatIpfixEnableDisableReply{} }
  3379  func (*NatIpfixEnableDisableReply) GetMessageName() string { return "nat_ipfix_enable_disable_reply" }
  3380  func (*NatIpfixEnableDisableReply) GetCrcString() string   { return "e8d4e804" }
  3381  func (*NatIpfixEnableDisableReply) GetMessageType() api.MessageType {
  3382  	return api.ReplyMessage
  3383  }
  3384  
  3385  func (m *NatIpfixEnableDisableReply) Size() (size int) {
  3386  	if m == nil {
  3387  		return 0
  3388  	}
  3389  	size += 4 // m.Retval
  3390  	return size
  3391  }
  3392  func (m *NatIpfixEnableDisableReply) Marshal(b []byte) ([]byte, error) {
  3393  	if b == nil {
  3394  		b = make([]byte, m.Size())
  3395  	}
  3396  	buf := codec.NewBuffer(b)
  3397  	buf.EncodeInt32(m.Retval)
  3398  	return buf.Bytes(), nil
  3399  }
  3400  func (m *NatIpfixEnableDisableReply) Unmarshal(b []byte) error {
  3401  	buf := codec.NewBuffer(b)
  3402  	m.Retval = buf.DecodeInt32()
  3403  	return nil
  3404  }
  3405  
  3406  // NatSetAddrAndPortAllocAlg defines message 'nat_set_addr_and_port_alloc_alg'.
  3407  // Deprecated: the message will be removed in the future versions
  3408  type NatSetAddrAndPortAllocAlg struct {
  3409  	Alg        uint8  `binapi:"u8,name=alg" json:"alg,omitempty"`
  3410  	PsidOffset uint8  `binapi:"u8,name=psid_offset" json:"psid_offset,omitempty"`
  3411  	PsidLength uint8  `binapi:"u8,name=psid_length" json:"psid_length,omitempty"`
  3412  	Psid       uint16 `binapi:"u16,name=psid" json:"psid,omitempty"`
  3413  	StartPort  uint16 `binapi:"u16,name=start_port" json:"start_port,omitempty"`
  3414  	EndPort    uint16 `binapi:"u16,name=end_port" json:"end_port,omitempty"`
  3415  }
  3416  
  3417  func (m *NatSetAddrAndPortAllocAlg) Reset()               { *m = NatSetAddrAndPortAllocAlg{} }
  3418  func (*NatSetAddrAndPortAllocAlg) GetMessageName() string { return "nat_set_addr_and_port_alloc_alg" }
  3419  func (*NatSetAddrAndPortAllocAlg) GetCrcString() string   { return "deeb746f" }
  3420  func (*NatSetAddrAndPortAllocAlg) GetMessageType() api.MessageType {
  3421  	return api.RequestMessage
  3422  }
  3423  
  3424  func (m *NatSetAddrAndPortAllocAlg) Size() (size int) {
  3425  	if m == nil {
  3426  		return 0
  3427  	}
  3428  	size += 1 // m.Alg
  3429  	size += 1 // m.PsidOffset
  3430  	size += 1 // m.PsidLength
  3431  	size += 2 // m.Psid
  3432  	size += 2 // m.StartPort
  3433  	size += 2 // m.EndPort
  3434  	return size
  3435  }
  3436  func (m *NatSetAddrAndPortAllocAlg) Marshal(b []byte) ([]byte, error) {
  3437  	if b == nil {
  3438  		b = make([]byte, m.Size())
  3439  	}
  3440  	buf := codec.NewBuffer(b)
  3441  	buf.EncodeUint8(m.Alg)
  3442  	buf.EncodeUint8(m.PsidOffset)
  3443  	buf.EncodeUint8(m.PsidLength)
  3444  	buf.EncodeUint16(m.Psid)
  3445  	buf.EncodeUint16(m.StartPort)
  3446  	buf.EncodeUint16(m.EndPort)
  3447  	return buf.Bytes(), nil
  3448  }
  3449  func (m *NatSetAddrAndPortAllocAlg) Unmarshal(b []byte) error {
  3450  	buf := codec.NewBuffer(b)
  3451  	m.Alg = buf.DecodeUint8()
  3452  	m.PsidOffset = buf.DecodeUint8()
  3453  	m.PsidLength = buf.DecodeUint8()
  3454  	m.Psid = buf.DecodeUint16()
  3455  	m.StartPort = buf.DecodeUint16()
  3456  	m.EndPort = buf.DecodeUint16()
  3457  	return nil
  3458  }
  3459  
  3460  // NatSetAddrAndPortAllocAlgReply defines message 'nat_set_addr_and_port_alloc_alg_reply'.
  3461  // Deprecated: the message will be removed in the future versions
  3462  type NatSetAddrAndPortAllocAlgReply struct {
  3463  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3464  }
  3465  
  3466  func (m *NatSetAddrAndPortAllocAlgReply) Reset() { *m = NatSetAddrAndPortAllocAlgReply{} }
  3467  func (*NatSetAddrAndPortAllocAlgReply) GetMessageName() string {
  3468  	return "nat_set_addr_and_port_alloc_alg_reply"
  3469  }
  3470  func (*NatSetAddrAndPortAllocAlgReply) GetCrcString() string { return "e8d4e804" }
  3471  func (*NatSetAddrAndPortAllocAlgReply) GetMessageType() api.MessageType {
  3472  	return api.ReplyMessage
  3473  }
  3474  
  3475  func (m *NatSetAddrAndPortAllocAlgReply) Size() (size int) {
  3476  	if m == nil {
  3477  		return 0
  3478  	}
  3479  	size += 4 // m.Retval
  3480  	return size
  3481  }
  3482  func (m *NatSetAddrAndPortAllocAlgReply) Marshal(b []byte) ([]byte, error) {
  3483  	if b == nil {
  3484  		b = make([]byte, m.Size())
  3485  	}
  3486  	buf := codec.NewBuffer(b)
  3487  	buf.EncodeInt32(m.Retval)
  3488  	return buf.Bytes(), nil
  3489  }
  3490  func (m *NatSetAddrAndPortAllocAlgReply) Unmarshal(b []byte) error {
  3491  	buf := codec.NewBuffer(b)
  3492  	m.Retval = buf.DecodeInt32()
  3493  	return nil
  3494  }
  3495  
  3496  // NatSetMssClamping defines message 'nat_set_mss_clamping'.
  3497  type NatSetMssClamping struct {
  3498  	MssValue uint16 `binapi:"u16,name=mss_value" json:"mss_value,omitempty"`
  3499  	Enable   bool   `binapi:"bool,name=enable" json:"enable,omitempty"`
  3500  }
  3501  
  3502  func (m *NatSetMssClamping) Reset()               { *m = NatSetMssClamping{} }
  3503  func (*NatSetMssClamping) GetMessageName() string { return "nat_set_mss_clamping" }
  3504  func (*NatSetMssClamping) GetCrcString() string   { return "25e90abb" }
  3505  func (*NatSetMssClamping) GetMessageType() api.MessageType {
  3506  	return api.RequestMessage
  3507  }
  3508  
  3509  func (m *NatSetMssClamping) Size() (size int) {
  3510  	if m == nil {
  3511  		return 0
  3512  	}
  3513  	size += 2 // m.MssValue
  3514  	size += 1 // m.Enable
  3515  	return size
  3516  }
  3517  func (m *NatSetMssClamping) Marshal(b []byte) ([]byte, error) {
  3518  	if b == nil {
  3519  		b = make([]byte, m.Size())
  3520  	}
  3521  	buf := codec.NewBuffer(b)
  3522  	buf.EncodeUint16(m.MssValue)
  3523  	buf.EncodeBool(m.Enable)
  3524  	return buf.Bytes(), nil
  3525  }
  3526  func (m *NatSetMssClamping) Unmarshal(b []byte) error {
  3527  	buf := codec.NewBuffer(b)
  3528  	m.MssValue = buf.DecodeUint16()
  3529  	m.Enable = buf.DecodeBool()
  3530  	return nil
  3531  }
  3532  
  3533  // NatSetMssClampingReply defines message 'nat_set_mss_clamping_reply'.
  3534  type NatSetMssClampingReply struct {
  3535  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3536  }
  3537  
  3538  func (m *NatSetMssClampingReply) Reset()               { *m = NatSetMssClampingReply{} }
  3539  func (*NatSetMssClampingReply) GetMessageName() string { return "nat_set_mss_clamping_reply" }
  3540  func (*NatSetMssClampingReply) GetCrcString() string   { return "e8d4e804" }
  3541  func (*NatSetMssClampingReply) GetMessageType() api.MessageType {
  3542  	return api.ReplyMessage
  3543  }
  3544  
  3545  func (m *NatSetMssClampingReply) Size() (size int) {
  3546  	if m == nil {
  3547  		return 0
  3548  	}
  3549  	size += 4 // m.Retval
  3550  	return size
  3551  }
  3552  func (m *NatSetMssClampingReply) Marshal(b []byte) ([]byte, error) {
  3553  	if b == nil {
  3554  		b = make([]byte, m.Size())
  3555  	}
  3556  	buf := codec.NewBuffer(b)
  3557  	buf.EncodeInt32(m.Retval)
  3558  	return buf.Bytes(), nil
  3559  }
  3560  func (m *NatSetMssClampingReply) Unmarshal(b []byte) error {
  3561  	buf := codec.NewBuffer(b)
  3562  	m.Retval = buf.DecodeInt32()
  3563  	return nil
  3564  }
  3565  
  3566  // NatSetTimeouts defines message 'nat_set_timeouts'.
  3567  // Deprecated: the message will be removed in the future versions
  3568  type NatSetTimeouts struct {
  3569  	UDP            uint32 `binapi:"u32,name=udp" json:"udp,omitempty"`
  3570  	TCPEstablished uint32 `binapi:"u32,name=tcp_established" json:"tcp_established,omitempty"`
  3571  	TCPTransitory  uint32 `binapi:"u32,name=tcp_transitory" json:"tcp_transitory,omitempty"`
  3572  	ICMP           uint32 `binapi:"u32,name=icmp" json:"icmp,omitempty"`
  3573  }
  3574  
  3575  func (m *NatSetTimeouts) Reset()               { *m = NatSetTimeouts{} }
  3576  func (*NatSetTimeouts) GetMessageName() string { return "nat_set_timeouts" }
  3577  func (*NatSetTimeouts) GetCrcString() string   { return "d4746b16" }
  3578  func (*NatSetTimeouts) GetMessageType() api.MessageType {
  3579  	return api.RequestMessage
  3580  }
  3581  
  3582  func (m *NatSetTimeouts) Size() (size int) {
  3583  	if m == nil {
  3584  		return 0
  3585  	}
  3586  	size += 4 // m.UDP
  3587  	size += 4 // m.TCPEstablished
  3588  	size += 4 // m.TCPTransitory
  3589  	size += 4 // m.ICMP
  3590  	return size
  3591  }
  3592  func (m *NatSetTimeouts) Marshal(b []byte) ([]byte, error) {
  3593  	if b == nil {
  3594  		b = make([]byte, m.Size())
  3595  	}
  3596  	buf := codec.NewBuffer(b)
  3597  	buf.EncodeUint32(m.UDP)
  3598  	buf.EncodeUint32(m.TCPEstablished)
  3599  	buf.EncodeUint32(m.TCPTransitory)
  3600  	buf.EncodeUint32(m.ICMP)
  3601  	return buf.Bytes(), nil
  3602  }
  3603  func (m *NatSetTimeouts) Unmarshal(b []byte) error {
  3604  	buf := codec.NewBuffer(b)
  3605  	m.UDP = buf.DecodeUint32()
  3606  	m.TCPEstablished = buf.DecodeUint32()
  3607  	m.TCPTransitory = buf.DecodeUint32()
  3608  	m.ICMP = buf.DecodeUint32()
  3609  	return nil
  3610  }
  3611  
  3612  // NatSetTimeoutsReply defines message 'nat_set_timeouts_reply'.
  3613  // Deprecated: the message will be removed in the future versions
  3614  type NatSetTimeoutsReply struct {
  3615  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3616  }
  3617  
  3618  func (m *NatSetTimeoutsReply) Reset()               { *m = NatSetTimeoutsReply{} }
  3619  func (*NatSetTimeoutsReply) GetMessageName() string { return "nat_set_timeouts_reply" }
  3620  func (*NatSetTimeoutsReply) GetCrcString() string   { return "e8d4e804" }
  3621  func (*NatSetTimeoutsReply) GetMessageType() api.MessageType {
  3622  	return api.ReplyMessage
  3623  }
  3624  
  3625  func (m *NatSetTimeoutsReply) Size() (size int) {
  3626  	if m == nil {
  3627  		return 0
  3628  	}
  3629  	size += 4 // m.Retval
  3630  	return size
  3631  }
  3632  func (m *NatSetTimeoutsReply) Marshal(b []byte) ([]byte, error) {
  3633  	if b == nil {
  3634  		b = make([]byte, m.Size())
  3635  	}
  3636  	buf := codec.NewBuffer(b)
  3637  	buf.EncodeInt32(m.Retval)
  3638  	return buf.Bytes(), nil
  3639  }
  3640  func (m *NatSetTimeoutsReply) Unmarshal(b []byte) error {
  3641  	buf := codec.NewBuffer(b)
  3642  	m.Retval = buf.DecodeInt32()
  3643  	return nil
  3644  }
  3645  
  3646  // NatSetWorkers defines message 'nat_set_workers'.
  3647  type NatSetWorkers struct {
  3648  	WorkerMask uint64 `binapi:"u64,name=worker_mask" json:"worker_mask,omitempty"`
  3649  }
  3650  
  3651  func (m *NatSetWorkers) Reset()               { *m = NatSetWorkers{} }
  3652  func (*NatSetWorkers) GetMessageName() string { return "nat_set_workers" }
  3653  func (*NatSetWorkers) GetCrcString() string   { return "da926638" }
  3654  func (*NatSetWorkers) GetMessageType() api.MessageType {
  3655  	return api.RequestMessage
  3656  }
  3657  
  3658  func (m *NatSetWorkers) Size() (size int) {
  3659  	if m == nil {
  3660  		return 0
  3661  	}
  3662  	size += 8 // m.WorkerMask
  3663  	return size
  3664  }
  3665  func (m *NatSetWorkers) Marshal(b []byte) ([]byte, error) {
  3666  	if b == nil {
  3667  		b = make([]byte, m.Size())
  3668  	}
  3669  	buf := codec.NewBuffer(b)
  3670  	buf.EncodeUint64(m.WorkerMask)
  3671  	return buf.Bytes(), nil
  3672  }
  3673  func (m *NatSetWorkers) Unmarshal(b []byte) error {
  3674  	buf := codec.NewBuffer(b)
  3675  	m.WorkerMask = buf.DecodeUint64()
  3676  	return nil
  3677  }
  3678  
  3679  // NatSetWorkersReply defines message 'nat_set_workers_reply'.
  3680  type NatSetWorkersReply struct {
  3681  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
  3682  }
  3683  
  3684  func (m *NatSetWorkersReply) Reset()               { *m = NatSetWorkersReply{} }
  3685  func (*NatSetWorkersReply) GetMessageName() string { return "nat_set_workers_reply" }
  3686  func (*NatSetWorkersReply) GetCrcString() string   { return "e8d4e804" }
  3687  func (*NatSetWorkersReply) GetMessageType() api.MessageType {
  3688  	return api.ReplyMessage
  3689  }
  3690  
  3691  func (m *NatSetWorkersReply) Size() (size int) {
  3692  	if m == nil {
  3693  		return 0
  3694  	}
  3695  	size += 4 // m.Retval
  3696  	return size
  3697  }
  3698  func (m *NatSetWorkersReply) Marshal(b []byte) ([]byte, error) {
  3699  	if b == nil {
  3700  		b = make([]byte, m.Size())
  3701  	}
  3702  	buf := codec.NewBuffer(b)
  3703  	buf.EncodeInt32(m.Retval)
  3704  	return buf.Bytes(), nil
  3705  }
  3706  func (m *NatSetWorkersReply) Unmarshal(b []byte) error {
  3707  	buf := codec.NewBuffer(b)
  3708  	m.Retval = buf.DecodeInt32()
  3709  	return nil
  3710  }
  3711  
  3712  // NatWorkerDetails defines message 'nat_worker_details'.
  3713  type NatWorkerDetails struct {
  3714  	WorkerIndex uint32 `binapi:"u32,name=worker_index" json:"worker_index,omitempty"`
  3715  	LcoreID     uint32 `binapi:"u32,name=lcore_id" json:"lcore_id,omitempty"`
  3716  	Name        string `binapi:"string[64],name=name" json:"name,omitempty"`
  3717  }
  3718  
  3719  func (m *NatWorkerDetails) Reset()               { *m = NatWorkerDetails{} }
  3720  func (*NatWorkerDetails) GetMessageName() string { return "nat_worker_details" }
  3721  func (*NatWorkerDetails) GetCrcString() string   { return "84bf06fc" }
  3722  func (*NatWorkerDetails) GetMessageType() api.MessageType {
  3723  	return api.ReplyMessage
  3724  }
  3725  
  3726  func (m *NatWorkerDetails) Size() (size int) {
  3727  	if m == nil {
  3728  		return 0
  3729  	}
  3730  	size += 4  // m.WorkerIndex
  3731  	size += 4  // m.LcoreID
  3732  	size += 64 // m.Name
  3733  	return size
  3734  }
  3735  func (m *NatWorkerDetails) Marshal(b []byte) ([]byte, error) {
  3736  	if b == nil {
  3737  		b = make([]byte, m.Size())
  3738  	}
  3739  	buf := codec.NewBuffer(b)
  3740  	buf.EncodeUint32(m.WorkerIndex)
  3741  	buf.EncodeUint32(m.LcoreID)
  3742  	buf.EncodeString(m.Name, 64)
  3743  	return buf.Bytes(), nil
  3744  }
  3745  func (m *NatWorkerDetails) Unmarshal(b []byte) error {
  3746  	buf := codec.NewBuffer(b)
  3747  	m.WorkerIndex = buf.DecodeUint32()
  3748  	m.LcoreID = buf.DecodeUint32()
  3749  	m.Name = buf.DecodeString(64)
  3750  	return nil
  3751  }
  3752  
  3753  // NatWorkerDump defines message 'nat_worker_dump'.
  3754  type NatWorkerDump struct{}
  3755  
  3756  func (m *NatWorkerDump) Reset()               { *m = NatWorkerDump{} }
  3757  func (*NatWorkerDump) GetMessageName() string { return "nat_worker_dump" }
  3758  func (*NatWorkerDump) GetCrcString() string   { return "51077d14" }
  3759  func (*NatWorkerDump) GetMessageType() api.MessageType {
  3760  	return api.RequestMessage
  3761  }
  3762  
  3763  func (m *NatWorkerDump) Size() (size int) {
  3764  	if m == nil {
  3765  		return 0
  3766  	}
  3767  	return size
  3768  }
  3769  func (m *NatWorkerDump) Marshal(b []byte) ([]byte, error) {
  3770  	if b == nil {
  3771  		b = make([]byte, m.Size())
  3772  	}
  3773  	buf := codec.NewBuffer(b)
  3774  	return buf.Bytes(), nil
  3775  }
  3776  func (m *NatWorkerDump) Unmarshal(b []byte) error {
  3777  	return nil
  3778  }
  3779  
  3780  func init() { file_nat44_ed_binapi_init() }
  3781  func file_nat44_ed_binapi_init() {
  3782  	api.RegisterMessage((*Nat44AddDelAddressRange)(nil), "nat44_add_del_address_range_6f2b8055")
  3783  	api.RegisterMessage((*Nat44AddDelAddressRangeReply)(nil), "nat44_add_del_address_range_reply_e8d4e804")
  3784  	api.RegisterMessage((*Nat44AddDelIdentityMapping)(nil), "nat44_add_del_identity_mapping_02faaa22")
  3785  	api.RegisterMessage((*Nat44AddDelIdentityMappingReply)(nil), "nat44_add_del_identity_mapping_reply_e8d4e804")
  3786  	api.RegisterMessage((*Nat44AddDelInterfaceAddr)(nil), "nat44_add_del_interface_addr_4aed50c0")
  3787  	api.RegisterMessage((*Nat44AddDelInterfaceAddrReply)(nil), "nat44_add_del_interface_addr_reply_e8d4e804")
  3788  	api.RegisterMessage((*Nat44AddDelLbStaticMapping)(nil), "nat44_add_del_lb_static_mapping_4f68ee9d")
  3789  	api.RegisterMessage((*Nat44AddDelLbStaticMappingReply)(nil), "nat44_add_del_lb_static_mapping_reply_e8d4e804")
  3790  	api.RegisterMessage((*Nat44AddDelStaticMapping)(nil), "nat44_add_del_static_mapping_5ae5f03e")
  3791  	api.RegisterMessage((*Nat44AddDelStaticMappingReply)(nil), "nat44_add_del_static_mapping_reply_e8d4e804")
  3792  	api.RegisterMessage((*Nat44AddDelStaticMappingV2)(nil), "nat44_add_del_static_mapping_v2_5e205f1a")
  3793  	api.RegisterMessage((*Nat44AddDelStaticMappingV2Reply)(nil), "nat44_add_del_static_mapping_v2_reply_e8d4e804")
  3794  	api.RegisterMessage((*Nat44AddressDetails)(nil), "nat44_address_details_0d1beac1")
  3795  	api.RegisterMessage((*Nat44AddressDump)(nil), "nat44_address_dump_51077d14")
  3796  	api.RegisterMessage((*Nat44DelSession)(nil), "nat44_del_session_15a5bf8c")
  3797  	api.RegisterMessage((*Nat44DelSessionReply)(nil), "nat44_del_session_reply_e8d4e804")
  3798  	api.RegisterMessage((*Nat44DelUser)(nil), "nat44_del_user_99a9f998")
  3799  	api.RegisterMessage((*Nat44DelUserReply)(nil), "nat44_del_user_reply_e8d4e804")
  3800  	api.RegisterMessage((*Nat44EdAddDelOutputInterface)(nil), "nat44_ed_add_del_output_interface_47d6e753")
  3801  	api.RegisterMessage((*Nat44EdAddDelOutputInterfaceReply)(nil), "nat44_ed_add_del_output_interface_reply_e8d4e804")
  3802  	api.RegisterMessage((*Nat44EdAddDelVrfRoute)(nil), "nat44_ed_add_del_vrf_route_59187407")
  3803  	api.RegisterMessage((*Nat44EdAddDelVrfRouteReply)(nil), "nat44_ed_add_del_vrf_route_reply_e8d4e804")
  3804  	api.RegisterMessage((*Nat44EdAddDelVrfTable)(nil), "nat44_ed_add_del_vrf_table_08330904")
  3805  	api.RegisterMessage((*Nat44EdAddDelVrfTableReply)(nil), "nat44_ed_add_del_vrf_table_reply_e8d4e804")
  3806  	api.RegisterMessage((*Nat44EdOutputInterfaceDetails)(nil), "nat44_ed_output_interface_details_0b45011c")
  3807  	api.RegisterMessage((*Nat44EdOutputInterfaceGet)(nil), "nat44_ed_output_interface_get_f75ba505")
  3808  	api.RegisterMessage((*Nat44EdOutputInterfaceGetReply)(nil), "nat44_ed_output_interface_get_reply_53b48f5d")
  3809  	api.RegisterMessage((*Nat44EdPluginEnableDisable)(nil), "nat44_ed_plugin_enable_disable_be17f8dd")
  3810  	api.RegisterMessage((*Nat44EdPluginEnableDisableReply)(nil), "nat44_ed_plugin_enable_disable_reply_e8d4e804")
  3811  	api.RegisterMessage((*Nat44EdSetFqOptions)(nil), "nat44_ed_set_fq_options_2399bd71")
  3812  	api.RegisterMessage((*Nat44EdSetFqOptionsReply)(nil), "nat44_ed_set_fq_options_reply_e8d4e804")
  3813  	api.RegisterMessage((*Nat44EdShowFqOptions)(nil), "nat44_ed_show_fq_options_51077d14")
  3814  	api.RegisterMessage((*Nat44EdShowFqOptionsReply)(nil), "nat44_ed_show_fq_options_reply_7213b545")
  3815  	api.RegisterMessage((*Nat44EdVrfTablesDetails)(nil), "nat44_ed_vrf_tables_details_7b264e4f")
  3816  	api.RegisterMessage((*Nat44EdVrfTablesDump)(nil), "nat44_ed_vrf_tables_dump_51077d14")
  3817  	api.RegisterMessage((*Nat44ForwardingEnableDisable)(nil), "nat44_forwarding_enable_disable_b3e225d2")
  3818  	api.RegisterMessage((*Nat44ForwardingEnableDisableReply)(nil), "nat44_forwarding_enable_disable_reply_e8d4e804")
  3819  	api.RegisterMessage((*Nat44IdentityMappingDetails)(nil), "nat44_identity_mapping_details_2a52a030")
  3820  	api.RegisterMessage((*Nat44IdentityMappingDump)(nil), "nat44_identity_mapping_dump_51077d14")
  3821  	api.RegisterMessage((*Nat44InterfaceAddDelFeature)(nil), "nat44_interface_add_del_feature_f3699b83")
  3822  	api.RegisterMessage((*Nat44InterfaceAddDelFeatureReply)(nil), "nat44_interface_add_del_feature_reply_e8d4e804")
  3823  	api.RegisterMessage((*Nat44InterfaceAddrDetails)(nil), "nat44_interface_addr_details_e4aca9ca")
  3824  	api.RegisterMessage((*Nat44InterfaceAddrDump)(nil), "nat44_interface_addr_dump_51077d14")
  3825  	api.RegisterMessage((*Nat44InterfaceDetails)(nil), "nat44_interface_details_5d286289")
  3826  	api.RegisterMessage((*Nat44InterfaceDump)(nil), "nat44_interface_dump_51077d14")
  3827  	api.RegisterMessage((*Nat44LbStaticMappingAddDelLocal)(nil), "nat44_lb_static_mapping_add_del_local_7ca47547")
  3828  	api.RegisterMessage((*Nat44LbStaticMappingAddDelLocalReply)(nil), "nat44_lb_static_mapping_add_del_local_reply_e8d4e804")
  3829  	api.RegisterMessage((*Nat44LbStaticMappingDetails)(nil), "nat44_lb_static_mapping_details_ed5ce876")
  3830  	api.RegisterMessage((*Nat44LbStaticMappingDump)(nil), "nat44_lb_static_mapping_dump_51077d14")
  3831  	api.RegisterMessage((*Nat44SetSessionLimit)(nil), "nat44_set_session_limit_8899bbb1")
  3832  	api.RegisterMessage((*Nat44SetSessionLimitReply)(nil), "nat44_set_session_limit_reply_e8d4e804")
  3833  	api.RegisterMessage((*Nat44ShowRunningConfig)(nil), "nat44_show_running_config_51077d14")
  3834  	api.RegisterMessage((*Nat44ShowRunningConfigReply)(nil), "nat44_show_running_config_reply_93d8e267")
  3835  	api.RegisterMessage((*Nat44StaticMappingDetails)(nil), "nat44_static_mapping_details_06cb40b2")
  3836  	api.RegisterMessage((*Nat44StaticMappingDump)(nil), "nat44_static_mapping_dump_51077d14")
  3837  	api.RegisterMessage((*Nat44UserDetails)(nil), "nat44_user_details_355896c2")
  3838  	api.RegisterMessage((*Nat44UserDump)(nil), "nat44_user_dump_51077d14")
  3839  	api.RegisterMessage((*Nat44UserSessionDetails)(nil), "nat44_user_session_details_2cf6e16d")
  3840  	api.RegisterMessage((*Nat44UserSessionDump)(nil), "nat44_user_session_dump_e1899c98")
  3841  	api.RegisterMessage((*Nat44UserSessionV2Details)(nil), "nat44_user_session_v2_details_fd42b729")
  3842  	api.RegisterMessage((*Nat44UserSessionV2Dump)(nil), "nat44_user_session_v2_dump_e1899c98")
  3843  	api.RegisterMessage((*NatGetAddrAndPortAllocAlg)(nil), "nat_get_addr_and_port_alloc_alg_51077d14")
  3844  	api.RegisterMessage((*NatGetAddrAndPortAllocAlgReply)(nil), "nat_get_addr_and_port_alloc_alg_reply_3607a7d0")
  3845  	api.RegisterMessage((*NatGetMssClamping)(nil), "nat_get_mss_clamping_51077d14")
  3846  	api.RegisterMessage((*NatGetMssClampingReply)(nil), "nat_get_mss_clamping_reply_1c0b2a78")
  3847  	api.RegisterMessage((*NatHaFlush)(nil), "nat_ha_flush_51077d14")
  3848  	api.RegisterMessage((*NatHaFlushReply)(nil), "nat_ha_flush_reply_e8d4e804")
  3849  	api.RegisterMessage((*NatHaGetFailover)(nil), "nat_ha_get_failover_51077d14")
  3850  	api.RegisterMessage((*NatHaGetFailoverReply)(nil), "nat_ha_get_failover_reply_a67d8752")
  3851  	api.RegisterMessage((*NatHaGetListener)(nil), "nat_ha_get_listener_51077d14")
  3852  	api.RegisterMessage((*NatHaGetListenerReply)(nil), "nat_ha_get_listener_reply_123ea41f")
  3853  	api.RegisterMessage((*NatHaResync)(nil), "nat_ha_resync_c8ab9e03")
  3854  	api.RegisterMessage((*NatHaResyncCompletedEvent)(nil), "nat_ha_resync_completed_event_fdc598fb")
  3855  	api.RegisterMessage((*NatHaResyncReply)(nil), "nat_ha_resync_reply_e8d4e804")
  3856  	api.RegisterMessage((*NatHaSetFailover)(nil), "nat_ha_set_failover_718246af")
  3857  	api.RegisterMessage((*NatHaSetFailoverReply)(nil), "nat_ha_set_failover_reply_e8d4e804")
  3858  	api.RegisterMessage((*NatHaSetListener)(nil), "nat_ha_set_listener_e4a8cb4e")
  3859  	api.RegisterMessage((*NatHaSetListenerReply)(nil), "nat_ha_set_listener_reply_e8d4e804")
  3860  	api.RegisterMessage((*NatIpfixEnableDisable)(nil), "nat_ipfix_enable_disable_9af4a2d2")
  3861  	api.RegisterMessage((*NatIpfixEnableDisableReply)(nil), "nat_ipfix_enable_disable_reply_e8d4e804")
  3862  	api.RegisterMessage((*NatSetAddrAndPortAllocAlg)(nil), "nat_set_addr_and_port_alloc_alg_deeb746f")
  3863  	api.RegisterMessage((*NatSetAddrAndPortAllocAlgReply)(nil), "nat_set_addr_and_port_alloc_alg_reply_e8d4e804")
  3864  	api.RegisterMessage((*NatSetMssClamping)(nil), "nat_set_mss_clamping_25e90abb")
  3865  	api.RegisterMessage((*NatSetMssClampingReply)(nil), "nat_set_mss_clamping_reply_e8d4e804")
  3866  	api.RegisterMessage((*NatSetTimeouts)(nil), "nat_set_timeouts_d4746b16")
  3867  	api.RegisterMessage((*NatSetTimeoutsReply)(nil), "nat_set_timeouts_reply_e8d4e804")
  3868  	api.RegisterMessage((*NatSetWorkers)(nil), "nat_set_workers_da926638")
  3869  	api.RegisterMessage((*NatSetWorkersReply)(nil), "nat_set_workers_reply_e8d4e804")
  3870  	api.RegisterMessage((*NatWorkerDetails)(nil), "nat_worker_details_84bf06fc")
  3871  	api.RegisterMessage((*NatWorkerDump)(nil), "nat_worker_dump_51077d14")
  3872  }
  3873  
  3874  // Messages returns list of all messages in this module.
  3875  func AllMessages() []api.Message {
  3876  	return []api.Message{
  3877  		(*Nat44AddDelAddressRange)(nil),
  3878  		(*Nat44AddDelAddressRangeReply)(nil),
  3879  		(*Nat44AddDelIdentityMapping)(nil),
  3880  		(*Nat44AddDelIdentityMappingReply)(nil),
  3881  		(*Nat44AddDelInterfaceAddr)(nil),
  3882  		(*Nat44AddDelInterfaceAddrReply)(nil),
  3883  		(*Nat44AddDelLbStaticMapping)(nil),
  3884  		(*Nat44AddDelLbStaticMappingReply)(nil),
  3885  		(*Nat44AddDelStaticMapping)(nil),
  3886  		(*Nat44AddDelStaticMappingReply)(nil),
  3887  		(*Nat44AddDelStaticMappingV2)(nil),
  3888  		(*Nat44AddDelStaticMappingV2Reply)(nil),
  3889  		(*Nat44AddressDetails)(nil),
  3890  		(*Nat44AddressDump)(nil),
  3891  		(*Nat44DelSession)(nil),
  3892  		(*Nat44DelSessionReply)(nil),
  3893  		(*Nat44DelUser)(nil),
  3894  		(*Nat44DelUserReply)(nil),
  3895  		(*Nat44EdAddDelOutputInterface)(nil),
  3896  		(*Nat44EdAddDelOutputInterfaceReply)(nil),
  3897  		(*Nat44EdAddDelVrfRoute)(nil),
  3898  		(*Nat44EdAddDelVrfRouteReply)(nil),
  3899  		(*Nat44EdAddDelVrfTable)(nil),
  3900  		(*Nat44EdAddDelVrfTableReply)(nil),
  3901  		(*Nat44EdOutputInterfaceDetails)(nil),
  3902  		(*Nat44EdOutputInterfaceGet)(nil),
  3903  		(*Nat44EdOutputInterfaceGetReply)(nil),
  3904  		(*Nat44EdPluginEnableDisable)(nil),
  3905  		(*Nat44EdPluginEnableDisableReply)(nil),
  3906  		(*Nat44EdSetFqOptions)(nil),
  3907  		(*Nat44EdSetFqOptionsReply)(nil),
  3908  		(*Nat44EdShowFqOptions)(nil),
  3909  		(*Nat44EdShowFqOptionsReply)(nil),
  3910  		(*Nat44EdVrfTablesDetails)(nil),
  3911  		(*Nat44EdVrfTablesDump)(nil),
  3912  		(*Nat44ForwardingEnableDisable)(nil),
  3913  		(*Nat44ForwardingEnableDisableReply)(nil),
  3914  		(*Nat44IdentityMappingDetails)(nil),
  3915  		(*Nat44IdentityMappingDump)(nil),
  3916  		(*Nat44InterfaceAddDelFeature)(nil),
  3917  		(*Nat44InterfaceAddDelFeatureReply)(nil),
  3918  		(*Nat44InterfaceAddrDetails)(nil),
  3919  		(*Nat44InterfaceAddrDump)(nil),
  3920  		(*Nat44InterfaceDetails)(nil),
  3921  		(*Nat44InterfaceDump)(nil),
  3922  		(*Nat44LbStaticMappingAddDelLocal)(nil),
  3923  		(*Nat44LbStaticMappingAddDelLocalReply)(nil),
  3924  		(*Nat44LbStaticMappingDetails)(nil),
  3925  		(*Nat44LbStaticMappingDump)(nil),
  3926  		(*Nat44SetSessionLimit)(nil),
  3927  		(*Nat44SetSessionLimitReply)(nil),
  3928  		(*Nat44ShowRunningConfig)(nil),
  3929  		(*Nat44ShowRunningConfigReply)(nil),
  3930  		(*Nat44StaticMappingDetails)(nil),
  3931  		(*Nat44StaticMappingDump)(nil),
  3932  		(*Nat44UserDetails)(nil),
  3933  		(*Nat44UserDump)(nil),
  3934  		(*Nat44UserSessionDetails)(nil),
  3935  		(*Nat44UserSessionDump)(nil),
  3936  		(*Nat44UserSessionV2Details)(nil),
  3937  		(*Nat44UserSessionV2Dump)(nil),
  3938  		(*NatGetAddrAndPortAllocAlg)(nil),
  3939  		(*NatGetAddrAndPortAllocAlgReply)(nil),
  3940  		(*NatGetMssClamping)(nil),
  3941  		(*NatGetMssClampingReply)(nil),
  3942  		(*NatHaFlush)(nil),
  3943  		(*NatHaFlushReply)(nil),
  3944  		(*NatHaGetFailover)(nil),
  3945  		(*NatHaGetFailoverReply)(nil),
  3946  		(*NatHaGetListener)(nil),
  3947  		(*NatHaGetListenerReply)(nil),
  3948  		(*NatHaResync)(nil),
  3949  		(*NatHaResyncCompletedEvent)(nil),
  3950  		(*NatHaResyncReply)(nil),
  3951  		(*NatHaSetFailover)(nil),
  3952  		(*NatHaSetFailoverReply)(nil),
  3953  		(*NatHaSetListener)(nil),
  3954  		(*NatHaSetListenerReply)(nil),
  3955  		(*NatIpfixEnableDisable)(nil),
  3956  		(*NatIpfixEnableDisableReply)(nil),
  3957  		(*NatSetAddrAndPortAllocAlg)(nil),
  3958  		(*NatSetAddrAndPortAllocAlgReply)(nil),
  3959  		(*NatSetMssClamping)(nil),
  3960  		(*NatSetMssClampingReply)(nil),
  3961  		(*NatSetTimeouts)(nil),
  3962  		(*NatSetTimeoutsReply)(nil),
  3963  		(*NatSetWorkers)(nil),
  3964  		(*NatSetWorkersReply)(nil),
  3965  		(*NatWorkerDetails)(nil),
  3966  		(*NatWorkerDump)(nil),
  3967  	}
  3968  }