X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Fip%2Fip.ba.go;h=fa9d1a0544796802f6baf723292fdbd60583733e;hb=debc52dea8a81417bb08ca5bb934c7876b6d65e0;hp=ce8278cc391f798184e6053446f54c10d9e5e890;hpb=c0da1f2999a6b08d003c0fed1a23e1ca60dd1571;p=govpp.git diff --git a/binapi/ip/ip.ba.go b/binapi/ip/ip.ba.go index ce8278c..fa9d1a0 100644 --- a/binapi/ip/ip.ba.go +++ b/binapi/ip/ip.ba.go @@ -1,15 +1,15 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.4.0 -// VPP: 20.05.1-release +// binapi-generator: v0.3.5-56-gc0da1f2-dirty +// 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 @@ -33,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'. @@ -64,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<