aboutsummaryrefslogtreecommitdiffstats
path: root/examples/bin_api/af_packet/af_packet.ba.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bin_api/af_packet/af_packet.ba.go')
-rw-r--r--examples/bin_api/af_packet/af_packet.ba.go45
1 files changed, 6 insertions, 39 deletions
diff --git a/examples/bin_api/af_packet/af_packet.ba.go b/examples/bin_api/af_packet/af_packet.ba.go
index a6bdc93..81c2b9d 100644
--- a/examples/bin_api/af_packet/af_packet.ba.go
+++ b/examples/bin_api/af_packet/af_packet.ba.go
@@ -1,15 +1,13 @@
// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: af_packet.api.json
+// source: af_packet.api.json
/*
-Package af_packet is a generated VPP binary API of the 'af_packet' VPP module.
+ Package af_packet is a generated from VPP binary API module 'af_packet'.
-It is generated from this file:
- af_packet.api.json
+ It contains following objects:
+ 8 messages
+ 4 services
-It contains these VPP binary API objects:
- 8 messages
- 4 services
*/
package af_packet
@@ -18,13 +16,13 @@ import "github.com/lunixbochs/struc"
import "bytes"
// Reference imports to suppress errors if they are not otherwise used.
+var _ = api.RegisterMessage
var _ = struc.Pack
var _ = bytes.NewBuffer
/* Messages */
// AfPacketCreate represents the VPP binary API message 'af_packet_create'.
-// Generated from 'af_packet.api.json', line 4:
//
// "af_packet_create",
// [
@@ -72,12 +70,8 @@ func (*AfPacketCreate) GetCrcString() string {
func (*AfPacketCreate) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewAfPacketCreate() api.Message {
- return &AfPacketCreate{}
-}
// AfPacketCreateReply represents the VPP binary API message 'af_packet_create_reply'.
-// Generated from 'af_packet.api.json', line 36:
//
// "af_packet_create_reply",
// [
@@ -114,12 +108,8 @@ func (*AfPacketCreateReply) GetCrcString() string {
func (*AfPacketCreateReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewAfPacketCreateReply() api.Message {
- return &AfPacketCreateReply{}
-}
// AfPacketDelete represents the VPP binary API message 'af_packet_delete'.
-// Generated from 'af_packet.api.json', line 58:
//
// "af_packet_delete",
// [
@@ -156,12 +146,8 @@ func (*AfPacketDelete) GetCrcString() string {
func (*AfPacketDelete) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewAfPacketDelete() api.Message {
- return &AfPacketDelete{}
-}
// AfPacketDeleteReply represents the VPP binary API message 'af_packet_delete_reply'.
-// Generated from 'af_packet.api.json', line 81:
//
// "af_packet_delete_reply",
// [
@@ -193,12 +179,8 @@ func (*AfPacketDeleteReply) GetCrcString() string {
func (*AfPacketDeleteReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewAfPacketDeleteReply() api.Message {
- return &AfPacketDeleteReply{}
-}
// AfPacketSetL4CksumOffload represents the VPP binary API message 'af_packet_set_l4_cksum_offload'.
-// Generated from 'af_packet.api.json', line 99:
//
// "af_packet_set_l4_cksum_offload",
// [
@@ -239,12 +221,8 @@ func (*AfPacketSetL4CksumOffload) GetCrcString() string {
func (*AfPacketSetL4CksumOffload) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewAfPacketSetL4CksumOffload() api.Message {
- return &AfPacketSetL4CksumOffload{}
-}
// AfPacketSetL4CksumOffloadReply represents the VPP binary API message 'af_packet_set_l4_cksum_offload_reply'.
-// Generated from 'af_packet.api.json', line 125:
//
// "af_packet_set_l4_cksum_offload_reply",
// [
@@ -276,12 +254,8 @@ func (*AfPacketSetL4CksumOffloadReply) GetCrcString() string {
func (*AfPacketSetL4CksumOffloadReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewAfPacketSetL4CksumOffloadReply() api.Message {
- return &AfPacketSetL4CksumOffloadReply{}
-}
// AfPacketDump represents the VPP binary API message 'af_packet_dump'.
-// Generated from 'af_packet.api.json', line 143:
//
// "af_packet_dump",
// [
@@ -311,12 +285,8 @@ func (*AfPacketDump) GetCrcString() string {
func (*AfPacketDump) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewAfPacketDump() api.Message {
- return &AfPacketDump{}
-}
// AfPacketDetails represents the VPP binary API message 'af_packet_details'.
-// Generated from 'af_packet.api.json', line 161:
//
// "af_packet_details",
// [
@@ -354,9 +324,6 @@ func (*AfPacketDetails) GetCrcString() string {
func (*AfPacketDetails) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewAfPacketDetails() api.Message {
- return &AfPacketDetails{}
-}
/* Services */