X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=internal%2Ftestbinapi%2Fbinapi2001%2Fip%2Fip.ba.go;h=1b0b6b22b2a7e6c6e58d6f72257774be8300d5f6;hb=58da9ac6e691a8c660eb8ca838a154e11da0db68;hp=ca717ca404804351ac784ecc9ff2778559a5f032;hpb=a155cd438c6558da266c1c5931361ea088b35653;p=govpp.git diff --git a/internal/testbinapi/binapi2001/ip/ip.ba.go b/internal/testbinapi/binapi2001/ip/ip.ba.go index ca717ca..1b0b6b2 100644 --- a/internal/testbinapi/binapi2001/ip/ip.ba.go +++ b/internal/testbinapi/binapi2001/ip/ip.ba.go @@ -1,50 +1,42 @@ // 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/ip.api.json - -/* -Package ip contains generated code for VPP binary API defined by ip.api (version 3.0.1). - -It consists of: - 7 aliases - 15 enums - 60 messages - 14 types - 1 union -*/ +// VPP: 20.01 +// source: .vppapi/core/ip.api.json + +// Package ip contains generated bindings for API file ip.api. +// +// Contents: +// 7 aliases +// 15 enums +// 14 structs +// 1 union +// 60 messages +// package ip import ( - "bytes" - "context" - "encoding/binary" - "io" - "math" - "strconv" - + "fmt" api "git.fd.io/govpp.git/api" codec "git.fd.io/govpp.git/codec" - struc "github.com/lunixbochs/struc" + "net" + "strconv" + "strings" ) // 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 = "ip" - // APIVersion is the API version of this module. + APIFile = "ip" APIVersion = "3.0.1" - // VersionCrc is the CRC of this module. VersionCrc = 0xfc3fea46 ) -// AddressFamily represents VPP binary API enum 'address_family'. +// AddressFamily defines enum 'address_family'. type AddressFamily uint32 const ( @@ -71,7 +63,7 @@ func (x AddressFamily) String() string { return "AddressFamily(" + strconv.Itoa(int(x)) + ")" } -// FibPathFlags represents VPP binary API enum 'fib_path_flags'. +// FibPathFlags defines enum 'fib_path_flags'. type FibPathFlags uint32 const ( @@ -101,10 +93,29 @@ func (x FibPathFlags) String() string { if ok { return s } - return "FibPathFlags(" + strconv.Itoa(int(x)) + ")" + str := func(n uint32) string { + s, ok := FibPathFlags_name[uint32(n)] + if ok { + return s + } + return "FibPathFlags(" + strconv.Itoa(int(n)) + ")" + } + for i := uint32(0); i <= 32; i++ { + val := uint32(x) + if val&(1<