X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Fip%2Fip.ba.go;h=8581c9f4005d1312c570555b9d61f4e23bb17afa;hb=fa7a6d1cee22dae3544f2a6fb6759faf588e603a;hp=7702c92b97be44d2a32c6b17a844becaab701416;hpb=d1f24d37bd447b64e402298bb8eb2479681facf9;p=govpp.git diff --git a/binapi/ip/ip.ba.go b/binapi/ip/ip.ba.go index 7702c92..8581c9f 100644 --- a/binapi/ip/ip.ba.go +++ b/binapi/ip/ip.ba.go @@ -1,19 +1,21 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.4.0-dev -// VPP: 20.05-release +// binapi-generator: v0.4.0 +// VPP: 21.06-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 +// 6 structs +// 81 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" @@ -21,7 +23,6 @@ import ( 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" - "strconv" ) // 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.1.0" + VersionCrc = 0x972432b4 ) // 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<