X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Fip%2Fip.ba.go;h=78ea15e0493883eb69ec91b15c52976875417eb2;hb=refs%2Fheads%2Fmaster;hp=628f1e0f611c0ea186d0259da7ad94b0e81671a6;hpb=c94a962279858fb13eaacc689f47aed358373e44;p=govpp.git diff --git a/binapi/ip/ip.ba.go b/binapi/ip/ip.ba.go index 628f1e0..78ea15e 100644 --- a/binapi/ip/ip.ba.go +++ b/binapi/ip/ip.ba.go @@ -1,27 +1,28 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.4.0-dev -// VPP: 20.05-release +// binapi-generator: v0.6.0-dev +// VPP: 22.02-release +// source: /usr/share/vpp/api/core/ip.api.json // Package ip contains generated bindings for API file ip.api. // // Contents: -// 1 enum -// 4 structs -// 60 messages +// 2 enums +// 7 structs +// 87 messages // package ip import ( "strconv" - api "git.fd.io/govpp.git/api" - _ "git.fd.io/govpp.git/binapi/ethernet_types" - fib_types "git.fd.io/govpp.git/binapi/fib_types" - interface_types "git.fd.io/govpp.git/binapi/interface_types" - ip_types "git.fd.io/govpp.git/binapi/ip_types" - mfib_types "git.fd.io/govpp.git/binapi/mfib_types" - codec "git.fd.io/govpp.git/codec" + api "go.fd.io/govpp/api" + _ "go.fd.io/govpp/binapi/ethernet_types" + fib_types "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" + mfib_types "go.fd.io/govpp/binapi/mfib_types" + codec "go.fd.io/govpp/codec" ) // This is a compile-time assertion to ensure that this generated file @@ -32,8 +33,8 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "ip" - APIVersion = "3.0.1" - VersionCrc = 0x765d74b1 + APIVersion = "3.2.0" + VersionCrc = 0x557b5866 ) // IPReassType defines enum 'ip_reass_type'. @@ -63,14 +64,87 @@ func (x IPReassType) String() string { return "IPReassType(" + strconv.Itoa(int(x)) + ")" } +// IPFlowHashConfig defines enum 'ip_flow_hash_config'. +type IPFlowHashConfig uint32 + +const ( + IP_API_FLOW_HASH_SRC_IP IPFlowHashConfig = 1 + IP_API_FLOW_HASH_DST_IP IPFlowHashConfig = 2 + IP_API_FLOW_HASH_SRC_PORT IPFlowHashConfig = 4 + IP_API_FLOW_HASH_DST_PORT IPFlowHashConfig = 8 + IP_API_FLOW_HASH_PROTO IPFlowHashConfig = 16 + IP_API_FLOW_HASH_REVERSE IPFlowHashConfig = 32 + IP_API_FLOW_HASH_SYMETRIC IPFlowHashConfig = 64 + IP_API_FLOW_HASH_FLOW_LABEL IPFlowHashConfig = 128 +) + +var ( + IPFlowHashConfig_name = map[uint32]string{ + 1: "IP_API_FLOW_HASH_SRC_IP", + 2: "IP_API_FLOW_HASH_DST_IP", + 4: "IP_API_FLOW_HASH_SRC_PORT", + 8: "IP_API_FLOW_HASH_DST_PORT", + 16: "IP_API_FLOW_HASH_PROTO", + 32: "IP_API_FLOW_HASH_REVERSE", + 64: "IP_API_FLOW_HASH_SYMETRIC", + 128: "IP_API_FLOW_HASH_FLOW_LABEL", + } + IPFlowHashConfig_value = map[string]uint32{ + "IP_API_FLOW_HASH_SRC_IP": 1, + "IP_API_FLOW_HASH_DST_IP": 2, + "IP_API_FLOW_HASH_SRC_PORT": 4, + "IP_API_FLOW_HASH_DST_PORT": 8, + "IP_API_FLOW_HASH_PROTO": 16, + "IP_API_FLOW_HASH_REVERSE": 32, + "IP_API_FLOW_HASH_SYMETRIC": 64, + "IP_API_FLOW_HASH_FLOW_LABEL": 128, + } +) + +func (x IPFlowHashConfig) String() string { + s, ok := IPFlowHashConfig_name[uint32(x)] + if ok { + return s + } + str := func(n uint32) string { + s, ok := IPFlowHashConfig_name[uint32(n)] + if ok { + return s + } + return "IPFlowHashConfig(" + strconv.Itoa(int(n)) + ")" + } + for i := uint32(0); i <= 32; i++ { + val := uint32(x) + if val&(1<