summaryrefslogtreecommitdiffstats
path: root/examples/binapi/af_packet/af_packet.ba.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/binapi/af_packet/af_packet.ba.go')
-rw-r--r--examples/binapi/af_packet/af_packet.ba.go143
1 files changed, 63 insertions, 80 deletions
diff --git a/examples/binapi/af_packet/af_packet.ba.go b/examples/binapi/af_packet/af_packet.ba.go
index 6f92b04..d24966a 100644
--- a/examples/binapi/af_packet/af_packet.ba.go
+++ b/examples/binapi/af_packet/af_packet.ba.go
@@ -5,6 +5,8 @@
Package af_packet is a generated VPP binary API for 'af_packet' module.
It consists of:
+ 6 enums
+ 2 aliases
8 messages
4 services
*/
@@ -17,139 +19,120 @@ import (
struc "github.com/lunixbochs/struc"
io "io"
strconv "strconv"
+
+ ethernet_types "git.fd.io/govpp.git/examples/ethernet_types"
+ interface_types "git.fd.io/govpp.git/examples/interface_types"
)
const (
// ModuleName is the name of this module.
ModuleName = "af_packet"
// APIVersion is the API version of this module.
- APIVersion = "1.0.0"
+ APIVersion = "2.0.0"
// VersionCrc is the CRC of this module.
- VersionCrc = 0xfefd69b7
+ VersionCrc = 0xba745e20
)
+type IfStatusFlags = interface_types.IfStatusFlags
+
+type IfType = interface_types.IfType
+
+type LinkDuplex = interface_types.LinkDuplex
+
+type MtuProto = interface_types.MtuProto
+
+type RxMode = interface_types.RxMode
+
+type SubIfFlags = interface_types.SubIfFlags
+
+type InterfaceIndex = interface_types.InterfaceIndex
+
+type MacAddress = ethernet_types.MacAddress
+
// AfPacketCreate represents VPP binary API message 'af_packet_create'.
type AfPacketCreate struct {
- HostIfName []byte `struc:"[64]byte"`
- HwAddr []byte `struc:"[6]byte"`
- UseRandomHwAddr uint8
+ HwAddr MacAddress
+ UseRandomHwAddr bool
+ HostIfName string `struc:"[64]byte"`
}
-func (*AfPacketCreate) GetMessageName() string {
- return "af_packet_create"
-}
-func (*AfPacketCreate) GetCrcString() string {
- return "6d5d30d6"
-}
-func (*AfPacketCreate) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
+func (m *AfPacketCreate) Reset() { *m = AfPacketCreate{} }
+func (*AfPacketCreate) GetMessageName() string { return "af_packet_create" }
+func (*AfPacketCreate) GetCrcString() string { return "a190415f" }
+func (*AfPacketCreate) GetMessageType() api.MessageType { return api.RequestMessage }
// AfPacketCreateReply represents VPP binary API message 'af_packet_create_reply'.
type AfPacketCreateReply struct {
Retval int32
- SwIfIndex uint32
+ SwIfIndex InterfaceIndex
}
-func (*AfPacketCreateReply) GetMessageName() string {
- return "af_packet_create_reply"
-}
-func (*AfPacketCreateReply) GetCrcString() string {
- return "fda5941f"
-}
-func (*AfPacketCreateReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
+func (m *AfPacketCreateReply) Reset() { *m = AfPacketCreateReply{} }
+func (*AfPacketCreateReply) GetMessageName() string { return "af_packet_create_reply" }
+func (*AfPacketCreateReply) GetCrcString() string { return "5383d31f" }
+func (*AfPacketCreateReply) GetMessageType() api.MessageType { return api.ReplyMessage }
// AfPacketDelete represents VPP binary API message 'af_packet_delete'.
type AfPacketDelete struct {
- HostIfName []byte `struc:"[64]byte"`
+ HostIfName string `struc:"[64]byte"`
}
-func (*AfPacketDelete) GetMessageName() string {
- return "af_packet_delete"
-}
-func (*AfPacketDelete) GetCrcString() string {
- return "3efceda3"
-}
-func (*AfPacketDelete) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
+func (m *AfPacketDelete) Reset() { *m = AfPacketDelete{} }
+func (*AfPacketDelete) GetMessageName() string { return "af_packet_delete" }
+func (*AfPacketDelete) GetCrcString() string { return "863fa648" }
+func (*AfPacketDelete) GetMessageType() api.MessageType { return api.RequestMessage }
// AfPacketDeleteReply represents VPP binary API message 'af_packet_delete_reply'.
type AfPacketDeleteReply struct {
Retval int32
}
-func (*AfPacketDeleteReply) GetMessageName() string {
- return "af_packet_delete_reply"
-}
-func (*AfPacketDeleteReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*AfPacketDeleteReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
+func (m *AfPacketDeleteReply) Reset() { *m = AfPacketDeleteReply{} }
+func (*AfPacketDeleteReply) GetMessageName() string { return "af_packet_delete_reply" }
+func (*AfPacketDeleteReply) GetCrcString() string { return "e8d4e804" }
+func (*AfPacketDeleteReply) GetMessageType() api.MessageType { return api.ReplyMessage }
// AfPacketDetails represents VPP binary API message 'af_packet_details'.
type AfPacketDetails struct {
- SwIfIndex uint32
- HostIfName []byte `struc:"[64]byte"`
+ SwIfIndex InterfaceIndex
+ HostIfName string `struc:"[64]byte"`
}
-func (*AfPacketDetails) GetMessageName() string {
- return "af_packet_details"
-}
-func (*AfPacketDetails) GetCrcString() string {
- return "057205fa"
-}
-func (*AfPacketDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
+func (m *AfPacketDetails) Reset() { *m = AfPacketDetails{} }
+func (*AfPacketDetails) GetMessageName() string { return "af_packet_details" }
+func (*AfPacketDetails) GetCrcString() string { return "58c7c042" }
+func (*AfPacketDetails) GetMessageType() api.MessageType { return api.ReplyMessage }
// AfPacketDump represents VPP binary API message 'af_packet_dump'.
type AfPacketDump struct{}
-func (*AfPacketDump) GetMessageName() string {
- return "af_packet_dump"
-}
-func (*AfPacketDump) GetCrcString() string {
- return "51077d14"
-}
-func (*AfPacketDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
+func (m *AfPacketDump) Reset() { *m = AfPacketDump{} }
+func (*AfPacketDump) GetMessageName() string { return "af_packet_dump" }
+func (*AfPacketDump) GetCrcString() string { return "51077d14" }
+func (*AfPacketDump) GetMessageType() api.MessageType { return api.RequestMessage }
// AfPacketSetL4CksumOffload represents VPP binary API message 'af_packet_set_l4_cksum_offload'.
type AfPacketSetL4CksumOffload struct {
- SwIfIndex uint8
- Set uint8
+ SwIfIndex InterfaceIndex
+ Set bool
}
-func (*AfPacketSetL4CksumOffload) GetMessageName() string {
- return "af_packet_set_l4_cksum_offload"
-}
-func (*AfPacketSetL4CksumOffload) GetCrcString() string {
- return "86538585"
-}
-func (*AfPacketSetL4CksumOffload) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
+func (m *AfPacketSetL4CksumOffload) Reset() { *m = AfPacketSetL4CksumOffload{} }
+func (*AfPacketSetL4CksumOffload) GetMessageName() string { return "af_packet_set_l4_cksum_offload" }
+func (*AfPacketSetL4CksumOffload) GetCrcString() string { return "319cd5c8" }
+func (*AfPacketSetL4CksumOffload) GetMessageType() api.MessageType { return api.RequestMessage }
// AfPacketSetL4CksumOffloadReply represents VPP binary API message 'af_packet_set_l4_cksum_offload_reply'.
type AfPacketSetL4CksumOffloadReply struct {
Retval int32
}
+func (m *AfPacketSetL4CksumOffloadReply) Reset() { *m = AfPacketSetL4CksumOffloadReply{} }
func (*AfPacketSetL4CksumOffloadReply) GetMessageName() string {
return "af_packet_set_l4_cksum_offload_reply"
}
-func (*AfPacketSetL4CksumOffloadReply) GetCrcString() string {
- return "e8d4e804"
-}
-func (*AfPacketSetL4CksumOffloadReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
+func (*AfPacketSetL4CksumOffloadReply) GetCrcString() string { return "e8d4e804" }
+func (*AfPacketSetL4CksumOffloadReply) GetMessageType() api.MessageType { return api.ReplyMessage }
func init() {
api.RegisterMessage((*AfPacketCreate)(nil), "af_packet.AfPacketCreate")