X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=internal%2Ftestbinapi%2Fbinapi2001%2Fmemif%2Fmemif.ba.go;h=d3a0963e3c3b9689879665ff90026f0e0cb76f66;hb=58da9ac6e691a8c660eb8ca838a154e11da0db68;hp=496411751ebc8e2ad3f9dff59df9a7f518a68c57;hpb=a155cd438c6558da266c1c5931361ea088b35653;p=govpp.git diff --git a/internal/testbinapi/binapi2001/memif/memif.ba.go b/internal/testbinapi/binapi2001/memif/memif.ba.go index 4964117..d3a0963 100644 --- a/internal/testbinapi/binapi2001/memif/memif.ba.go +++ b/internal/testbinapi/binapi2001/memif/memif.ba.go @@ -1,48 +1,38 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: // binapi-generator: v0.4.0-dev -// VPP: 20.01-45~g7a071e370~b63 -// source: /usr/share/vpp/api/plugins/memif.api.json - -/* -Package memif contains generated code for VPP binary API defined by memif.api (version 3.0.0). - -It consists of: - 2 aliases - 8 enums - 10 messages -*/ +// VPP: 20.01 +// source: .vppapi/plugins/memif.api.json + +// Package memif contains generated bindings for API file memif.api. +// +// Contents: +// 2 aliases +// 8 enums +// 10 messages +// package memif import ( - "bytes" - "context" - "encoding/binary" - "io" - "math" - "strconv" - api "git.fd.io/govpp.git/api" codec "git.fd.io/govpp.git/codec" - struc "github.com/lunixbochs/struc" + "net" + "strconv" ) // 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 // please upgrade the GoVPP api package +const _ = api.GoVppAPIPackageIsVersion2 const ( - // ModuleName is the name of this module. - ModuleName = "memif" - // APIVersion is the API version of this module. + APIFile = "memif" APIVersion = "3.0.0" - // VersionCrc is the CRC of this module. VersionCrc = 0x88dc56c9 ) -// IfStatusFlags represents VPP binary API enum 'if_status_flags'. +// IfStatusFlags defines enum 'if_status_flags'. type IfStatusFlags uint32 const ( @@ -66,10 +56,29 @@ func (x IfStatusFlags) String() string { if ok { return s } - return "IfStatusFlags(" + strconv.Itoa(int(x)) + ")" + str := func(n uint32) string { + s, ok := IfStatusFlags_name[uint32(n)] + if ok { + return s + } + return "IfStatusFlags(" + strconv.Itoa(int(n)) + ")" + } + for i := uint32(0); i <= 32; i++ { + val := uint32(x) + if val&(1<