// 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/ip_neighbor.api.json // Package ip_neighbor contains generated bindings for API file ip_neighbor.api. // // Contents: // 1 enum // 1 struct // 15 messages // package ip_neighbor import ( "strconv" 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" ) // 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 = "ip_neighbor" APIVersion = "1.0.0" VersionCrc = 0xe6512b94 ) // IPNeighborFlags defines enum 'ip_neighbor_flags'. type IPNeighborFlags uint8 const ( IP_API_NEIGHBOR_FLAG_NONE IPNeighborFlags = 0 IP_API_NEIGHBOR_FLAG_STATIC IPNeighborFlags = 1 IP_API_NEIGHBOR_FLAG_NO_FIB_ENTRY IPNeighborFlags = 2 ) var ( IPNeighborFlags_name = map[uint8]string{ 0: "IP_API_NEIGHBOR_FLAG_NONE", 1: "IP_API_NEIGHBOR_FLAG_STATIC", 2: "IP_API_NEIGHBOR_FLAG_NO_FIB_ENTRY", } IPNeighborFlags_value = map[string]uint8{ "IP_API_NEIGHBOR_FLAG_NONE": 0, "IP_API_NEIGHBOR_FLAG_STATIC": 1, "IP_API_NEIGHBOR_FLAG_NO_FIB_ENTRY": 2, } ) func (x IPNeighborFlags) String() string { s, ok := IPNeighborFlags_name[uint8(x)] if ok { return s } str := func(n uint8) string { s, ok := IPNeighborFlags_name[uint8(n)] if ok { return s } return "IPNeighborFlags(" + strconv.Itoa(int(n)) + ")" } for i := uint8(0); i <= 8; i++ { val := uint8(x) if val&(1<