github.com/edwarnicke/govpp@v0.0.0-20230130211138-14ef5d20b1d0/binapi/nat44_ed/nat44_ed.ba.go (about)

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