X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Ftapv2%2Ftapv2.ba.go;fp=binapi%2Ftapv2%2Ftapv2.ba.go;h=e19b55600d0bd4ac35103268b37aeec75edff06d;hb=d1f24d37bd447b64e402298bb8eb2479681facf9;hp=0000000000000000000000000000000000000000;hpb=1548c7e12531e3d055567d761c580a1c7ff0ac40;p=govpp.git diff --git a/binapi/tapv2/tapv2.ba.go b/binapi/tapv2/tapv2.ba.go new file mode 100644 index 0000000..e19b556 --- /dev/null +++ b/binapi/tapv2/tapv2.ba.go @@ -0,0 +1,494 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. +// versions: +// binapi-generator: v0.4.0-dev +// VPP: 20.05-release +// source: /usr/share/vpp/api/core/tapv2.api.json + +// Package tapv2 contains generated bindings for API file tapv2.api. +// +// Contents: +// 1 enum +// 6 messages +// +package tapv2 + +import ( + api "git.fd.io/govpp.git/api" + ethernet_types "git.fd.io/govpp.git/binapi/ethernet_types" + interface_types "git.fd.io/govpp.git/binapi/interface_types" + ip_types "git.fd.io/govpp.git/binapi/ip_types" + codec "git.fd.io/govpp.git/codec" + "strconv" +) + +// 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 + +const ( + APIFile = "tapv2" + APIVersion = "4.0.0" + VersionCrc = 0x3ed7c42d +) + +// TapFlags defines enum 'tap_flags'. +type TapFlags uint32 + +const ( + TAP_API_FLAG_GSO TapFlags = 1 + TAP_API_FLAG_CSUM_OFFLOAD TapFlags = 2 + TAP_API_FLAG_PERSIST TapFlags = 4 + TAP_API_FLAG_ATTACH TapFlags = 8 + TAP_API_FLAG_TUN TapFlags = 16 + TAP_API_FLAG_GRO_COALESCE TapFlags = 32 +) + +var ( + TapFlags_name = map[uint32]string{ + 1: "TAP_API_FLAG_GSO", + 2: "TAP_API_FLAG_CSUM_OFFLOAD", + 4: "TAP_API_FLAG_PERSIST", + 8: "TAP_API_FLAG_ATTACH", + 16: "TAP_API_FLAG_TUN", + 32: "TAP_API_FLAG_GRO_COALESCE", + } + TapFlags_value = map[string]uint32{ + "TAP_API_FLAG_GSO": 1, + "TAP_API_FLAG_CSUM_OFFLOAD": 2, + "TAP_API_FLAG_PERSIST": 4, + "TAP_API_FLAG_ATTACH": 8, + "TAP_API_FLAG_TUN": 16, + "TAP_API_FLAG_GRO_COALESCE": 32, + } +) + +func (x TapFlags) String() string { + s, ok := TapFlags_name[uint32(x)] + if ok { + return s + } + str := func(n uint32) string { + s, ok := TapFlags_name[uint32(n)] + if ok { + return s + } + return "TapFlags(" + strconv.Itoa(int(n)) + ")" + } + for i := uint32(0); i <= 32; i++ { + val := uint32(x) + if val&(1<