Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix codec fallback and generate type imports
[govpp.git]
/
examples
/
binapi
/
ip_types
/
ip_types.ba.go
diff --git
a/examples/binapi/ip_types/ip_types.ba.go
b/examples/binapi/ip_types/ip_types.ba.go
index
9335060
..
23ae315
100644
(file)
--- a/
examples/binapi/ip_types/ip_types.ba.go
+++ b/
examples/binapi/ip_types/ip_types.ba.go
@@
-1,11
+1,11
@@
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// versions:
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// versions:
-// binapi-generator: v0.4.0-
alpha-1-g435c3f4-dirty
-// VPP: 20.0
1-45~g7a071e370~b63
+// binapi-generator: v0.4.0-
dev
+// VPP: 20.0
5-release
// source: /usr/share/vpp/api/core/ip_types.api.json
/*
// source: /usr/share/vpp/api/core/ip_types.api.json
/*
-Package ip_types contains generated code for VPP
binary API defined by ip_types.api (version
3.0.0).
+Package ip_types contains generated code for VPP
API file ip_types.api (
3.0.0).
It consists of:
5 aliases
It consists of:
5 aliases
@@
-40,11
+40,11
@@
const (
// APIVersion is the API version of this module.
APIVersion = "3.0.0"
// VersionCrc is the CRC of this module.
// APIVersion is the API version of this module.
APIVersion = "3.0.0"
// VersionCrc is the CRC of this module.
- VersionCrc = 0x
8042456
2
+ VersionCrc = 0x
9cb1c2e
2
)
// AddressFamily represents VPP binary API enum 'address_family'.
)
// AddressFamily represents VPP binary API enum 'address_family'.
-type AddressFamily uint
32
+type AddressFamily uint
8
const (
ADDRESS_IP4 AddressFamily = 0
const (
ADDRESS_IP4 AddressFamily = 0
@@
-52,18
+52,18
@@
const (
)
var (
)
var (
- AddressFamily_name = map[uint
32
]string{
+ AddressFamily_name = map[uint
8
]string{
0: "ADDRESS_IP4",
1: "ADDRESS_IP6",
}
0: "ADDRESS_IP4",
1: "ADDRESS_IP6",
}
- AddressFamily_value = map[string]uint
32
{
+ AddressFamily_value = map[string]uint
8
{
"ADDRESS_IP4": 0,
"ADDRESS_IP6": 1,
}
)
func (x AddressFamily) String() string {
"ADDRESS_IP4": 0,
"ADDRESS_IP6": 1,
}
)
func (x AddressFamily) String() string {
- s, ok := AddressFamily_name[uint
32
(x)]
+ s, ok := AddressFamily_name[uint
8
(x)]
if ok {
return s
}
if ok {
return s
}
@@
-188,7
+188,7
@@
func (x IPEcn) String() string {
}
// IPProto represents VPP binary API enum 'ip_proto'.
}
// IPProto represents VPP binary API enum 'ip_proto'.
-type IPProto uint
32
+type IPProto uint
8
const (
IP_API_PROTO_HOPOPT IPProto = 0
const (
IP_API_PROTO_HOPOPT IPProto = 0
@@
-197,8
+197,9
@@
const (
IP_API_PROTO_TCP IPProto = 6
IP_API_PROTO_UDP IPProto = 17
IP_API_PROTO_GRE IPProto = 47
IP_API_PROTO_TCP IPProto = 6
IP_API_PROTO_UDP IPProto = 17
IP_API_PROTO_GRE IPProto = 47
- IP_API_PROTO_AH IPProto = 50
- IP_API_PROTO_ESP IPProto = 51
+ IP_API_PROTO_ESP IPProto = 50
+ IP_API_PROTO_AH IPProto = 51
+ IP_API_PROTO_ICMP6 IPProto = 58
IP_API_PROTO_EIGRP IPProto = 88
IP_API_PROTO_OSPF IPProto = 89
IP_API_PROTO_SCTP IPProto = 132
IP_API_PROTO_EIGRP IPProto = 88
IP_API_PROTO_OSPF IPProto = 89
IP_API_PROTO_SCTP IPProto = 132
@@
-206,29
+207,31
@@
const (
)
var (
)
var (
- IPProto_name = map[uint
32
]string{
+ IPProto_name = map[uint
8
]string{
0: "IP_API_PROTO_HOPOPT",
1: "IP_API_PROTO_ICMP",
2: "IP_API_PROTO_IGMP",
6: "IP_API_PROTO_TCP",
17: "IP_API_PROTO_UDP",
47: "IP_API_PROTO_GRE",
0: "IP_API_PROTO_HOPOPT",
1: "IP_API_PROTO_ICMP",
2: "IP_API_PROTO_IGMP",
6: "IP_API_PROTO_TCP",
17: "IP_API_PROTO_UDP",
47: "IP_API_PROTO_GRE",
- 50: "IP_API_PROTO_AH",
- 51: "IP_API_PROTO_ESP",
+ 50: "IP_API_PROTO_ESP",
+ 51: "IP_API_PROTO_AH",
+ 58: "IP_API_PROTO_ICMP6",
88: "IP_API_PROTO_EIGRP",
89: "IP_API_PROTO_OSPF",
132: "IP_API_PROTO_SCTP",
255: "IP_API_PROTO_RESERVED",
}
88: "IP_API_PROTO_EIGRP",
89: "IP_API_PROTO_OSPF",
132: "IP_API_PROTO_SCTP",
255: "IP_API_PROTO_RESERVED",
}
- IPProto_value = map[string]uint
32
{
+ IPProto_value = map[string]uint
8
{
"IP_API_PROTO_HOPOPT": 0,
"IP_API_PROTO_ICMP": 1,
"IP_API_PROTO_IGMP": 2,
"IP_API_PROTO_TCP": 6,
"IP_API_PROTO_UDP": 17,
"IP_API_PROTO_GRE": 47,
"IP_API_PROTO_HOPOPT": 0,
"IP_API_PROTO_ICMP": 1,
"IP_API_PROTO_IGMP": 2,
"IP_API_PROTO_TCP": 6,
"IP_API_PROTO_UDP": 17,
"IP_API_PROTO_GRE": 47,
- "IP_API_PROTO_AH": 50,
- "IP_API_PROTO_ESP": 51,
+ "IP_API_PROTO_ESP": 50,
+ "IP_API_PROTO_AH": 51,
+ "IP_API_PROTO_ICMP6": 58,
"IP_API_PROTO_EIGRP": 88,
"IP_API_PROTO_OSPF": 89,
"IP_API_PROTO_SCTP": 132,
"IP_API_PROTO_EIGRP": 88,
"IP_API_PROTO_OSPF": 89,
"IP_API_PROTO_SCTP": 132,
@@
-237,7
+240,7
@@
var (
)
func (x IPProto) String() string {
)
func (x IPProto) String() string {
- s, ok := IPProto_name[uint
32
(x)]
+ s, ok := IPProto_name[uint
8
(x)]
if ok {
return s
}
if ok {
return s
}