// Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: // binapi-generator: v0.6.0-dev // VPP: 22.02-release // source: /usr/share/vpp/api/plugins/cnat.api.json // Package cnat contains generated bindings for API file cnat.api. // // Contents: // 5 enums // 4 structs // 20 messages // package cnat import ( "strconv" api "go.fd.io/govpp/api" _ "go.fd.io/govpp/binapi/fib_types" interface_types "go.fd.io/govpp/binapi/interface_types" ip_types "go.fd.io/govpp/binapi/ip_types" codec "go.fd.io/govpp/codec" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the GoVPP api package it is being compiled against. // A compilation error at this line likely means your copy of the // GoVPP api package needs to be updated. const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "cnat" APIVersion = "0.2.0" VersionCrc = 0xfd05573b ) // CnatEndpointTupleFlags defines enum 'cnat_endpoint_tuple_flags'. type CnatEndpointTupleFlags uint8 const ( CNAT_EPT_NO_NAT CnatEndpointTupleFlags = 1 ) var ( CnatEndpointTupleFlags_name = map[uint8]string{ 1: "CNAT_EPT_NO_NAT", } CnatEndpointTupleFlags_value = map[string]uint8{ "CNAT_EPT_NO_NAT": 1, } ) func (x CnatEndpointTupleFlags) String() string { s, ok := CnatEndpointTupleFlags_name[uint8(x)] if ok { return s } str := func(n uint8) string { s, ok := CnatEndpointTupleFlags_name[uint8(n)] if ok { return s } return "CnatEndpointTupleFlags(" + strconv.Itoa(int(n)) + ")" } for i := uint8(0); i <= 8; i++ { val := uint8(x) if val&(1<