X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=internal%2Ftestbinapi%2Fbinapi2001%2Fip%2Fip.ba.go;h=248030001fb8463870263bf727d994b5ec5a2e7d;hb=refs%2Fchanges%2F56%2F36056%2F4;hp=ca717ca404804351ac784ecc9ff2778559a5f032;hpb=d1f24d37bd447b64e402298bb8eb2479681facf9;p=govpp.git diff --git a/internal/testbinapi/binapi2001/ip/ip.ba.go b/internal/testbinapi/binapi2001/ip/ip.ba.go index ca717ca..2480300 100644 --- a/internal/testbinapi/binapi2001/ip/ip.ba.go +++ b/internal/testbinapi/binapi2001/ip/ip.ba.go @@ -1,50 +1,43 @@ // 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 -*/ +// binapi-generator: v0.5.0-dev +// 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" + "fmt" + "net" "strconv" + "strings" api "git.fd.io/govpp.git/api" codec "git.fd.io/govpp.git/codec" - struc "github.com/lunixbochs/struc" ) // 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 +64,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 +94,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<