X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=internal%2Ftestbinapi%2Fbinapi2001%2Faf_packet%2Faf_packet.ba.go;h=ff82ee77310cfe7ab27112382aed13c1524f2692;hb=58da9ac6e691a8c660eb8ca838a154e11da0db68;hp=82b89b318c058a59e50895b8a9568acec90e1de5;hpb=a155cd438c6558da266c1c5931361ea088b35653;p=govpp.git diff --git a/internal/testbinapi/binapi2001/af_packet/af_packet.ba.go b/internal/testbinapi/binapi2001/af_packet/af_packet.ba.go index 82b89b3..ff82ee7 100644 --- a/internal/testbinapi/binapi2001/af_packet/af_packet.ba.go +++ b/internal/testbinapi/binapi2001/af_packet/af_packet.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/core/af_packet.api.json - -/* -Package af_packet contains generated code for VPP binary API defined by af_packet.api (version 2.0.0). - -It consists of: - 2 aliases - 6 enums - 8 messages -*/ +// VPP: 20.01 +// source: .vppapi/core/af_packet.api.json + +// Package af_packet contains generated bindings for API file af_packet.api. +// +// Contents: +// 2 aliases +// 6 enums +// 8 messages +// package af_packet 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 = "af_packet" - // APIVersion is the API version of this module. + APIFile = "af_packet" APIVersion = "2.0.0" - // VersionCrc is the CRC of this module. VersionCrc = 0xba745e20 ) -// 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<