Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve doc & fix import ordering
[govpp.git]
/
binapi
/
ip_types
/
ip_types.ba.go
diff --git
a/binapi/ip_types/ip_types.ba.go
b/binapi/ip_types/ip_types.ba.go
index
b9ddb27
..
a9fc733
100644
(file)
--- a/
binapi/ip_types/ip_types.ba.go
+++ b/
binapi/ip_types/ip_types.ba.go
@@
-2,7
+2,6
@@
// versions:
// binapi-generator: v0.4.0-dev
// VPP: 20.05-release
// versions:
// binapi-generator: v0.4.0-dev
// VPP: 20.05-release
-// source: /usr/share/vpp/api/core/ip_types.api.json
// Package ip_types contains generated bindings for API file ip_types.api.
//
// Package ip_types contains generated bindings for API file ip_types.api.
//
@@
-16,11
+15,12
@@
package ip_types
import (
"fmt"
import (
"fmt"
- api "git.fd.io/govpp.git/api"
- codec "git.fd.io/govpp.git/codec"
"net"
"strconv"
"strings"
"net"
"strconv"
"strings"
+
+ api "git.fd.io/govpp.git/api"
+ codec "git.fd.io/govpp.git/codec"
)
// This is a compile-time assertion to ensure that this generated file
)
// This is a compile-time assertion to ensure that this generated file
@@
-568,11
+568,11
@@
func AddressUnionIP4(a IP4Address) (u AddressUnion) {
return
}
func (u *AddressUnion) SetIP4(a IP4Address) {
return
}
func (u *AddressUnion) SetIP4(a IP4Address) {
-
var buf
= codec.NewBuffer(u.XXX_UnionData[:])
+
buf :
= codec.NewBuffer(u.XXX_UnionData[:])
buf.EncodeBytes(a[:], 4)
}
func (u *AddressUnion) GetIP4() (a IP4Address) {
buf.EncodeBytes(a[:], 4)
}
func (u *AddressUnion) GetIP4() (a IP4Address) {
-
var buf
= codec.NewBuffer(u.XXX_UnionData[:])
+
buf :
= codec.NewBuffer(u.XXX_UnionData[:])
copy(a[:], buf.DecodeBytes(4))
return
}
copy(a[:], buf.DecodeBytes(4))
return
}
@@
-582,11
+582,11
@@
func AddressUnionIP6(a IP6Address) (u AddressUnion) {
return
}
func (u *AddressUnion) SetIP6(a IP6Address) {
return
}
func (u *AddressUnion) SetIP6(a IP6Address) {
-
var buf
= codec.NewBuffer(u.XXX_UnionData[:])
+
buf :
= codec.NewBuffer(u.XXX_UnionData[:])
buf.EncodeBytes(a[:], 16)
}
func (u *AddressUnion) GetIP6() (a IP6Address) {
buf.EncodeBytes(a[:], 16)
}
func (u *AddressUnion) GetIP6() (a IP6Address) {
-
var buf
= codec.NewBuffer(u.XXX_UnionData[:])
+
buf :
= codec.NewBuffer(u.XXX_UnionData[:])
copy(a[:], buf.DecodeBytes(16))
return
}
copy(a[:], buf.DecodeBytes(16))
return
}