X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Fip_types%2Fip_types.ba.go;h=d03b0db4d64d01a6ff80e4a31ae3de5321399154;hb=debc52dea8a81417bb08ca5bb934c7876b6d65e0;hp=3350fab0e5ad4f6e117573f678b14df03c0034c7;hpb=c0da1f2999a6b08d003c0fed1a23e1ca60dd1571;p=govpp.git diff --git a/binapi/ip_types/ip_types.ba.go b/binapi/ip_types/ip_types.ba.go index 3350fab..d03b0db 100644 --- a/binapi/ip_types/ip_types.ba.go +++ b/binapi/ip_types/ip_types.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_types.api.json // Package ip_types contains generated bindings for API file ip_types.api. // // Contents: // 5 aliases -// 4 enums -// 6 structs +// 5 enums +// 8 structs // 1 union // package ip_types @@ -174,6 +174,42 @@ func (x IPEcn) String() string { return "IPEcn(" + strconv.Itoa(int(x)) + ")" } +// IPFeatureLocation defines enum 'ip_feature_location'. +type IPFeatureLocation uint8 + +const ( + IP_API_FEATURE_INPUT IPFeatureLocation = 0 + IP_API_FEATURE_OUTPUT IPFeatureLocation = 1 + IP_API_FEATURE_LOCAL IPFeatureLocation = 2 + IP_API_FEATURE_PUNT IPFeatureLocation = 3 + IP_API_FEATURE_DROP IPFeatureLocation = 4 +) + +var ( + IPFeatureLocation_name = map[uint8]string{ + 0: "IP_API_FEATURE_INPUT", + 1: "IP_API_FEATURE_OUTPUT", + 2: "IP_API_FEATURE_LOCAL", + 3: "IP_API_FEATURE_PUNT", + 4: "IP_API_FEATURE_DROP", + } + IPFeatureLocation_value = map[string]uint8{ + "IP_API_FEATURE_INPUT": 0, + "IP_API_FEATURE_OUTPUT": 1, + "IP_API_FEATURE_LOCAL": 2, + "IP_API_FEATURE_PUNT": 3, + "IP_API_FEATURE_DROP": 4, + } +) + +func (x IPFeatureLocation) String() string { + s, ok := IPFeatureLocation_name[uint8(x)] + if ok { + return s + } + return "IPFeatureLocation(" + strconv.Itoa(int(x)) + ")" +} + // IPProto defines enum 'ip_proto'. type IPProto uint8 @@ -376,6 +412,12 @@ func (x *Address) UnmarshalText(text []byte) error { return nil } +// IP4AddressAndMask defines type 'ip4_address_and_mask'. +type IP4AddressAndMask struct { + Addr IP4Address `binapi:"ip4_address,name=addr" json:"addr,omitempty"` + Mask IP4Address `binapi:"ip4_address,name=mask" json:"mask,omitempty"` +} + // IP4Prefix defines type 'ip4_prefix'. type IP4Prefix struct { Address IP4Address `binapi:"ip4_address,name=address" json:"address,omitempty"` @@ -430,6 +472,12 @@ func (x *IP4Prefix) UnmarshalText(text []byte) error { return nil } +// IP6AddressAndMask defines type 'ip6_address_and_mask'. +type IP6AddressAndMask struct { + Addr IP6Address `binapi:"ip6_address,name=addr" json:"addr,omitempty"` + Mask IP6Address `binapi:"ip6_address,name=mask" json:"mask,omitempty"` +} + // IP6Prefix defines type 'ip6_prefix'. type IP6Prefix struct { Address IP6Address `binapi:"ip6_address,name=address" json:"address,omitempty"`